Re: [osg-users] Selecting a mesh of 3d model (say 3ds model)
nebsar wrote: > Hi, > > I know how to select a point on a model. Is there anyway to select a > particular mesh on the 3d model? > > Thank you! > > Cheers, > Nebi Hi Nebi, If I'm not mistaken the layer API changed in 2.9 to be more generic, and you should simply use: Code: map->addLayer() As an aside, you will probably get better help for these kind of questions in the osgEarth forum. Good luck! Eran Cohen -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75375#75375 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Selecting a mesh of 3d model (say 3ds model)
ceranco wrote: > > nebsar wrote: > > Hi, > > > > I know how to select a point on a model. Is there anyway to select a > > particular mesh on the 3d model? > > > > Thank you! > > > > Cheers, > > Nebi > > > Hi Nebi, > If I'm not mistaken the layer API changed in 2.9 to be more generic, and you > should simply use: > > Code: > map->addLayer() > > > > As an aside, you will probably get better help for these kind of questions in > the osgEarth forum. > Good luck! > > Eran Cohen Excuse me, I accidentally replied to the wrong post. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75376#75376 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [3rdparty] class osgEarth::Map has no member named 'addImageLayer'
Rodrigo wrote: > Hi, > > I'm following the example from here > (http://docs.osgearth.org/en/latest/developer/maps.html#programmatic-map-creation). > This line, however: > > > Code: > map->addImageLayer( layer ); > > > > won't compile. g++ says: > > > > error: ‘class osgEarth::Map’ has no member named ‘addImageLayer’; did you > > mean ‘addLayer’? > > > > > I tried with addLayer, but then the program compiles but hangs on run, and > won't execute not even the first line, "cout << 1;". > > I'm using version 2.10. I noticed that the documentation > (https://updraft.github.io/osgearth-doc/html/classosgEarth_1_1Map.html) is > from version 2.1. Even the page where I took the example from is titled > "osgEarth 2.4 documentation". Is there an up to date documentation? What am I > doing wrong here? > > Thank you! > > Cheers, > Rodrigo Hi Rodrigo, If I'm not mistaken, the map API was changed in 2.9 to be more generic, so the different map->add*Type*Layer() were changed to map->addLayer(), so that's the reason for the first error. I'm not sure why the program hangs when you use the addLayer() method, but you may have better luck asking in the osgEarth forum. Good luck, Eran Cohen -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75377#75377 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [3rdparty] class osgEarth::Map has no member named 'addImageLayer'
Hi, On Thu, Jan 3, 2019 at 10:21 AM Eran Cohen wrote: > > > Rodrigo wrote: > > Hi, > > > > I'm following the example from here > > (http://docs.osgearth.org/en/latest/developer/maps.html#programmatic-map-creation). > > This line, however: > > > > > > Code: > > map->addImageLayer( layer ); > > > > > > > > won't compile. g++ says: > > > > > > > error: ‘class osgEarth::Map’ has no member named ‘addImageLayer’; did you > > > mean ‘addLayer’? > > > > > > > > > I tried with addLayer, but then the program compiles but hangs on run, and > > won't execute not even the first line, "cout << 1;". > > > > I'm using version 2.10. I noticed that the documentation > > (https://updraft.github.io/osgearth-doc/html/classosgEarth_1_1Map.html) is > > from version 2.1. Even the page where I took the example from is titled > > "osgEarth 2.4 documentation". Is there an up to date documentation? What am > > I doing wrong here? > > > > Thank you! > > > > Cheers, > > Rodrigo > > > Hi Rodrigo, > > If I'm not mistaken, the map API was changed in 2.9 to be more generic, > so the different map->add*Type*Layer() were changed to map->addLayer(), so > that's the reason for the first error. You could also grep for addLayer in https://github.com/gwaldron/osgearth/tree/master/src/applications Both osgearth_minimap and osgearth_map look promising. Cheers François > I'm not sure why the program hangs when you use the addLayer() method, but > you may have better luck asking in the osgEarth forum. > > Good luck, > Eran Cohen > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=75377#75377 > > > > > > ___ > 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] Selecting a mesh of 3d model (say 3ds model)
Hi Nebi, The OSG provide low level features that allow you to determine the vertices and mesh associated with an ray or polytopes intersection, but doesn't provide high level features of how you want to represent these. Have a look at the osgpick example. Cheers, Robert. On Wed, 2 Jan 2019 at 21:47, Nebi Sarikaya wrote: > > Hi, > > I know how to select a point on a model. Is there anyway to select a > particular mesh on the 3d model? > > Thank you! > > Cheers, > Nebi > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=75374#75374 > > > > > > ___ > 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