Hi, On Thu, 2009-02-19 at 15:31 -0600, Carsten Neumann wrote: > Hi Gerrit, > > quick question: what is the difference between the "vpCamera" and > "camera" matrices in DrawEnv [1]? > Some background: I'm kinda hoping that they can be (ab?)used to solve a > little problem with the deferred shading stuff I'm working on: > When doing the shading passes there is an ortho camera active and I > render a single quad, but I'd like to use LightChunk to transport > information about the currently active light source to the shading > shader. The problem is in LightChunk::activate where it computes the > position of the light in eye coords, it uses DrawEnv::getCameraViewing() > for the viewing matrix and that is the viewing matrix from the ortho > camera ATM. Would that be a case that was supposed to be handled by the > two sets of matrices in DrawEnv? > > Thanks, > Carsten > > [1] the only use I could find is in Billboard, but I could not guess the > intentions behind it from that.
vpCamera is the one set be the original Viewport, e.g. the one that defines the view given by the application. Internally different stages can draw temporary images, e.g. the six sides of a cubemap. In this case the "camera" matrices reflect the setup for the current face whereas the vpCamera still reflects the global setup. I would not bet on it that 100% of the places where this difference might be needed were actually updated. But this is the idea behind these two sets of matrices. kind regards, gerrit ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Opensg-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-core
