Re: [osg-users] Transparent but occluding "phantom objects" for AR application
Hi Simon, On Thu, Jul 8, 2010 at 11:09 PM, Simon Julier wrote: > > I'm developing a video-see-through AR application which will show the user > the contents of holes in the ground. To get the correct depth cues, the user > should be able to see the contents of the hole only when they look down into > it. From what I can tell, the right way to achieve this is to create some > "phantom objects" which are transparent but occlude objects placed behind > them. These phantom objects should be realised by writing them into the > depth buffer only. > > Is that correct? If so, could anybody point me towards a suitable > reference? > You can use the osg::ColorMask state attribute to prevent the object from writing to the color buffer. I've used this technique in my video-see-through apps. Cheers, Farshid ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Transparent but occluding "phantom objects" for AR application
Dear All, I'm sure this has been answered before, and I'm merely missing the magic combination of keywords in my various searches. I'm developing a video-see-through AR application which will show the user the contents of holes in the ground. To get the correct depth cues, the user should be able to see the contents of the hole only when they look down into it. From what I can tell, the right way to achieve this is to create some "phantom objects" which are transparent but occlude objects placed behind them. These phantom objects should be realised by writing them into the depth buffer only. Is that correct? If so, could anybody point me towards a suitable reference? Many thanks! Cheers, Simon ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Dem file with OSG
Hi, I want to laod DEM file as terrain to my program. How can I do it? Generally does OSG support DEM files? ... Thank you! Cheers, Elmar -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29855#29855 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] LOD Culling issue
Hi all, Still having issues with PagedLOD... >_< My scene is composed by PagedLOD only at start-up. All is good, the files are loaded and the geometry are displayed. But when, before launching the render loop, I add a little geometry (not a pagedLOD, just a simple little sphere) in my scene, PagedLOD do not Load. The database pager request List is empty. I need to move the camera very close to a LOD (knowing it position without seeing it) to launch the PagedLOD loading. It seems that the PagedLOD nodes are not visited byt the CullVisitor, so they can't request the load of their children. Any idea would be very appreciated because after 8h on this issue, I still have no idea of the problem... Thanks for your help. Regards, Vincent. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] DatabasePager Callback
Hi Guy, You can use a ReadFileCallback to intercept calls to when files are read and do whatever you need to do to the loaded node. See the osgcallback example for example usage. Jason On Thu, Jul 8, 2010 at 7:23 PM, Guy Volckaert wrote: > Hi, > > Is there a mechanism that would allow me to get notified when a subgraph gets > loaded by the DatabasePager. I essentially need to process the subgraph > before it gets added to scene. > > I guess this would be valid for TXPNode and PagedLOD nodes as well? > > Thanks, > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=29851#29851 > > > > > > ___ > 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] TXP Extents/BoundingBox
Hi, The ComputeBoundVisitor does not seem to support TXPNode nodes. Is there another way of getting the boundingbox (not the boundingsphere) of a TXP database? I know that the TXPNode contains the extents of the terrain (which is what I want) but the interface is not exposed to the osg lib - only the txp plugin. So the question is how I get access to the interface without linking in the plugin lib? Regards, -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29852#29852 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] DatabasePager Callback
Hi, Is there a mechanism that would allow me to get notified when a subgraph gets loaded by the DatabasePager. I essentially need to process the subgraph before it gets added to scene. I guess this would be valid for TXPNode and PagedLOD nodes as well? Thanks, -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29851#29851 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 3D Scene emulating a 2D environment
Skylark wrote: > Hi Theo, > > I think you'll have to read about the math involved, look at the values > in the debugger and work out what you're supposed to get on paper... I > wanted to put you on the right track to be able to understand what's > going on, not give you a recipe that you blindly follow... > > One note, putting something exactly at the near plane will likely get it > clipped, move it a bit forward and see... > > J-S > -- > __ > Jean-Sebastien Guay > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > ___ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- > Post generated by Mail2Forum Alright, Jean. Thank you a lot for your help. You've been of great help! Cheers, Theo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29850#29850 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] floating point exeption in VPB...
All, I'm using VPB 0.9.10 along with OSG 2.8.2 on a system that is using 64-bit Linux (Fadora core 10) i386. Both packages were built from source. No matter what database I try to build, I get a floating point exception when running osgdem. I know the DTED and imagery are good since I've built VPB databases with this content on a windows 32-bit system. Here is a sample command that fails: osgdem -TERRAIN -geocentric -PagedLOD -whole-globe -t wholeearthtexture.tif -l 10 -o output.ive My question is, has anyone else seen problems with VPB in a similar environment. Are there some 64-bit issues going on here? I'm at a loss as to why I'm getting this floating point exception. If I use any other content (i.e. dted or imagery), I get the same results. Any help or input would be most appreciated. -Shayne smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Texture problem on 64-bit PC
I have used ATI firestream 9170 and Radeon 3870 with windows 7 64 bit. I didn't get any sort of problem like this. There might be an issue with Linux ATI driver. Lately people have been having problems with ATI cards (5000 series) - Prakhar -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Werner Stoop Sent: Thursday, July 08, 2010 8:59 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Texture problem on 64-bit PC Hi, I recently received a new 64-bit machine at work. When I now use osgviewer to the textures on some of our models seem smeared where they displayed correctly on my older 32-bit PC. Other models do display correctly, so I don't think it's a hardware issue. Our models are in the form of IVE files, and some of them are generated by (an older version of) Virtual Planet Builder. For what it's worth, my PC runs Fedora 12 and has an ATI Radeon HD 3450 graphics card. I also had Fedora 12 on my previous PC, but it had a NVidia card. I would post an image, but I'm a newbie, so I'm not allowed to post URLs Has anyone had similar problems? what causes it? How can I resolve it or fix the models? Thank you! Werner[/i] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29837#29837 ___ 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] ABSOLUTE_RF problem
Hello, i'm trying to understand how ABSOLUTE_RF works, and i've made a small example. The problem is that it should works but it actually doesn't... In the following lines : osg::Group * group = new osg::Group(); { //Relative osg::PositionAttitudeTransform* pat = new osg::PositionAttitudeTransform(); pat->setPosition(osg::Vec3(-10,0,0)); pat->addChild(osgDB::readNodeFile("cow.osg")); pat->setReferenceFrame(osg::Transform::RELATIVE_RF); group->addChild(pat); } { //Absolute osg::PositionAttitudeTransform* pat = new osg::PositionAttitudeTransform(); pat->addChild(osgDB::readNodeFile("cow.osg")); pat->setReferenceFrame(osg::Transform::ABSOLUTE_RF); //pat->setReferenceFrame(osg::Transform::RELATIVE_RF); pat->setPosition(osg::Vec3(10,0,0)); group->addChild(pat); } group->setEventCallback(new CEventCallback()); viewer.setSceneData(group); viewer.getCamera()->setCullingMode(osg::CullSettings::CullingModeValues::NO_CULLING); if i change pat->setReferenceFrame(osg::Transform::ABSOLUTE_RF); to pat->setReferenceFrame(osg::Transform::RELATIVE_RF); the two cows are here, but when the second pat is absolute, the second cow won't show... however i can actually pick it if i click on the area where it should be. I don't understand why it's not working... can someone helps me ? You can find the source file attached to this mail. i've made this test program because i have another problem where i try to pick an object which is in a pat with ABSOLUTE_RF, and can't make it work (i can pick all others objects but not the ones with absolute_rf...) Thanks --- Guillaume Tazé Main.cpp Description: Binary data ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Can't pick HUD geometry under perspective projection
Now that my problem is resolved, I thought about why I was having so much trouble finding the resolution. It occured to me early on that my near/far settings might be involved early on and appearently my attempt to override what I was setting was ineffective. The problem was ultimately something along the lines of what Frank suggested, only simpler. The HUD geometries are rendered with depth OFF, so they're visible despite the near/far settings of the projection matrix. However, when picking the near/far settings would cause the HUD geometries to be culled and would never register a pick hit. There seems to be no reason not to keep near/far wide open (-1., 1.) in the HUD camera projection. -Don ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [vpb] .tif and .tfw
Hi Lucie, Did you attempt to reproject the tif file using gdalwarp? Try that and then use osgdem with the new reprojected file to see if that works. I didn't receive your attachment. Please resend to shayne.tuel...@comcast.net and I'll take a look at it. If you can, send me the actual tif and dt1 files... -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of lucie lemonnier Sent: Thursday, July 08, 2010 9:45 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] [vpb] .tif and .tfw Hi, I also tried with dem and orthoimage downloaded at: http://www.geobase.ca/geobase/en/index.html I get the same problem, the projection doesn't work. With "gdal_info data.dem", I get : Driver: USGSDEM/USGS Optional ASCII DEM (and CDED) Files: 013c07_0100_deme.dem Size is 1201, 1201 Coordinate System is: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4269"]] Origin = (-60.75010416667,52.50010416667) Pixel Size = (0.0002083,-0.0002083) Metadata: AREA_OR_POINT=Point Corner Coordinates: Upper Left ( -60.7501042, 52.5001042) ( 60d45'0.38"W, 52d30'0.38"N) Lower Left ( -60.7501042, 52.2498958) ( 60d45'0.38"W, 52d14'59.63"N) Upper Right ( -60.4998958, 52.5001042) ( 60d29'59.63"W, 52d30'0.38"N) Lower Right ( -60.4998958, 52.2498958) ( 60d29'59.63"W, 52d14'59.63"N) Center ( -60.625, 52.375) ( 60d37'30.00"W, 52d22'30.00"N) Band 1 Block=1201x1201 Type=Int16, ColorInterp=Undefined NoData Value=-32767 Unit Type: m and with "gdal_info data.tif", I get : Driver: GTiff/GeoTIFF Files: S4_06032_5215_20061018_m20_1_utm20.tif Size is 3826, 3622 Coordinate System is: PROJCS["unnamed", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010002, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-63], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",50], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","26920"]] Origin = (630040.000,5828260.000) Pixel Size = (20.000,-20.000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 630040.000, 5828260.000) ( 61d 4'49.40"W, 52d35'19.68"N) Lower Left ( 630040.000, 5755820.000) ( 61d 6'29.89"W, 51d56'16.38"N) Upper Right ( 706560.000, 5828260.000) ( 59d57'8.07"W, 52d33'54.44"N) Lower Right ( 706560.000, 5755820.000) ( 59d59'47.44"W, 51d54'53.11"N) Center ( 668300.000, 5792040.000) ( 60d32'3.63"W, 52d15'10.72"N) Band 1 Block=3826x2 Type=Byte, ColorInterp=Gray I don't understand why it doesn't work. I tried with --geocentric and without. I'm sending you what I obtain with "osgdem --geocentric -d data.dem -t data.tif -l 3 -o data.osg" in attachment. Thank you! Cheers, lucie -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29838#29838 Attachments: http://forum.openscenegraph.org//files/terrain_328.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [vpb] .tif and .tfw
Hi Lucie, maybe you could try to use the "OSG_NOTIFY_LEVEL=INFO" flag to know a little bit more about your problem... What are the version of osg, vpb and gdal you are using ? Also you could maybe try to use some known to work data like the Boston sample of the OsgGis project ? http://osggis.org/downloads/boston-sample.zip Cheers, Pierre. Le jeudi 08 juillet 2010 à 15:44 +, lucie lemonnier a écrit : > Hi, > > I also tried with dem and orthoimage downloaded at: > http://www.geobase.ca/geobase/en/index.html > I get the same problem, the projection doesn't work. > > With "gdal_info data.dem", I get : > Driver: USGSDEM/USGS Optional ASCII DEM (and CDED) > Files: 013c07_0100_deme.dem > Size is 1201, 1201 > Coordinate System is: > GEOGCS["NAD83", > DATUM["North_American_Datum_1983", > SPHEROID["GRS 1980",6378137,298.257222101, > AUTHORITY["EPSG","7019"]], > TOWGS84[0,0,0,0,0,0,0], > AUTHORITY["EPSG","6269"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.0174532925199433, > AUTHORITY["EPSG","9108"]], > AXIS["Lat",NORTH], > AXIS["Long",EAST], > AUTHORITY["EPSG","4269"]] > Origin = (-60.75010416667,52.50010416667) > Pixel Size = (0.0002083,-0.0002083) > Metadata: > AREA_OR_POINT=Point > Corner Coordinates: > Upper Left ( -60.7501042, 52.5001042) ( 60d45'0.38"W, 52d30'0.38"N) > Lower Left ( -60.7501042, 52.2498958) ( 60d45'0.38"W, 52d14'59.63"N) > Upper Right ( -60.4998958, 52.5001042) ( 60d29'59.63"W, 52d30'0.38"N) > Lower Right ( -60.4998958, 52.2498958) ( 60d29'59.63"W, 52d14'59.63"N) > Center ( -60.625, 52.375) ( 60d37'30.00"W, 52d22'30.00"N) > Band 1 Block=1201x1201 Type=Int16, ColorInterp=Undefined > NoData Value=-32767 > Unit Type: m > > and with "gdal_info data.tif", I get : > > Driver: GTiff/GeoTIFF > Files: S4_06032_5215_20061018_m20_1_utm20.tif > Size is 3826, 3622 > Coordinate System is: > PROJCS["unnamed", > GEOGCS["NAD83", > DATUM["North_American_Datum_1983", > SPHEROID["GRS 1980",6378137,298.2572221010002, > AUTHORITY["EPSG","7019"]], > AUTHORITY["EPSG","6269"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4269"]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",-63], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",50], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > AUTHORITY["EPSG","26920"]] > Origin = (630040.000,5828260.000) > Pixel Size = (20.000,-20.000) > Metadata: > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left ( 630040.000, 5828260.000) ( 61d 4'49.40"W, 52d35'19.68"N) > Lower Left ( 630040.000, 5755820.000) ( 61d 6'29.89"W, 51d56'16.38"N) > Upper Right ( 706560.000, 5828260.000) ( 59d57'8.07"W, 52d33'54.44"N) > Lower Right ( 706560.000, 5755820.000) ( 59d59'47.44"W, 51d54'53.11"N) > Center ( 668300.000, 5792040.000) ( 60d32'3.63"W, 52d15'10.72"N) > Band 1 Block=3826x2 Type=Byte, ColorInterp=Gray > > I don't understand why it doesn't work. > I tried with --geocentric and without. > I'm sending you what I obtain with "osgdem --geocentric -d data.dem -t > data.tif -l 3 -o data.osg" in attachment. > > > Thank you! > > Cheers, > lucie > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=29838#29838 > > > > > Attachments: > http://forum.openscenegraph.org//files/terrain_328.jpg > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Pierre BOURDIN I.M.E.R.I.R. Av. Pascot BP 90443 66004 PERPIGNAN tél: 04 68 56 84 95 fax: 04 68 55 03 86 email: bour...@imerir.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows 7 Aero Color Scheme issue
Hi, Yeah its certainly Aero... I two have the same issue, disabling Aero sorts its out, but mine is on a single screen. Alt-Tab will make it work as well. Have a look here http://www.opengl.org/pipeline/article/vol003_7/ Are we using GDI? I don't understand the viewer code, I might have another attempt later... http://bugreports.qt.nokia.com/browse/QTBUG-6988 might of interest. This what I posted a while back: I did mention this a while back about osgShadow. All my are examples do this now after installing a new Nvidia GTX 480 card(from a gtx 9800), with the latest drivers from Nvidia. My guess you are running Windows Vista/7, try alt tab? For a permanent fix disable the pesky Aero desktop! I tried looking for a fix last night and its something to do with swapbuffers either being called or not, I cannot remember it was late and the viewer code was baffling me! Ok it might be Never found a fix, i have looked into the viewer code, but never got to the bottom of it. Martin. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason Beverage Sent: 08 July 2010 14:47 To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Windows 7 Aero Color Scheme issue I have the same issue on Vista, but only on one of my monitors and only if I run full screen. Starting osgviewer with a --window argument works fine. My 1920x1080 monitor causes the issue in full screen, I have another 1680x1050 monitor that works fine in full screen. Jason On Thu, Jul 8, 2010 at 9:26 AM, Guy Volckaert wrote: > As maximuxy, I also don't have this problem with my own application (so far). > > Cheers, > Guy > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=29827#29827 > > > > > > ___ > 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] Texture problem on 64-bit PC
I would have to disagree and say that it is likely to be a hardware\driver issue I have been running OSG on 64 with Nvidia for 3 years and had no issues There have bee quite a few posts recently about continued issues with ATI catalyst drivers and their broken Opengl Support, the suggestions from the post is to use catalyst 10.4 drivers __ Gordon Tomlinson gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com www.vis-sim.com www.gordontomlinson.com www.PhotographyByGordon.com __ -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Werner Stoop Sent: Thursday, July 08, 2010 4:29 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Texture problem on 64-bit PC Hi, I recently received a new 64-bit machine at work. When I now use osgviewer to the textures on some of our models seem smeared where they displayed correctly on my older 32-bit PC. Other models do display correctly, so I don't think it's a hardware issue. Our models are in the form of IVE files, and some of them are generated by (an older version of) Virtual Planet Builder. For what it's worth, my PC runs Fedora 12 and has an ATI Radeon HD 3450 graphics card. I also had Fedora 12 on my previous PC, but it had a NVidia card. I would post an image, but I'm a newbie, so I'm not allowed to post URLs Has anyone had similar problems? what causes it? How can I resolve it or fix the models? Thank you! Werner[/i] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29837#29837 ___ 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] [vpb] .tif and .tfw
Hi, I also tried with dem and orthoimage downloaded at: http://www.geobase.ca/geobase/en/index.html I get the same problem, the projection doesn't work. With "gdal_info data.dem", I get : Driver: USGSDEM/USGS Optional ASCII DEM (and CDED) Files: 013c07_0100_deme.dem Size is 1201, 1201 Coordinate System is: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4269"]] Origin = (-60.75010416667,52.50010416667) Pixel Size = (0.0002083,-0.0002083) Metadata: AREA_OR_POINT=Point Corner Coordinates: Upper Left ( -60.7501042, 52.5001042) ( 60d45'0.38"W, 52d30'0.38"N) Lower Left ( -60.7501042, 52.2498958) ( 60d45'0.38"W, 52d14'59.63"N) Upper Right ( -60.4998958, 52.5001042) ( 60d29'59.63"W, 52d30'0.38"N) Lower Right ( -60.4998958, 52.2498958) ( 60d29'59.63"W, 52d14'59.63"N) Center ( -60.625, 52.375) ( 60d37'30.00"W, 52d22'30.00"N) Band 1 Block=1201x1201 Type=Int16, ColorInterp=Undefined NoData Value=-32767 Unit Type: m and with "gdal_info data.tif", I get : Driver: GTiff/GeoTIFF Files: S4_06032_5215_20061018_m20_1_utm20.tif Size is 3826, 3622 Coordinate System is: PROJCS["unnamed", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010002, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-63], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",50], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","26920"]] Origin = (630040.000,5828260.000) Pixel Size = (20.000,-20.000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 630040.000, 5828260.000) ( 61d 4'49.40"W, 52d35'19.68"N) Lower Left ( 630040.000, 5755820.000) ( 61d 6'29.89"W, 51d56'16.38"N) Upper Right ( 706560.000, 5828260.000) ( 59d57'8.07"W, 52d33'54.44"N) Lower Right ( 706560.000, 5755820.000) ( 59d59'47.44"W, 51d54'53.11"N) Center ( 668300.000, 5792040.000) ( 60d32'3.63"W, 52d15'10.72"N) Band 1 Block=3826x2 Type=Byte, ColorInterp=Gray I don't understand why it doesn't work. I tried with --geocentric and without. I'm sending you what I obtain with "osgdem --geocentric -d data.dem -t data.tif -l 3 -o data.osg" in attachment. Thank you! Cheers, lucie -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29838#29838 Attachments: http://forum.openscenegraph.org//files/terrain_328.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Texture problem on 64-bit PC
Hi, I recently received a new 64-bit machine at work. When I now use osgviewer to the textures on some of our models seem smeared where they displayed correctly on my older 32-bit PC. Other models do display correctly, so I don't think it's a hardware issue. Our models are in the form of IVE files, and some of them are generated by (an older version of) Virtual Planet Builder. For what it's worth, my PC runs Fedora 12 and has an ATI Radeon HD 3450 graphics card. I also had Fedora 12 on my previous PC, but it had a NVidia card. I would post an image, but I'm a newbie, so I'm not allowed to post URLs Has anyone had similar problems? what causes it? How can I resolve it or fix the models? Thank you! Werner[/i] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29837#29837 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows 7 Aero Color Scheme issue
Jean-Sébastien, I was about the post the same observation you mentioned above. When I launch in full screen mode, I get a black background that does not refresh (meaning that when I move a window on top of it, it leaves traces). This seems to only happen when I start the osgViewer in full screen mode. When I use the --window command line option, then the problem does not occur. What I find strange is that if I start in fullscreen mode and then I toggle fullscreen mode off (by pressing 'f' key), the problem does not go away. My resolution is 1920x1200. I will try other resolutions and see if its an aspect ratio issue. Regards, -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29836#29836 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osganimationsolid example
Hi Gianni, is osgAnimation library quite new and growing fast? Yes. Anyway, I really didn't get the pro and cons of using osgAnimation library wrt the callback method explained for instance in osganimationnode example. Is the callback method more general? Does osgAnimate basically use callbacks inside? Are there some features only available in osgAnimation? Callbacks are low-level, they allow you to do whatever you want but you have to manipulate your objects directly. osgAnimation is generally implemented with callbacks, but gives a higher-level interface in particular for character animation. Animating a character with its bones and skinning is relatively complex, and storing these animations so they can be activated on demand, or blending between different animations, etc. are also not so simple. osgAnimation allows you to do this in a simpler way than manipulating the transforms yourself. What if I need to save an animation in mpg format? Is is possible in both cases or no one? That's a different topic. osgAnimation and callbacks let you animate objects in your 3D scene at runtime, whereas saving an animation means capturing what's going on and recording that in a video file. See the osgscreencapture example and osgViewer::ScreenCaptureHandler, which will show you how to save the rendered frames of your application, and then you can use a tool like ffmpeg or others to put all these separate image files into a video file (mpeg, avi, etc.). Or you can even override a class in osgViewer::ScreenCaptureHandler (the CaptureOperation class) and give the frames directly to ffmpeg to encode the video on the fly without saving individual frames to disk first. One more thing, since OSG documentation is quite poor, it would be nice to have the examples updated (or enhanced) according to the new OSG development. Generally they are. But older examples that still demonstrate useful things will stay there... The osganimationnode example is not obsolete, it still demonstrates useful techniques, but when doing more complex things there are higher-level libraries (in this instance osgAnimation) that can help you with the details. Hope this helps, 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] 3D Scene emulating a 2D environment
Hi Theo, Sorry to bother you so much with this J-S but I just can't figure out what am I doing wrong! I'm sure it's something really simple! I think you'll have to read about the math involved, look at the values in the debugger and work out what you're supposed to get on paper... I wanted to put you on the right track to be able to understand what's going on, not give you a recipe that you blindly follow... One note, putting something exactly at the near plane will likely get it clipped, move it a bit forward and see... 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] osganimationsolid example
Thanks Cedric, honestly I'm using OSG 2.8.2 and I can see osgAnimation library has changed a lot. I'm a newby in OSG but I'm just curious: is osgAnimation library quite new and growing fast? Anyway, I really didn't get the pro and cons of using osgAnimation library wrt the callback method explained for instance in osganimationnode example. Is the callback method more general? Does osgAnimate basically use callbacks inside? Are there some features only available in osgAnimation? What if I need to save an animation in mpg format? Is is possible in both cases or no one? One more thing, since OSG documentation is quite poor, it would be nice to have the examples updated (or enhanced) according to the new OSG development. Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29830#29830 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 3D Scene emulating a 2D environment
Hi J-S, Here's what I'm doing: Code: unsigned int width, height; osg::GraphicsContext::WindowingSystemInterface* wsi = osg::GraphicsContext::getWindowingSystemInterface(); wsi->getScreenResolution(osg::GraphicsContext::ScreenIdentifier(0), width, height); viewer->getCamera()->setProjectionMatrixAsPerspective(45., width/height, 1.,2.); viewer->getCamera()->setViewMatrixAsLookAt(osg::Vec3(0.,0.,-5.), osg::Vec3(0.,0.,0.), osg::Vec3(0.,1.,0.)); viewer->getCamera()->setViewport(0,0,width,height); viewer->getCamera()->setClearColor(osg::Vec4(0.f,0.f,0.f,1.f)); osg::Matrix MVPW( viewer_->getCamera()->getViewMatrix() * viewer_->getCamera()->getProjectionMatrix() * viewer_->getCamera()->getViewport()->computeWindowMatrix()); osg::Matrixd inverseMVPW = osg::Matrixd::inverse(MVPW); osg::Vec3 near_point = osg::Vec3(obj->getX(),(1-obj->getY()), 0.f) * inverseMVPW; pat_marker->setPosition(near_point); Where the obj->getX and getY is already normalized, the values range between 0 and 1. Anyway, when I try to draw objects on the four corners of the screen, I only get one on the middle bottom. Now, IF i multiply the normalized values by the size of the screen ("unnormalizing" them), AND set the near plane of the perspective matrix to at least 100, i can see all the markers on the screen, although they are really small and not exactly on the four corners. Sorry to bother you so much with this J-S but I just can't figure out what am I doing wrong! I'm sure it's something really simple! Thanks a lot... again! Cheers, Theo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29829#29829 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Windows 7 Aero Color Scheme issue
I have the same issue on Vista, but only on one of my monitors and only if I run full screen. Starting osgviewer with a --window argument works fine. My 1920x1080 monitor causes the issue in full screen, I have another 1680x1050 monitor that works fine in full screen. Jason On Thu, Jul 8, 2010 at 9:26 AM, Guy Volckaert wrote: > As maximuxy, I also don't have this problem with my own application (so far). > > Cheers, > Guy > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=29827#29827 > > > > > > ___ > 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] Windows 7 Aero Color Scheme issue
As maximuxy, I also don't have this problem with my own application (so far). Cheers, Guy -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29827#29827 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] BackGround is not at his place
subject close i found just use post_renderer in main windows and pre_render and clear zbuffer and color buffer in background windows (http://www.hordes.fr?ref=litllechicken) -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29826#29826 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] 3D Scene emulating a 2D environment
Hi Theo, I just have a small little question: when you multiply your screen coordinates by the inverse matrix you are using the z values of 0.0 and 1.0 for the points on the near and far planes, right? Are you using these values because they were previously set on your projection matrix or for some other reason? It's because that matrix maps a cube going from (0,0,0) to (1,1,1) into world space. So in that cube, z=0 is the nearest z you can have, and z=1 is the furthest z you can have. Which reminds me, the x and y coordinates I put in the calculations I sent you must be normalized coordinates, i.e. float normalized_x = (float)screen_x / (float)viewport_width; float normalized_y = (float)screen_y / (float)viewport_height; So say you have screen_x = 320, screen_y = 240 and your viewport is 640x480, normalized_x = 0.5 and normalized_y = 0.5. Those are what you use in the calculations I sent you before. Hope this helps, 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] osganimationsolid example
Hi, The channel are linked to target with name. To check the name that works you can read the files: src/osgAnimation/StackedRotateAxisElement.cpp src/osgAnimation/StackedTranslateElement.cpp src/osgAnimation/StackedScaleElement.cpp src/osgAnimation/StackedQuaternionElement.cpp src/osgAnimation/StackedMatrixElement.cpp The logic to understand the link operation for those elements are located in src/osgAnimation/StackedMatrixElement.cpp: bool UpdateMatrixTransform::link(osgAnimation::Channel* channel) { const std::string& channelName = channel->getName(); // check if we can link a StackedTransformElement to the current Channel for (StackedTransform::iterator it = _transforms.begin(); it != _transforms.end(); ++it) { StackedTransformElement* element = it->get(); if (element && !element->getName().empty() && channelName == element->getName()) { Target* target = element->getOrCreateTarget(); if (target && channel->setTarget(target)) return true; } } OSG_INFO << "UpdateMatrixTransform::link Channel " << channel->getName() << " does not contain a symbolic name that can be linked to a StackedTransformElement." << std::endl; return false; } For the Material animation you will have to look to src/osgAnimation/UpdateMaterial.cpp The euler you are talking are not in the trunk anymore, it means that osganimationsolid, has not been updated and should use something like rotateaxis. I hope this little explanation will help you. Cheers, Cedric -- Provide OpenGL, WebGL and OpenSceneGraph services +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net On Thu, 2010-07-08 at 11:53 +0200, Raymond de Vries wrote: > Hi Gianni, > > As far as I can see the euler animation is not working at all: no > rotation. The euler animation is not 'routed', so to say. There are no > 'pre-defined' words or so, the words have to match for correct routing > (like the 'position'). > > regards > Raymond > > > > On 7/7/2010 6:31 PM, Gianni Ambrosio wrote: > > Hi All, > > I tried to look at the osganimationsolid example but I'm not sure to > > understand it correctly. Is seems to me that the way a channel is conected > > to an animation is string diven. > > > > Example (from osganimationsolid): > > > > osgAnimation::Vec3LinearChannel* channelAnimation2 = new > > osgAnimation::Vec3LinearChannel; > > channelAnimation2->setTargetName("AnimatedCallback"); > > channelAnimation2->setName("euler"); > > > > channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(0, > > osg::Vec3(0,0,0))); > > > > channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(1.5, > > osg::Vec3(2*osg::PI,0,0))); > > osgAnimation::Animation* anim2 = new osgAnimation::Animation; > > anim2->addChannel(channelAnimation2); > > anim2->setPlaymode(osgAnimation::Animation::LOOP); > > > > So the name "euler" is the only way I see that states the channel values > > are related to a rotation. Is it correct? If so, where can I find the list > > of all strings available? > > > > Regards > > Gianni > > > > -- > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=29799#29799 > > > > > > > > > > > > ___ > > 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 > signature.asc Description: This is a digitally signed message part ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osganimationsolid example
Hi Gianni, As far as I can see the euler animation is not working at all: no rotation. The euler animation is not 'routed', so to say. There are no 'pre-defined' words or so, the words have to match for correct routing (like the 'position'). regards Raymond On 7/7/2010 6:31 PM, Gianni Ambrosio wrote: Hi All, I tried to look at the osganimationsolid example but I'm not sure to understand it correctly. Is seems to me that the way a channel is conected to an animation is string diven. Example (from osganimationsolid): osgAnimation::Vec3LinearChannel* channelAnimation2 = new osgAnimation::Vec3LinearChannel; channelAnimation2->setTargetName("AnimatedCallback"); channelAnimation2->setName("euler"); channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(0, osg::Vec3(0,0,0))); channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(1.5, osg::Vec3(2*osg::PI,0,0))); osgAnimation::Animation* anim2 = new osgAnimation::Animation; anim2->addChannel(channelAnimation2); anim2->setPlaymode(osgAnimation::Animation::LOOP); So the name "euler" is the only way I see that states the channel values are related to a rotation. Is it correct? If so, where can I find the list of all strings available? Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29799#29799 ___ 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] [vpb] .tif and .tfw
Hi, I tried everything you told me but the projection does not work. When I run "gdal_info data.tif", I get : Driver: GTiff/GeoTIFF Files: data.tif Size is 18470, 8809 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (5.694386514419802,43.459004007623271) Pixel Size = (0.56757675771,-0.56757675771) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 5.6943865, 43.4590040) ( 5d41'39.79"E, 43d27'32.41"N) Lower Left ( 5.6943865, 42.9590256) ( 5d41'39.79"E, 42d57'32.49"N) Upper Right ( 6.7427008, 43.4590040) ( 6d44'33.72"E, 43d27'32.41"N) Lower Right ( 6.7427008, 42.9590256) ( 6d44'33.72"E, 42d57'32.49"N) Center ( 6.2185437, 43.2090148) ( 6d13'6.76"E, 43d12'32.45"N) Band 1 Block=18470x1 Type=Byte, ColorInterp=Red Band 2 Block=18470x1 Type=Byte, ColorInterp=Green Band 3 Block=18470x1 Type=Byte, ColorInterp=Blue and when I run "gdal_info data.dt1", I get : Driver: DTED/DTED Elevation Raster Files: data.dt1 data.aux Size is 1201, 1201 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (4.9995834,44.0004166) Pixel Size = (0.0008333,-0.0008333) Metadata: DTED_VerticalAccuracy_UHL=0010 DTED_VerticalAccuracy_ACC=0010 DTED_SecurityCode_UHL=U DTED_SecurityCode_DSI=U DTED_UniqueRef_UHL= DTED_UniqueRef_DSI=000 DTED_DataEdition=01 DTED_MatchMergeVersion=A DTED_MaintenanceDate= DTED_MatchMergeDate= DTED_MaintenanceDescription=B124 DTED_Producer=FRDGACEL DTED_VerticalDatum=MSL DTED_HorizontalDatum=WGS84 DTED_DigitizingSystem=IGNAUTOMAT DTED_CompilationDate=8410 DTED_HorizontalAccuracy=0060 DTED_RelHorizontalAccuracy=NA DTED_RelVerticalAccuracy=NA AREA_OR_POINT=Point Corner Coordinates: Upper Left ( 4.9995833, 44.0004167) ( 4d59'58.50"E, 44d 0'1.50"N) Lower Left ( 4.9995833, 42.9995833) ( 4d59'58.50"E, 42d59'58.50"N) Upper Right ( 6.0004167, 44.0004167) ( 6d 0'1.50"E, 44d 0'1.50"N) Lower Right ( 6.0004167, 42.9995833) ( 6d 0'1.50"E, 42d59'58.50"N) Center ( 5.500, 43.500) ( 5d30'0.00"E, 43d30'0.00"N) Band 1 Block=1x1201 Type=Int16, ColorInterp=Undefined NoData Value=-32767 Unit Type: m Metadata: LAYER_TYPE=athematic Can you help me, please? Thank you! Cheers, lucie -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29817#29817 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] FBX Plugin: animation speed not as expected...
Ok, thanks Michael, I will double check that I'm really using the latest source code for both the FBX plugin and osgAnimation. Regards. Alessandro On Wed, Jul 7, 2010 at 6:54 PM, Michael Platings wrote: > Hi Alessandro, I can't reproduce the problem so I don't know why you're > seeing that, sorry. > > ___ > 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