GoldNotch Posted November 8, 2015 Share Posted November 8, 2015 I want to create a terrain, which will be loaded when player to be in it. How I can do it? Be desirable, if you can give me example on c++ code. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
shadmar Posted November 9, 2015 Share Posted November 9, 2015 I'm desirable Map::Load() does this for you. http://www.leadwerks.com/werkspace/page/api-reference/_/map/mapload-r510 2 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
GoldNotch Posted November 9, 2015 Author Share Posted November 9, 2015 I think, that if you use Map::Load(), you load new map. And it is necessary to me that in one world some terrains were loaded. And I get open world Quote Link to comment Share on other sites More sharing options...
f13rce Posted November 9, 2015 Share Posted November 9, 2015 Whenever you use Map::Load, a new map enters the current existing world. So if you load map1 and map2, both will be merged into the world. Alternatively, you can do something like this: Terrain *mTerrain = Terrain::Create(); And work from there. I haven't seen any documentation of it on the wiki about it though. I'd recommend making a terrain in the editor (as seperate map) if you know what you want for your world. Quote Using Leadwerks Professional Edition (Beta), mainly using C++. Windows 10 / Linux Mint, Visual Studio 2017. GPU: NVidia GeForce GTX970, CPU: Intel i7 7700K @ 4.20 GHz Previously known as Evayr. Link to comment Share on other sites More sharing options...
Wedmer Posted November 9, 2015 Share Posted November 9, 2015 Yes, Terrain part is totally undocumented in wiki, but you can just look trough header files) 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.