Hi Mike,
position-setScale(osg::Vec3(0.01,0.01,0.01));
When you use scale in a Transform, the geometry's normals also get
scaled. The normals are used to compute lighting, so it's normal
(geez, bad pun) that lighting is wrong.
You just need to tell OpenGL to rescale normals:
Thank you!
it works!!
Cheers,
Mike
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=19414#19414
___
osg-users mailing list
osg-users@lists.openscenegraph.org
now a screenshot
AdapterWidget for QT
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=19419#19419
attachment: nice.jpg___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi,
I have problems with using the QOsgWidget under QT.
I was load a Collada file *.dae
The scene in the osgviewer.exe was correct (attachment pic good), but if i use
the QOsgWidget
Code:
osg::ref_ptrosg::Node loadedModel = osgDB::readNodeFile(collada.dae);
4 matches
Mail list logo