# bump mapping theory question

This topic is 4983 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I was reading up on bump mapping and was wondering why you needed to construct the two temp vectors (A and B) from the cross products of the surface normal and the Pu and Pv surface partial derivatives. As I understand it you create these two vectors in order to create a tangent plane with respect to the surface at point P. Then you take these two vectors and multiply them respectively by the s and t partial derivatives from the bump map to find the offset vector D for N. Since the surface normal was created via the cross product of the partial derivatives in the first place, couldn't you save time and multiply the P/u, P/v partial derivative vectors directly with the s, t partial derivative vectors from the texture map to find D? A = N X P , B = N X P , and D = B A - B B v u s t

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 15
• 9
• 11
• 9
• 9
• ### Forum Statistics

• Total Topics
634136
• Total Posts
3015756
×