Z-buffer with different projection matrix

Started by
0 comments, last by C0lumbo 9 years, 9 months ago

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

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.

This topic is closed to new replies.

Advertisement