Renderer

From ETM
Jump to navigation Jump to search


Steps for the renderer:

  • ( 1. Start the game / detect if the game is running )
  • ( 2. Setup client config [viewdinstace, FPS, fancy, shaders...])
  • ( 3. Join a rendering server, taken from config file )
  • ( 4. Insert command /renderer join)
  • Server: Insert Chunkli Data into the world (from renderQueue)
  • Server: Teleport the client over the whole chunk area (each border) to make sure the area is loaded and visible on the client
  • Server: Teleport Client to first Screenshot-Location (InitLoc, NE, SW, etc.)
    • Probably wait a little bit for the chunk-renderer to be done
    • Take Screenshot => ONLY ONE FILE IN SCREENSHOT FOLDER NOW!
    • Move the file out of the folder/ start uploading in the background (validate dimension/size of image)
    • Inform Server about completion ( /render stepdone jobId ) -> trigger next job/teleport


Helpful infos

  • Minecraft Client title changes if we are in the menu or on a server!
    • Allows us to detect if interaction with the game worked


Uploading images: