Sign in to follow this  
lomateron

directx standar world rendering

Recommended Posts

lomateron    491

when rendering the world why is common to render to a flat world texture instead of rendering to the surface of a sphere and then transforming it into a flat texture?

 

When rendering to the surface of a sphere you can increase the field of view more than pi/2

Edited by lomateron

Share this post


Link to post
Share on other sites
lomateron    491

I just tried it and discovered that It will need lots of vertices to make it look good, it will need a vertex per pixel to make it look perfect.

Edited by lomateron

Share this post


Link to post
Share on other sites
Jason Z    6434

That is actually called sphere mapping, which was commonly used in environment mapping in the old days.  The reason not to do this is that you don't get an even distribution across the entire texture.  In fact, if you use a full spherical project then you get a singularity at the point opposite of the projection (where the view wraps around the virtual sphere).

 

You can check out the environment mapping section of the D3D10 book linked in my signature for a comparison of sphere mapping, paraboloid mapping, and cube mapping if you are interested in learning more about it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this