bmcclint_gl

04-11-2013, 08:27 AM

I think this is more of an advanced topic rather than a shader topic for please forgive if posted in the wrong forum.

I’ve have seen in the past many rendering of globes, Earth and Mars for example, where the heights of the terrain were greatly exaggerated and give a very unique look to the final rendering. I’d like to know the techniques used to create such renderings.

I have been working a solar system rendition and have many techniques worked out like bump and parallax mapping, shadowing and translucencies for rings and all looks really good. I have attempted to do deformations, just for effect, but from what I have gathered so far is this work can only be accomplished in the vertex shader. Using the mar’s elevation maps for example I can extract the height at the texture coordinate and adjust accordingly. To get any sense of accuracy I need to generate an enormous amount of geometry for my sphere in the order of one vertex per height sample. I have done this in a smaller extent with flat geometry and quad-trees to generate flatter elevations with shadowing but large geometry is also required to get any sense of realism and the cost of performance. The global perspective is something I’d like to play with.

I suspect the answer is it will require the detailed geometry but wondering if there is something I am missing. My target is earlier versions of GLSL since I’d like to target iOS for example. Is this type of effect even possible in a real-time type simulation? Are there techniques that I have overlooked?

Any insight is greatly appreciated.

This is more of a research question at this time as I’ve wanted to dive into this more but not sure of the approach.

I’ve have seen in the past many rendering of globes, Earth and Mars for example, where the heights of the terrain were greatly exaggerated and give a very unique look to the final rendering. I’d like to know the techniques used to create such renderings.

I have been working a solar system rendition and have many techniques worked out like bump and parallax mapping, shadowing and translucencies for rings and all looks really good. I have attempted to do deformations, just for effect, but from what I have gathered so far is this work can only be accomplished in the vertex shader. Using the mar’s elevation maps for example I can extract the height at the texture coordinate and adjust accordingly. To get any sense of accuracy I need to generate an enormous amount of geometry for my sphere in the order of one vertex per height sample. I have done this in a smaller extent with flat geometry and quad-trees to generate flatter elevations with shadowing but large geometry is also required to get any sense of realism and the cost of performance. The global perspective is something I’d like to play with.

I suspect the answer is it will require the detailed geometry but wondering if there is something I am missing. My target is earlier versions of GLSL since I’d like to target iOS for example. Is this type of effect even possible in a real-time type simulation? Are there techniques that I have overlooked?

Any insight is greatly appreciated.

This is more of a research question at this time as I’ve wanted to dive into this more but not sure of the approach.