• Advertisement
Sign in to follow this  

Relief mapping on terrain issue

This topic is 1941 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I just started extending unity's terrain system in order to achieve a visual effect as the one of Cryengine 3. So, the point is that tessellation is too expensive, parallax mapping isn't so good, but I just met a article of FABIO POLICARPO, teaching me relief mapping. However it works greatly on flat and curve meshes, but on the terrain it looks like that


relieferror.png


On the right u can see relief mapping applyed to a flat plane, while on the right u can see the same mapping applyed to the terrain. What's wrong with that? It just look as the texture twirls around the camera, and also while moving it looks a little ugly...

Thanks for your time and please could u also explain me interval mapping? Thanks again

Share this post


Link to post
Share on other sites
Advertisement
I've been playing with (probably the same) relief mapping in Unity. I don't get the effect you are. I wonder whether you're using the wrong vector in your pixel shader, e.g. it's calculating it relative to a different camera position. Or possibly it has a hardcoded camera/lighting position because it's not designed for Unity. I recall I needed to make some changes.

Share this post


Link to post
Share on other sites
ok I solved it, here's a demo http://dl.dropbox.com/u/91501658/POM/WebPlayer/WebPlayer.html

however I still need to compute ray distance in order to create a LOD system and reduce impact on the gpu

PS have u got any suggestion to calculate occlusion?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement