Skip to main content
GameDev.net gamedev.net
🔒 Locked

Bump Mapping Problem

Started by luke88 Jan 28, 2006 at 10:35 AM 0 replies 550+ views
Original Post
luke88
luke88
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]
luke88

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.