Hi Per,

On 30/05/11 09:37, Per Nordqvist wrote:
Hi JP,

I had similar problem on 2.8.x, your code doesn't compile for me but
have your tried
wrapping the cursor stuff with

viewer.stopThreading();
..
viewer.startThreading();

hmm, your suggestion works. I didn't realize that viewer.realize() starts threading...

This could explain a lot of things, because some calls are happening prior to the first viewer.frame() call.

Thanks for the help.
rgds
jp

PS. working version attached.


/Per

On 26 May 2011 15:40, J.P. Delport<[email protected]>  wrote:
Hi all,

the attached little app crashes if I don't run it with --SingleThreaded.

Can anyone on Linux check if the same happens for them? Also let me know
your OSG version.

./test cow.osg

thanks
jp

PS. adding a frame() call before the cursor change also seems to work for
the default threading case. Not sure why.

--
This message is subject to the CSIR's copyright terms and conditions, e-mail
legal notice, and implemented Open Document Format (ODF) standard. The full
disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.


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


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

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Attachment: osgviewer_cursor.tar.gz
Description: GNU Zip compressed data

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

Reply via email to