Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread David Bobavid
Hi Eran, Ok, thanks! I'll look into that. Last question (I think) for now... I'm trying to set my cow's orientation. From what you have suggested previously, would I add another MatrixTransform node with the rotations set into it? Or should I add a PositionAttitudeTransform instead? If so,

Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread Eran Cohen
Good to hear! As an aside, if you find yourself dealing with clipping issues when zooming in closely to models, take a look at osgEarth::Util::LogarithmicDepthBuffer. Cheers, Eran -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75943#75943

Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread David Bobavid
Hi Eran, So, it looks like if I zoom in *a lot* I do see my cow... I was playing around with it again and tried getting in real close, and setting the scale much larger again, and it's showing up. I guess it's a very small model, and I wasn't really looking close enough for it, either. Thank

Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread David Bobavid
Hi Eran, Yes, sure... this is what I'm doing: First to load my map: Code: _map = new osgEarth::Map(); osgEarth::Drivers::GDALOptions basemap; basemap.url() = "I:/Dev/QtOsgTest1/data/world.tif"; _map->addLayer(new ImageLayer(ImageLayerOptions("basemap", basemap))); _mapNode = new

Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread Eran Cohen
Hi David, It would help if you post the code that doesn't work for you so that we can see whats wrong with it. Have you set its location using a GeoPoint? Code: auto model = osgDB::readNodeFile("path-to-model"); auto geoTransform = new osgEarth::GeoTransform; geoTransform->addChild(model);

Re: [osg-users] Convert .earth file to .osg format

2019-05-02 Thread Chris Hanson
I would think QGIS would do it. There may be other, simpler tools too. On Thu, May 2, 2019 at 1:56 AM Steven Jones wrote: > Chris, > > > Chris Hanson wrote: > > It's a single-precision 32-bit floating point TIFF. Values could be > anywhere from -FLT_MAX to FLT_MAX. > > > > I've tried several

Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread David Bobavid
Hi Eran, Ok, dumb follow up - I'm trying to add the geoTransform to my mapnode, and nothing is showing up. Is there something else I should be doing to add this transformed model to my map node? (Sorry, total newb with osg/osgearth, here) Thanks again, David -- Read this

Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread David Bobavid
Hi Eran, Great, thanks so much. I'll give that a shot! Cheers, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75937#75937 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] adding object models in osgEarth best practices

2019-05-02 Thread Eran Cohen
Hi David, If you're adding a model from code, you can simple load it normally using osgDB::readNodeFile and place it under an osgEarth::GeoTransform to transform to the correct location: Code: auto model = osgDB::readNodeFile("path-to-model"); auto geoTransform = new osgEarth::GeoTransform;

[osg-users] adding object models in osgEarth best practices

2019-05-02 Thread David Bobavid
Hi, I'm new to OSG and OSGEarth, and I did some googling, but still have some trouble finding out the proper way to do this. So I have an osgEarth program, and I want to add some entity models, such as planes, moving around my globe. While I'm good with loading a .earth file for the terrain,