Hello Pablo,

Pablo Carneiro Elias wrote:
> Hi everyone.... is there any set of functions ready to be used in opensg 
> in order to build projective matrices or lookAt matrices... something like
> 
> OSG::Matrix m = makeProjection( fovy, near, far )
> 
> OSG matrix m = makeLookAt( eye, center , up )
> 
> I couldnt find any help within the dev guide nor tutorials.... It would 
> be boring to create these basic functions....

please take a look at 
<http://www.opensg.org/doc-1.6.0/OSGMatrixUtility_8h-source.html>, or 
the file Source/Base/Base/OSGMatrixUtility.h
AFAIK there is one caveat with MatrixLookAt though, it produces matrices 
that are meant for use with a camera beacon so they may well be the 
inverse of what the GLU function produces.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to