Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Z-buffer with different projection matrix


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

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

#1 lb999255   Members   -  Reputation: 106

Like
0Likes
Like

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.

fei



Sponsor:

#2 C0lumbo   Crossbones+   -  Reputation: 3003

Like
1Likes
Like

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.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS