[osg-users] How to resize/move existing OSG window dynamically?
Hi, I have an example where I create an OSG window. I need to be able to move or resize it after creation through code. I have tried something like this: Code: while (!viewer->done()) { viewer->frame(); if (bConditionMet) viewer->getEventQueue()->windowResize(newX, newY, newWidth, newHeight); } But this seems to have no effect. Do I need to reset the traits on the graphicsContext? Thank you! Cheers, Mike[/code] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76156#76156 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to implement a Laser Simulation?
Hi, I have this example. The green line is the laser, projected on the scene. As you can see, the laser passes through the object. I want the laser bypasses the object (any object, not only spheres), as the example above. It's like a light spot ... Thank you! Cheers, Matheus -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76155#76155 Attachments: http://forum.openscenegraph.org//files/screenshot_from_2019_05_30_14_44_44_787.png ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Implementation of movement, rotation of scale
Hi, I want to move, rotate and scale the object with the help of auxiliary axes, so as done in the blendar, are there any libraries or code? [img]inspector_gizmo_scale.png[/img] ... Thank you! Cheers, Maxim -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76153#76153 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org