• Advertisement
Sign in to follow this  

Z-buffer with different projection matrix

This topic is 1380 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.

fei

Share this post


Link to post
Share on other sites
Advertisement

This article http://www.gamasutra.com/view/feature/131393/a_realtime_procedural_universe_.php?page=1 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