On 04/14/2012 07:09 PM, Jorge Izquierdo Ciges wrote:
Well I'll save you some headaches... DO NOT use the function "draw me
the camera frame now" it changes some OpenGL states and screws the
drawing of OSG. You can start from the example where they bind the
texture and draw it... the extrange is that even so OSG doesn't draw
EXCEPT if you remove the glDisables... then it works perfectly. It took
me some time compiling and recompiling once and again and again until i
found the troublesome lines. I need to check if the Nvidia Pack has a
trully functional OpenGL call inspector to understand what is happening.

Arg, thanks for the heads up.

We may finally end up not using QCAR because of the intrusive phone-home behaviour (big no go when you have confidentiality agreement with customer in place) and the onerous license - e.g. they explicitly forbid linking with GPL/LGPL code (the Android build is static, so it likely matters) and there are some patent-related clauses that could be a large headache, but I am not a lawyer to be able to judge that properly. The QCAR EULA is one of the worst piece of legalese I ever had the bad luck to read - even the Microsoft's one is more readable.

Regarding the state mess-up - I think that this is in fact documented in the QCAR doc, they say what state is modified. You can probably save the OpenGL state, then execute QCAR and then restore - that is how I integrated OSG with Qt before. Not pretty and also quite slow, but works.

Regards,

Jan

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

Reply via email to