Aswin Shrestha Posted December 3, 2014 Share Posted December 3, 2014 Has anyone worked on the SRTM data for Babylonjs? I wanted to use the SRTM data (GeoTiff) to render terrains in Babylonjs. What I feel should be done is, using the given .tiff/ASCII files to generate the bump maps for the terrain. But, I'm not so sure if that's how it should be used.So, if anyone here can give me a heads up on this, it would be very grateful. Thanks. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 3, 2014 Share Posted December 3, 2014 Hey, I don't know what is SRTM, but if it's based on textures like http://www2.jpl.nasa.gov/srtm/ then BabylonJS is not able (today) to create normal maps on the fly. You can implement it by following a tutorial (you can take a look in Irrlicht 3D engine ( driver->makeTextureNormalMapped() ) to see how the algorithm looks like Quote Link to comment Share on other sites More sharing options...
Aswin Shrestha Posted December 4, 2014 Author Share Posted December 4, 2014 Cool. Thanks for the info. I'll definitely look into the implementation. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted December 4, 2014 Share Posted December 4, 2014 You can find the Irrlicht implementation here : http://sourceforge.net/p/irrlicht/code/HEAD/tree/branches/releases/1.8/source/Irrlicht/CNullDriver.cpp#l1127 If you make it work, don't hesitate to implement it directly into BabylonJS, it would be AWESOME =DAlso don't hesitate if you encounter problems during the implementation Quote Link to comment Share on other sites More sharing options...
Aswin Shrestha Posted December 8, 2014 Author Share Posted December 8, 2014 Thank you for the link @luaacro I'll try my best to 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.