ftomassetti Posted December 31, 2013 Share Posted December 31, 2013 Hi,I have a world composed by an heightmap and a biome map. For each tile I know if it is covered by water, its elevation and the biome (I have around 12 types: grassland, rock desert, sand desert, jungle, forest, etc.).How can I represent it Babylon?Federico Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 31, 2013 Share Posted December 31, 2013 Did you have a look to the Worldmonger demo? Quote Link to comment Share on other sites More sharing options...
ftomassetti Posted January 4, 2014 Author Share Posted January 4, 2014 Yes but I don't get how to associate different vertexes with different textures. I suppose Worldmonger do that in groundMaterial.js based on the height of points while I would like to do that based on values I keep in a matrix Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 4, 2014 Share Posted January 4, 2014 Everything is explained here:http://blogs.msdn.com/b/eternalcoding/archive/2013/08/06/babylon-js-creating-a-convincing-world-for-your-game-with-custom-shaders-height-maps-and-skyboxes.aspx But mainly all the job is done in the ground shader. I use the height of every vertex to determine which texture to use. 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.