Sign in to follow this  
Yang G

implement of sphere mapping in EM

Recommended Posts

Yang G    105
Hi
I'm writing some code to implement the sphere mapping , But I can't understant the theory from the limit imformation got on the net.
can someone give me some clews , documents or links about the details of sphere mapping.
if you have some documents about it, I'll appreciate you can mail me. my email is [email="pinner@mail.ustc.edu.cn"]pinner@mail.ustc.edu.cn[/email].

Thanks in advance

Share this post


Link to post
Share on other sites
Hodgman    51234
[url="http://en.wikipedia.org/wiki/Sphere_mapping"]http://en.wikipedia..../Sphere_mapping[/url]

Which parts are you having trouble with?

Do you have to generate sphere maps, do you have to use existing sphere-maps to implement environment-mapping, or both?

Which graphics API are you using? Are you using shaders?

What have you tried so far? What sources of information have you used so far?

Is there a reason you want to use sphere-mapping instead of other techniques, such as cube-mapping?

Share this post


Link to post
Share on other sites
Jason Z    6434
Have a look at this article - it will show you the details of sphere mapping, along with a comparison of cube mapping, dual paraboloid mapping, and sphere mapping:

[url="http://wiki.gamedev.net/index.php/D3DBook:Single_Pass_Environment_Mapping"]Programming Vertex, Geometry, and Pixel Shaders - Single Pass Environment Mapping[/url]

Share this post


Link to post
Share on other sites
rouncer    294
sphere mapping is just taking the normal, multiplying it by the view matrix, and then reading the x and y coordinate of the normal as a uv coordinate, the map you use is a fishbowl of an environment, and it makes the object look shiny. theres lots of ways to do it tho, theres different versions, and make metallic objects.

Share this post


Link to post
Share on other sites
Yang G    105
Thx

I just want to learn the theory of sphere-mapping and implement it by C++ program. I have implemented the cube-mapping ;-)
I will check the link posted by Jason Z.

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