Thanks Remy Deslignes, I fix the problem
2008/2/6, [EMAIL PROTECTED] < [EMAIL PROTECTED]>: > > Send osg-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of osg-users digest..." > > > Today's Topics: > > 1. Re: Displaying cables (Jean-S?bastien Guay) > 2. Re: Coordinate conversion -VPB (Jean-Christophe Lombardo) > 3. Re: Problems with picking and HUDs (R?my Deslignes) > 4. How to read VRML file in OSG (syed tayyab) > 5. Re: How to read VRML file in OSG (Bob Huebert) > 6. Re: How to read VRML file in OSG (Jean-S?bastien Guay) > 7. X11 keyboard bug (+ ugly fix) (Melchior FRANZ) > 8. Re: Efficient mesh data structures (Nicholas Yue) > 9. Re: X11 keyboard bug (+ ugly fix) (Jean-S?bastien Guay) > 10. Re: X11 keyboard bug (+ ugly fix) (Melchior FRANZ) > 11. Re: X11 keyboard bug (+ ugly fix) (Bradford, Chase) > 12. Re: X11 keyboard bug (+ ugly fix) (Melchior FRANZ) > 13. Re: using VPB to make an earth model (Michael W. Hall) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 05 Feb 2008 09:13:25 -0500 > From: Jean-S?bastien Guay <[EMAIL PROTECTED]> > Subject: Re: [osg-users] Displaying cables > To: OpenSceneGraph Users <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Bonjour R?my, > > > Just a stupid question : if the bottleneck is the update of the hose, > > what would you think about using VBOs ? > > > > Well, on a hunch yesterday before leaving I did something that actually > improved things quite a bit: Before, when I wanted to switch off display > lists, I would use both these lines: > > geometry->setUseDisplayList(false); > geometry->setUseVertexBufferObjects(true); > > The result was that the geometry was not visible for some reason (which > leads to a separate question of what is necessary to get VBOs working > right, but that's not really important for now). > > In one try, I "accidentally" did this: > > geometry->setUseDisplayList(false); > //geometry->setUseVertexBufferObjects(true); > > (i.e. DLs off but VBOs _not_ on - not sure what state that leaves the > geometry in...) > > And that gave a really *huge* improvement! The cables are almost not > significant now in the draw time. So I guess it really was the display > list recompilation that was killing my draw time. > > Thanks everyone for the tips and ideas for investigation. I'd say > problem solved at this point. :-) > > J-S > > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > > > > ------------------------------ > > Message: 2 > Date: Tue, 05 Feb 2008 15:34:52 +0100 > From: Jean-Christophe Lombardo <[EMAIL PROTECTED]> > Subject: Re: [osg-users] Coordinate conversion -VPB > To: OpenSceneGraph Users <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > Maybe you could specify a NODATA value both for input and output to > gdal_warp (-srcnodata -dstnodata options) . > I thought such an option was also available in osgdem, but I can't find > it.... > > jc > > -- > Jean-Christophe Lombardo - Salle Immersive "Le Corbusier" > http://salle-immersive.cstb.fr > EVE / Centre Scientifique et Technique du Batiment > 290 route des Lucioles - BP 209 - 06904 Sophia Antipolis - France > > > > > > > > ************************************************************************************ > This footnote confirms that this email message has been scanned by > PineApp Mail-SeCure for the presence of malicious code, vandals & computer > viruses. > > ************************************************************************************ > > > > > > ------------------------------ > > Message: 3 > Date: Tue, 05 Feb 2008 15:51:27 +0100 > From: R?my Deslignes <[EMAIL PROTECTED]> > Subject: Re: [osg-users] Problems with picking and HUDs > To: OpenSceneGraph Users <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Just an idea : > > AFAIK , If you use a CameraNode under a Transform , the display is then > not consistent with the picking : The display of any geometry under the > CameraNode will be affected by the Transform, but the IntersectVisitor > traversal of the CameraNode will reset the transformation matrix. > Put any transform after the cameraNode. > > (Hope this will help) > > R?my > > Pedro Jos? Mu?oz a ?crit : > > Hi all, > > Making an application to show the name of different elements, I can do > > it with everything except with HUDs, do you have any idea why does it > > happen? > > Thanks in advance > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > -- > Remy Deslignes > > Ingenieur Developement / Software Engineer > > Tel: +33 (0)1.53.90.11.19 > > =========================================== > Silicon Worlds S.A. > 224, rue Saint Denis > 75002 Paris France > Tel: +33 (0)1.53.90.11.11 > Fax: +33 (0)1.53.90.11.12 > http://www.silicon-worlds.fr > =========================================== > > > > > ------------------------------ > > Message: 4 > Date: Tue, 5 Feb 2008 17:53:12 +0000 > From: syed tayyab <[EMAIL PROTECTED]> > Subject: [osg-users] How to read VRML file in OSG > To: <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi > i want to if it is possible to read a vrml (.wrl) file in OSG , and will > all the attributes and functinality will be imported from the VRML file. > Regards > Syed Tayyab > > _________________________________________________________________ > Free games, great prizes - get gaming at Gamesbox. > http://www.searchgamesbox.com > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080205/6b2cbfaa/attachment.html > > ------------------------------ > > Message: 5 > Date: Tue, 5 Feb 2008 09:19:42 -0900 (AKST) > From: Bob Huebert <[EMAIL PROTECTED]> > Subject: Re: [osg-users] How to read VRML file in OSG > To: OpenSceneGraph Users <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > Yes, it is possible to read vrml files into the osg. > > You'll need to build the Coin3D library and rebuild osg. The result will > be able to display simple vrml files, not all functionality is supported. > > Hope this helps. > > -bob > > On Tue, 5 Feb 2008, syed tayyab wrote: > > > Hi > > i want to if it is possible to read a vrml (.wrl) file in OSG , and will > all the attributes and functinality will be imported from the VRML file. > > Regards > > Syed Tayyab > > > > _________________________________________________________________ > > Free games, great prizes - get gaming at Gamesbox. > > http://www.searchgamesbox.com > > > ------------------------------ > > Message: 6 > Date: Tue, 05 Feb 2008 14:14:56 -0500 > From: Jean-S?bastien Guay <[EMAIL PROTECTED]> > Subject: Re: [osg-users] How to read VRML file in OSG > To: OpenSceneGraph Users <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hello Syeb and Bob, > > You'll need to build the Coin3D library and rebuild osg. The result will > > be able to display simple vrml files, not all functionality is > supported. > > Another solution is to use the OpenVRML2 reader. For Windows see > > > > http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio/VisualStudioPlugins > > Hope this helps, > > J-S > > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > > > > ------------------------------ > > Message: 7 > Date: Tue, 5 Feb 2008 21:19:52 +0100 > From: Melchior FRANZ <[EMAIL PROTECTED]> > Subject: [osg-users] X11 keyboard bug (+ ugly fix) > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > There's a problem with the keyboard support on X11. It's really > caused by the way X works, and SDL or glut are said to struggle > with it as well. I haven't seen the problem there, though, so > they probably found a way to work around it. > > To reproduce start the osgkeyboard example, press a few modifier > keys (let's say Ctrl and Shift) and while keeping them pressed > switch the desktop (e.g. on KDE) or minimize the window. Release > the modifier keys. Now, when you switch back or open the minimized > window, you'll see Ctrl and Shift still activated. And it's not > only an visual problem. These keys are actually not released, and > pressing 'a' will now really be seen as 'A'. That's very annoying > in FlightGear. One has to press and release the respective modifier > keys to get the missing release event. > > I've "fixed" that here with a little hack. I doubt that it's > acceptable for CVS, as it sends releases for keys that were never > pressed, which might confuse some applications. But maybe the patch > inspires someone to write a real fix. ("UnmapNotify" is sent when > the window gets hidden away, and "MapNotify" when it's brought back.) > > m. > > > > Index: src/osgViewer/GraphicsWindowX11.cpp > =================================================================== > --- src/osgViewer/GraphicsWindowX11.cpp (revision 7855) > +++ src/osgViewer/GraphicsWindowX11.cpp (working copy) > @@ -919,6 +919,14 @@ > > case UnmapNotify : > osg::notify(osg::INFO)<<"UnmapNotify event > recieved"<<std::endl; > +#define RELEASE(a) getEventQueue()->keyRelease(osgGA::GUIEventAdapter::a, > eventTime) > + RELEASE(KEY_Shift_L), RELEASE(KEY_Shift_R); > + RELEASE(KEY_Control_L), RELEASE(KEY_Control_R); > + RELEASE(KEY_Meta_L), RELEASE(KEY_Meta_R); > + RELEASE(KEY_Alt_L), RELEASE(KEY_Alt_R); > + RELEASE(KEY_Super_L), RELEASE(KEY_Super_R); > + RELEASE(KEY_Hyper_L), RELEASE(KEY_Hyper_R); > +#undef RELEASE > break; > > case ReparentNotify: > > > ------------------------------ > > Message: 8 > Date: Wed, 6 Feb 2008 07:45:03 +1100 > From: "Nicholas Yue" <[EMAIL PROTECTED]> > Subject: Re: [osg-users] Efficient mesh data structures > To: "OpenSceneGraph Users" <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > On 05/02/2008, Morn? Pistorius <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I am looking for an efficient general mesh data structure and I > > thought I would bounce this one off the list. I came across OpenMesh > > (http://www.openmesh.org), which looks like it might be useful and > > could conceivably be integrated into an osgNodeKit. Has anyone here > > ever used it or could you recommend something else? > > > > As always, feedback is greatly appreciated! > > OpenMesh uses something call acgmake to build it. > > I have not had success in building it on Ubuntu. > > I am also looking for an efficient general mesh data structure > (hopefully templatize) > > Regards > -- > Nicholas Yue BSc (Hons) MACM > Graphics - RenderMan, RIB, Visualization, OpenGL > Custom Dev - C++ porting, OSX, Linux, Windows > http://www.proceduralinsight.com/about.html > > > ------------------------------ > > Message: 9 > Date: Tue, 05 Feb 2008 15:56:50 -0500 > From: Jean-S?bastien Guay <[EMAIL PROTECTED]> > Subject: Re: [osg-users] X11 keyboard bug (+ ugly fix) > To: OpenSceneGraph Users <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hello Franz, > > > To reproduce start the osgkeyboard example, press a few modifier > > keys (let's say Ctrl and Shift) and while keeping them pressed > > switch the desktop (e.g. on KDE) or minimize the window. Release > > the modifier keys. Now, when you switch back or open the minimized > > window, you'll see Ctrl and Shift still activated. And it's not > > only an visual problem. These keys are actually not released, and > > pressing 'a' will now really be seen as 'A'. That's very annoying > > in FlightGear. One has to press and release the respective modifier > > keys to get the missing release event. > > > > For reference, the same thing happens on Windows, and is often an issue > when debugging (if an action which is triggered by a modified keypress > activates a breakpoint, when you go back to the app the modifier is > still active and you have to press/release the key to get rid of it). > > As you said, it's really a window manager issue, and I've seen it in > other apps to. Not sure if OSG should try to work around it or not... > > J-S > > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > > > > ------------------------------ > > Message: 10 > Date: Tue, 5 Feb 2008 22:34:36 +0100 > From: Melchior FRANZ <[EMAIL PROTECTED]> > Subject: Re: [osg-users] X11 keyboard bug (+ ugly fix) > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > * Jean-S?bastien Guay -- Tuesday 05 February 2008: > > For reference, the same thing happens on Windows, > > Oh, didn't know that. > > > > > Not sure if OSG should try to work around it or not... > > Well, but it's annoying as hell, and my computer is not > supposed to annoy me. :-) > > And again: I never saw that in FlightGear when linked with > glut or sdl. (We still support all three, but will probably > go for osgviewer only.) > > m. > > > ------------------------------ > > Message: 11 > Date: Tue, 5 Feb 2008 14:04:52 -0800 > From: "Bradford, Chase" <[EMAIL PROTECTED]> > Subject: Re: [osg-users] X11 keyboard bug (+ ugly fix) > To: "OpenSceneGraph Users" <[email protected]> > Message-ID: > < > [EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > I ran into this problem very recently too on a Win32 system. The solution > I had to adopt was checking the modifier keys using the Win32 API's > GetKeyState function when processing a key that's affected by modifiers. > > I agree that it probably shouldn't be OSG's responsibility to account for > this problem. However, part of the problem stems from OSG attempting to > support, given a false sense of security. > > On the Windows side, we could explicitly poll a modifier key's state > before sending an event off to the EventQueue, without relying on > KEYUP/KEYDOWN synchronization. However, doing something like that would > cause inconsistencies between the platforms, and I don't know if the X11 has > a counterpart. > > Chase > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:osg-users- > > [EMAIL PROTECTED] On Behalf Of Melchior FRANZ > > Sent: Tuesday, February 05, 2008 1:35 PM > > To: [email protected] > > Subject: Re: [osg-users] X11 keyboard bug (+ ugly fix) > > > > * Jean-S?bastien Guay -- Tuesday 05 February 2008: > > > For reference, the same thing happens on Windows, > > > > Oh, didn't know that. > > > > > > > > > Not sure if OSG should try to work around it or not... > > > > Well, but it's annoying as hell, and my computer is not > > supposed to annoy me. :-) > > > > And again: I never saw that in FlightGear when linked with > > glut or sdl. (We still support all three, but will probably > > go for osgviewer only.) > > > > m. > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > ------------------------------ > > Message: 12 > Date: Tue, 5 Feb 2008 23:14:56 +0100 > From: Melchior FRANZ <[EMAIL PROTECTED]> > Subject: Re: [osg-users] X11 keyboard bug (+ ugly fix) > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii" > > * Bradford, Chase -- Tuesday 05 February 2008: > > On the Windows side, we could explicitly poll a modifier key's state > > before sending an event off to the EventQueue, without relying on > > KEYUP/KEYDOWN synchronization. However, doing something like that > > would cause inconsistencies between the platforms, and I don't know > > if the X11 has a counterpart. > > X11 does, of course, tell you which modifiers are active. But only > which modifier level (shift), not which modifier key (shift_l, shift_r), > so you'd still release keys that were never pressed before. (I'm not > sure if that's really a problem, but it might be.) One would have to > keep track of every single key to avoid it. :-/ > > For me *not* fixing that in OSG is not an option. But then again, > it *is* fixed for me in OSG already, so ... :-) > > m. > > > ------------------------------ > > Message: 13 > Date: Tue, 05 Feb 2008 17:15:13 -0600 > From: "Michael W. Hall" <[EMAIL PROTECTED]> > Subject: Re: [osg-users] using VPB to make an earth model > To: OpenSceneGraph Users <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain > > Hey, > > Did you find out anything? I have been looking for data to create an > earth model myself. I did a search for the tiff files you listed and > found them. I tried the following command: > > osgdem --bluemarble-west -t ../land_shallow_topo_west.tiff > --bluemarble-east -t ../land_shallow_topo_east.tiff--geocentric -l 12 -o > earth.ive > > Here is the output I received: > > --bluemarble-west GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS > 84",6378137,298.257223563 > ,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree", > 0.0174532925199433,AUTHORITY["EPSG","9108"]],AXIS["Lat",NORTH],AXIS["Long",EAST],AUTHORITY["EPSG","4326"]] > matrix={ > 180 0 0 0 > 0 180 0 0 > 0 0 1 0 > -180 -90 0 1 > } > > -t ../land_shallow_topo_west.tiff > --bluemarble-eastGEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS > 84",6378137,298.257223563 > ,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree", > 0.0174532925199433,AUTHORITY["EPSG","9108"]],AXIS["Lat",NORTH],AXIS["Long",EAST],AUTHORITY["EPSG","4326"]] > matrix={ > 180 0 0 0 > 0 180 0 0 > 0 0 1 0 > 0 -90 0 1 > } > > -t ../land_shallow_topo_east.tiff--geocentric > -o earth.ive > Realized window > started DataSet::createDestination(12) > completed DataSet::createDestination(12) > Error: no scene graph to output, no file written. > > I have the 500m blue marble images in the same directory as the data > files. I am learning. Just wanted to show what I tried and see if you > had figured anything out. > > Thanks, > Michael > > > > On Sat, 2008-02-02 at 09:58 -0600, Philip Hahn wrote: > > Group, > > > > I realize Virtual Planet Builder is in a state of flux. Is it possible > > to use either 0.9.1 or 0.9.4 to create an earth model, similar to the > > older version of osgdem? > > > > I tried last night (tweaking the input syntax which apparently > > changed), but basically got garbage out. Could someone give me a valid > > syntax for such an operation using the land_shallow_topo_west and > > land_shallow_topo_east .tiff's (or recommending a different overlay > > image with a known working syntax)? > > > > Eventually I'd like a model that has actual terrain heights but for > > now a spheroid with imagery overlay is sufficient! > > > > Thanks, > > > > Philip > > _______________________________________________ > > 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 > > > End of osg-users Digest, Vol 8, Issue 8 > *************************************** >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

