Jump to content

  • Log In with Google      Sign In   
  • Create Account

Z-buffer with different projection matrix

  • You cannot reply to this topic
1 reply to this topic

#1 lb999255   Members   -  Reputation: 106


Posted 13 July 2014 - 02:54 AM

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.



#2 C0lumbo   Crossbones+   -  Reputation: 2166


Posted 13 July 2014 - 06:24 AM

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, 13 July 2014 - 06:24 AM.