Jump to content
  • Advertisement
Sign in to follow this  
conman

renderstates question in managed d3d

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

Hi! I am rendering bounding boxes of objects in my scene. The boxes are line lists of CustomVertex.PositionOnly vertices (so no color information) If I render only the bounding boxes they are rendered 100% white. IF I render my scene objects too, the boxes are also rendered, but not 100% white. So I guess the rendering of my scene objects chenges states which affects the rendering of the boxes. I'd like to know what I have to do, to get my boxes rendered 100% white without beeing affected by material or lighting or vertex colors of previously rendered meshes. Thanks, Constantin

Share this post


Link to post
Share on other sites
Advertisement
Simple, create a new material that is pure white for the boxes :) Also, disable lighting when they are rendered. Hope thats what you mean!

Share this post


Link to post
Share on other sites
Materials are used when lighting is enabled. Turning lighting off will give you white color with position-only vertices. Check this FAQ entry on vertex color - it's got a nice table of state combinations, and what colors they produce.

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!