Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

implement of sphere mapping in EM


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 Yang G   Members   -  Reputation: 104

Like
0Likes
Like

Posted 07 April 2011 - 04:37 AM

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 pinner@mail.ustc.edu.cn.

Thanks in advance

Ad:

#2 Yang G   Members   -  Reputation: 104

Like
0Likes
Like

Posted 08 April 2011 - 09:10 AM

Posted Image??

#3 Hodgman   Moderators   -  Reputation: 13471

Like
1Likes
Like

Posted 08 April 2011 - 09:39 AM

http://en.wikipedia..../Sphere_mapping

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?

#4 Jason Z   GDNet+   -  Reputation: 2367

Like
1Likes
Like

Posted 08 April 2011 - 05:41 PM

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:

Programming Vertex, Geometry, and Pixel Shaders - Single Pass Environment Mapping
Jason Zink :: DirectX MVP
Check out our (now available) D3D11 book: Practical Rendering and Computation with Direct3D 11
Check out my Direct3D 11 engine on CodePlex: Hieroglyph 3
Check out our free online D3D10 book: Programming Vertex, Geometry, and Pixel Shaders
Lunar Rift :: Dual-Paraboloid Mapping Article :: Parallax Occlusion Mapping Article :: Fast Silhouettes Article

#5 rouncer   Members   -  Reputation: 244

Like
0Likes
Like

Posted 08 April 2011 - 06:40 PM

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.

#6 Yang G   Members   -  Reputation: 104

Like
1Likes
Like

Posted 08 April 2011 - 08:17 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS