Jump to content
  • Advertisement
Sign in to follow this  
luke88

Bump Mapping Problem

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

Basically, I'm having this huge problem trying to get dot product 3 bump mapping to work. All I've done was copy the code from the example at http://directx4vb.vbgamer.com/DirectX4VB/Tutorials/DirectX8/GR_Dot3Bump.asp and pasted it into my engine (of course with the appropriate adjustments), but when I render the scene, all I can see are the bump map textures, and not the actual original texture. I think this is because in the example, the vertex format of the face is D3DLVERTEX2, whereas in my engine, I'm just trying to apply the 2 textures (normal and bump mapped) straight to a mesh (D3DXMesh), but the vertex format is not compatible? Any ides of how I could fix this? (Assuming I'm correct) Also, I did try blending the textures using multi-pass blending, but again, there were huge problems. (Lots of meshes were transparent, the colours were slight off, and there alpha holes in lots of the textures). Any suggestions? Thanks, luke88 [Edited by - luke88 on January 28, 2006 11:50:53 AM]

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!