• Advertisement
Sign in to follow this  

[DX9] - Rendering Primitives Always On Top

This topic is 3708 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've been trying to figure out how to render certain primitives on top of other primitives if they are in the same spot. For example, I have two triangles with edges that share the same position. So if i render them as a wireframe, one overlaps the other. I want to be able to choose which triangle would appear on top. How can I accomplish this? Does it mean I have to rearrange the primitives in the vertex buffer?

Share this post


Link to post
Share on other sites
Advertisement
Hi,that's why we have a depth buffer.
It's a buffer also called Z-buffer which stores information about object distance from the viewing point.Object's that are closer to the viewing point will occlude those that are not so close.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement