[osg-users] osg+QT MODKEY How to
Hi all, I'm trying to add a Modkey event handler to my application with osg and qt4. But it seems that the getModKeyMask() fuction fails to work. Return value of getModKeyMask() always is 0, even if I have a MODKEY pressed. And, this is my code: if ( ea.getEventType() == osgGA::GUIEventAdapter::PUSH ea.getButtonMask() == osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON ea.getModKeyMask() == osgGA::GUIEventAdapter::MODKEY_SHIFT ) { /*- do something here -*/ } How can I handle it? Thanks in advance! cheers legeo ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OSG 2.6.1 and VPB
Hi Michael, You either have to install OSG and VPB or set up LD_LIBARARY and PATH env vars to point to respective lib and bin directories. Robert. On Sat, Mar 7, 2009 at 1:01 AM, Michael W. Hall hal...@att.net wrote: I appreciate the reply. I got OSG 2.6.1 and followed the info you provided to get the version of VPB that was was listed in the table to work with the version of OSG I have installed. It has been a while since I have played with it, but the both build and installed. When I try to run osgversion, I get the following: ./osgversion: error while loading shared libraries: libOpenThreads.so.11: cannot open shared object file: No such file or directory I have checked and the above lib is there. When I run osgdem, I get the following error: osgdem: error while loading shared libraries: libvpb.so.8: cannot open shared object file: No such file or directory That lib is there also. Any ideas to try? I am running FC10. Thanks, Michael On Sun, 2009-01-25 at 11:58 +0100, Ralf Stokholm wrote: Hi Michael I have set up my build of osg using externals in svn. osg http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.6.1 osgdata -r7561 http://www.openscenegraph.org/svn/osg/OpenSceneGraph-Data/trunk 3rdPartysvn -r403 https://osgtoy.svn.sourceforge.net/svnroot/osgtoy/3rdParty/branches/3rdParty_win32binaries_vs80sp1 osgdem -r927 http://www.openscenegraph.org/svn/VirtualPlanetBuilder/trunk this should work, at least it does on Windows xp and visual studio. If you simply want to get VPB in 924 or 927 which works for me, then simply do an update to revision in svn. Hope this helps. Brgs. Ralf Stokholm www.arenalogic.com 2009/1/25 Michael W. Hall hal...@att.net I have built OSG 2.6.1. Now I am trying to get the VPB to build. I got the latest from SVN, but I see that the chart says VPB r924 is the one to use. Could someone tell me how to get the version of VPB that will compile against OSG 2.6.1? I am using Fedora Core 10 x86_64. Thanks, Michael ___ 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 ___ 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] osg+QT MODKEY How to
Hi Legeo, How are you integrating OSG and QT? Robert. On Sat, Mar 7, 2009 at 8:14 AM, legeochen legeoc...@gmail.com wrote: Hi all, I'm trying to add a Modkey event handler to my application with osg and qt4. But it seems that the getModKeyMask() fuction fails to work. Return value of getModKeyMask() always is 0, even if I have a MODKEY pressed. And, this is my code: if ( ea.getEventType() == osgGA::GUIEventAdapter::PUSH ea.getButtonMask() == osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON ea.getModKeyMask() == osgGA::GUIEventAdapter::MODKEY_SHIFT ) { /*- do something here -*/ } How can I handle it? Thanks in advance! cheers legeo ___ 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] Help with adding a player model
Hi! Could I ask 1 more question? I want to ride a vehicle in the cockpit, Which solution could I use? When I use NodeTracker, the vehicle is always at center of the screen. Thanks in advance! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Animated HeightField
Hi... I want to build an animated HeightField (Heights of certain cells changes during the execution). I try with a callback that modify the heights ( with setHeight() function). The data are modify but the shape no. I tried to set the data variance ad dynamic but doesent't work. Thanks for help... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8058#8058 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Animated HeightField
Hi Giovanni, what are you tying to acvhive by changing HightField dynamicly. If you want save your performance I suggest you to use shader (GLSL) for kind of this works. It would be so easier and performance saver. Regards. 2009/3/7 Giovanni osgfo...@tevs.eu Hi... I want to build an animated HeightField (Heights of certain cells changes during the execution). I try with a callback that modify the heights ( with setHeight() function). The data are modify but the shape no. I tried to set the data variance ad dynamic but doesent't work. Thanks for help... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8058#8058 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Ümit Uzun ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] WPF and OpenGL popup window problem
Hi Himar, W.r.t. whether you are fool to use WPF or Qt or wxWidgets or whatever windowing technology you use: They are tools, you as programmer are the artisan. Sorry if it looked as if I were trying to imply anyone was a fool, that's not the case. I have used this same argument a lot in the past (and in the recent past on this very mailing list) hence the smiley at the end of my sentence... :-) It was meant as a joke. Thanks for the concrete info on this issue, it's useful to know about these issues. J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Animated HeightField
Hi Giovanni, On 8/3/09 1:56 AM, Giovanni wrote: I want to build an animated HeightField (Heights of certain cells changes during the execution). I try with a callback that modify the heights ( with setHeight() function). The data are modify but the shape no. I tried to set the data variance ad dynamic but doesent't work. It's probably the display list not being updated. You have to explicitly dirty it after updating the data using dirtyDisplayList() or turn it of altogether if you're doing a lot of updates.. Also be aware that HeightField isn't optimal for this kind of application and won't give you the best performance. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osg+QT MODKEY How to
Hi Robert I wrote a ViewerQT class according to the osgviewerQT in examples. Then set Central Widget of a form to this viewerQT instance. Is it a proper way to intergrate ogs and qt? Thanks! legeo 2009/3/7 Robert Osfield robert.osfi...@gmail.com Hi Legeo, How are you integrating OSG and QT? Robert. On Sat, Mar 7, 2009 at 8:14 AM, legeochen legeoc...@gmail.com wrote: Hi all, I'm trying to add a Modkey event handler to my application with osg and qt4. But it seems that the getModKeyMask() fuction fails to work. Return value of getModKeyMask() always is 0, even if I have a MODKEY pressed. And, this is my code: if ( ea.getEventType() == osgGA::GUIEventAdapter::PUSH ea.getButtonMask() == osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON ea.getModKeyMask() == osgGA::GUIEventAdapter::MODKEY_SHIFT ) { /*- do something here -*/ } How can I handle it? Thanks in advance! cheers legeo ___ 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Configuring OSG for stereo
Robert, I converted all the measurements to meters. As I suspected there were no changes since the units should fall out of the calculations. So the question remains. What controls the depth plane? If I use the trackball manipulator and press space the depth plane is set to the center of the objects volume so next week I'll look into what it is doing. Thank you, Eric -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=8064#8064 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org