dennis Posted September 26, 2015 Share Posted September 26, 2015 Heya guys, Is it possible to pre-render my next map when my first map is still loaded ? cheers ? Quote Link to comment Share on other sites More sharing options...
Rick Posted September 26, 2015 Share Posted September 26, 2015 What do you mean pre-render? Do you mean load it into memory? You can load as many maps as you want into your world but if they are all located in the same place they will draw on top of each other unless you go through and hide all entities in said map. Quote Link to comment Share on other sites More sharing options...
Gonan Posted September 26, 2015 Share Posted September 26, 2015 So if its possible to load 9 maps each occupying one tile of a 3 by 3 grid but 8 low poly and 1 high poly representing your current location, then when your location changes toone of the outer tiles, that tile becomes high poly and the new centre and 3 or 5 new low poly tiles are loaded with 3 or 5 tiles discarded depending on the location moving to a corner or side tile, and the old high poly tile is replaced with a low poly version, thus providing an infinitely sized world. Quote Link to comment Share on other sites More sharing options...
Rick Posted September 26, 2015 Share Posted September 26, 2015 Loading maps isn't asynchronous and so each time you load there will be a pause. So yes, you could get an infinite world, but you'd have to be loading models that have already been loaded in memory at least once (to take advantage of instancing because loading a model that is already loaded isn't really noticeable). And you'd have to load probably a few tiles at a time each frame to avoid a possible noticeable lag. Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted September 26, 2015 Share Posted September 26, 2015 Sounds like want to create a prodcedurally generated map. Check out this thread for some ideas. http://www.leadwerks.com/werkspace/topic/12419-procedural-level-generation-lua/page__hl__procedural%20generation#entry90592 I rember playing a game from one of the Tornements which allowed you to run over a PG map. Quote Link to comment Share on other sites More sharing options...
dennis Posted October 2, 2015 Author Share Posted October 2, 2015 Ricks answser comes most close, I wanted to load my maps into memory, so the loading screens will appear for a short time, which will be used to show all entities and destroy all unused entities from the other map Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.