Jump to content

Using SRTM(Shuttle Radar Topography Mission) data


Aswin Shrestha
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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 =D

Also don't hesitate if you encounter problems during the implementation :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...