[osg-users] Getting the height of a 3DS node
Adrian Jelffs
adrian.jelffs at makai.com
Fri Mar 9 20:11:48 PST 2018
Hello,
I am loading a 3DS file in to my scene and I need to find out the height of the object. I want to place some text above the object which moves with a fixed offset but I don't always know the size of the object.
I am currently loading it like this:
_myNode = osgDB::readNodeFile("adrian.3ds");
I thought I could do something like this but hf always returns NULL.
osg::ref_ptr<osg::HeightField> hf = osgDB::readHeightFieldFile("adrian.3ds");
float height = hf->getSkirtHeight();
Many thanks for your help!!
Adrian
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73065#73065
More information about the osg-users
mailing list