Sign in to follow this  
conman

renderstates question in managed d3d

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this