Jump to content
  • Advertisement
Sign in to follow this  
Adriano

(Resolved)bump stage blending

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

Hello. How can I blend a dot3 bump map stage with the preceiding ones? Should I put the bump map first and then blend it with other stages? [Edited by - Adriano on May 1, 2006 7:08:53 AM]

Share this post


Link to post
Share on other sites
Advertisement
Just use shaders. :)

If you must use texture stages, though, you must blend in a later stage, which you can do either by putting the DP3 stage first or using D3DTA_TEMP functionality to store previous results.

Share this post


Link to post
Share on other sites
Quote:
Just use shaders. :)

Doh!

I'm not taking on shaders by now, so I'll consider the other approach you mentioned. I swear this is one of the last things I do without shaders :)
Thank you

Share this post


Link to post
Share on other sites
I don't seem to get it.
Can you be more specific about the stage states to use?

Now I put bump map on stage 0, texture on satge 1.
I use D3DTOP_DOTPRODUCT3, D3DTA_TEXTURE, D3DTA_TFACTOR for the bump map stage on stage 0 and it's correctly rendered on the material
then I set D3DTOP_MODULATE, D3DTA_CURRENT, D3DTA_TEXTURE for the texture on stage 1 and this displays the texture but not the bump map...
Where am I wrong?

Thx for any replies

Share this post


Link to post
Share on other sites
That sounds correct, so it's likely a simple typo in your code. Are you sure all of stage 1's setup is being done on stage 1 (ie: no copy and paste errors)?

Do you disable stage 2? You should.

Do you have an alpha op on both stages? It's illegal to have a color op with no alpha op, and the driver may do *anything*.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!