Jump to content
  • Advertisement
Sign in to follow this  
chubakueno

Normal maps

This topic is 2708 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

How can I implement a normal map in a Sphere only with the Sphere Normal(How can I know the tangent and bitangent) and transform the normal map to tangent space. After googling a lot I can't find the tangent, I will appreciate your reply .

Share this post


Link to post
Share on other sites
Advertisement

How can I implement a normal map in a Sphere only with the Sphere Normal(How can I know the tangent and bitangent) and transform the normal map to tangent space. After googling a lot I can't find the tangent, I will appreciate your reply .




The tangent and bitangent are equivilent to the U and V vectors in object space, so if you have a Triangle, you can generate normals, tangents, and bitangents from it. Your google fu is not strong. Here is a tutorial i got from the first page of hits.

Share this post


Link to post
Share on other sites
The problem is that I'm not working on OpenGL, neither with triangles, so I don't have u and v. I'am working on a basic raytracer I code to study the the 3D rendering basics, so I don't have any triangles, only a mathematicaly defined sphere.I can get the tangent from the sphere but I can't get it from a more general case.

Share this post


Link to post
Share on other sites

Are you texture mapping the sphere yet?

I've textured it with a cylindrical projection and normalized coordinates procedurally obtained from the 3d sphere, but in the triangle case the u and v are relative to a "p0" point (any of the 3 corners) and the triangle is always planar, but in a mathematically defined solid doesn't apply because the solid may be not planar and there is no reference point parallel to the tangent plane .

Sorry if there are gramatical errors :D

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!