Advertisement Jump to content
Sign in to follow this  

Z-buffer with different projection matrix

This topic is 1650 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 buddies,


How do you solve the z-buffer when objects are rendered in different projection matrix?


I have some objects to render and most of them are small. so i use a small projection matrix to cull the objects, but there are a few big objects which i need big projection matrix,  then the problem appeared: the z-value in different projection matrix cannot be compared.


Thanks in advance.


Share this post

Link to post
Share on other sites

This article talks about how to manage the sort of situation where you're dealing with enormous variations in scale. Basically, it's just identifying objects that are very far away and adjusting both their position and scale so they fit into a single projection matrix.


In the context of space, it works fine because the objects are quite well separated by lots of, erm, space. Not sure what your scene is like to necessitate different projection matrices.

Edited by C0lumbo

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!