Jump to content
  • Advertisement
Sign in to follow this  

How to load normal maps in D3DX9?

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

If I got a handle called


somewhere in my mesh or submesh class.

Do I just load them separately with


and then

I just

device->SetTexture(0, diffuseMap);
device->SetTexture(0, normalMap);
device->SetTexture(0, specularMap);


I used to find a lot of such information on the web, and don't know where they have gone.

Probably bumped down by google



Share this post

Link to post
Share on other sites

i think you must load in settexture passing different indexes to it.

SetTexture(0, diffuseMap)
SetTexture(1, normalMap)
SetTexture(2, specularMap)

It's some time i don't use dx9, but i remembre this...

Then in shader you must declare them with the right value (i don't remember how)...

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.

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!