Hi Désirée,

Désirée Görrisen wrote:

Hi,

another question concerning the drawPrimitives method...

Is it possible to find out the camera positions from inside this method?


yes, the drawPrimitives method gets a DrawActionBase * as parameter, which will give you the Camera, Viewport and Window. You can look at Source/System/NodeCores/Drawables/Misc/OSGSlices.cpp for an example (to get the Camera you do not have to cast to RenderAction).

        Hope it helps,
                Carsten


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to