I have a multi-projector setup that is currently using RTT cameras (ala 
osgdistortion), but the client now wants to add asymmetric frustums. My setup 
has N slave cameras, each with a nested camera(s) [very similar to 
createDistortionSubgraph]. Each slave is offset M degrees from its neighbor (we 
have cylindrical displays). The RTT cameras are using a RELATIVE_RF setup (If 
this is all unclear, I can post the appropriate snippets).

So, the question is where to set the frustum (using 
setProjectionMatrixAsFrustum)? I thought that setting the slave projection 
matrix would work. Wrong. Bashing the RTT camera’s matrix works in that it does 
something, but it’s wrong because of the relative_rf setting. It sort of works 
if I bash the slave’s projection offset matrix, but I have to multiply by the 
current camera’s projection matrix inverse to get reasonable results.

Ideas?

Mark
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to