Archived

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

Front To Back, One VertexBuffer

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

From what I understand, I ask this question: We sort F2B because when the "one" "big" vertexbuffer runs out, the user wouldnt really notice, and if they do, it''s like having pop-ups from the back of the 3D-space? (like in the PS2 games ) .lick

Share this post


Link to post
Share on other sites
Actually, it''s recommended to sort your objects (or polygons, whatever) front to back because it reduces overdraw.

When you render an object, the Z-Buffer is checked to determine whether each pixel on the current polygon is "closer" to the screen than the pixel that is already plotted there. If you render back to front, a pixel may get redrawn many, many times.

If your polygons are in a perfect front to back order (i.e. no intersecting polygons, each polygon is in front of any polygons after it in the list), each pixel will get drawn, at most, once.


Josh

Share this post


Link to post
Share on other sites