Jump to content

  • Log In with Google      Sign In   
  • Create Account


Normal Mapping


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
2 replies to this topic

#1 markypooch   Members   -  Reputation: 318

Like
0Likes
Like

Posted 30 June 2013 - 12:33 PM

Hello all,

 

I found that I make great process in doing things that lead to a more grand picture. Right now I know how to do simple directional lighting in D3D11. While i'm getting more comfortable with HLSL this at the moment is the extent of my knowledge. Something I've been wanting to do for

quite sometime is Normal Mapping. I have already worked with lighting in D3D11 (directional lighting to point lights) and I know how to calculate normals of simple primitives like quads and triangles.

 

So how would I go about normal mapping a simple quad? I know that I have to find the tangent and Binormals,, I also know that I am going to need a normal map for the texture I am using on the quad.

 

But other then what I have stated to know, where do I go from here? Should I tackle something first before trying normal mapping? And how would one go about finding the tangent and Binormals of a quad?

 

-Marcus



Sponsor:

#2 kauna   Crossbones+   -  Reputation: 2338

Like
2Likes
Like

Posted 30 June 2013 - 01:53 PM

You'll need normal map texture, per vertex normal, tangents, bitangents and texture coordinates to use normal map for lighting. 

 

http://www.rastertek.com/dx10tut20.html

 

In the link above there is a code for calculating tangents and bitangents.

 

Cheers!



#3 markypooch   Members   -  Reputation: 318

Like
0Likes
Like

Posted 30 June 2013 - 01:58 PM

biggrin.png  Awesome! Thanks, can't believe I never came across this site.






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