Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


D3D8 - Untransformed and Lit verticies

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

I have a FVF that has Diffuse and Specular color without a normal. I disable the lighting so the color is only determined by the vertex The coloring works fine, but the alpha does not. How do I use the Diffuse to set the alpha in a pre-lit vertex?

Share this post

Link to post
Share on other sites
1) The top 8bits of the DWORD for DIFFUSE are the alpha bits.

2) How the alpha gets interpeted depends entirely on:

a) The TextureStageStates you have set - if you haven''t asked for alpha to be retrieved from the DIFFUSE colour and passed down the pipeline, then it won''t!

b) The RenderStates you have set - i.e. ensure alpha blending is enabled, alpha testing is as you desire, the blend modes are as you desire, the Z buffer is as you desire (i.e. usually Z write off, Z test on).

Simon O''Connor
Creative Asylum Ltd

Share this post

Link to post
Share on other sites

  • 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!