Re: [osg-users] dynamic vertex array howto
Hi, it worked just fine. I guessed so, because I noticed the dirty method not on the geometry but on the vertex array autocomplete, I was asking because sometimes the documentation has only the code listing and not an actual explanation. I guess I could have tried it, but it was also to confirm that I was doing the right thing. Thank you =) Jean-Sébastien Guay wrote: Hi Paulo, What am I doing wrong? Do I need to call some method to flag that the array changed? Yep, good intuition: _geometry-dirty(); Also, since you're changing the vertices each frame, set _geometry-setUseDisplayList(false); or otherwise you'll get bad performance. Hope this helps, J-S ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Qt mouse wheel zoom howto
Hi, I was writing an application using Qt and osg. I would like to zoom in and out on mouse scroll. I could not find a good way to do this, so I came up with: void osgWidget::wheelEvent(QWheelEvent *event) { const float delta(event-delta() / (8.0f * 15.0f)); const float x(event-x()); const float y(event-y()); const float ydy(y + delta); const int b(osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON | osgGA::GUIEventAdapter::MIDDLE_MOUSE_BUTTON); _gw-getEventQueue()-mouseButtonPress(x, y, b); _gw-getEventQueue()-mouseMotion(x, ydy); _gw-getEventQueue()-mouseButtonRelease(x, ydy, b); } which actually works but it's not so elegant. Is there a obj-zoom(0.9f); to get 10% closer or obj-zoom(1.1f); to get 10% further for example? thank you. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Focus/zoom in a node.
Hi, is there a tutorial where I can see how make the camera focus a particular node, such that the node's bounding box will fit the viewer window? Thank you. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Focus/zoom in a node.
Hi, thank you for replying. Well maybe. Imagine that I load a model so big or so small that with the current camera parameters I can see a thing. I want to adapt the camera automagically so that my current loaded/selected scene/node will fit just nicely on screen. =) Paulo Robert Osfield wrote: HI Paulo, On Sun, Feb 8, 2009 at 9:23 AM, Paulo Jnkml paulo.jn...@gmail.com wrote: is there a tutorial where I can see how make the camera focus a particular node, such that the node's bounding box will fit the viewer window? Do you mean setting the home position of the camera position? Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Server migration
Error: Forbidden FILE_VIEW privileges are required to perform this operation on Path /OpenSceneGraph/trunk/examples/osgspacewarp/osgspacewarp@6941 There's also this problem. cheers Jose Luis Hidalgo wrote: Hi Paul, I'm adjusting the apache, and restarting it from time to time, maybe you got me in the middle of one of them. :P Jose-L. On Sun, Feb 8, 2009 at 4:55 PM, Paul Melis osg-us...@assumetheposition.nl wrote: Jose Luis Hidalgo wrote: Hi Paul, I had changed DNS entries, so it's possible it takes a while to spread around all ISP's DNS. The final server will be http://158.42.9.50/projects/osg In at most few hours, everybody should access using http://www.openscenegraph.org. I can indeed login with my svn account on the new server, and editing works, so that's good. But http://158.42.9.50/projects/osg does not seem to respond all the time, at least, it doesn't right now. Paul ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org