Hi.
when I try to read a file(.osg, .flt etc), I use a setScale function.
Because sometimes loaded object(tank ,teapot etc) are very small then terrain object.

In that case, I have a problem.
The light doesn't work well. (object became a black thing)

How can I fix?

        osg::PositionAttitudeTransform* tankXform =
                new osg::PositionAttitudeTransform();
        root->addChild(tankXform);
        tankXform->addChild(tankNode);

        osg::Vec3 tankPosit(0,20,20);
        osg::Vec3 tankScale(20,20,20);

        tankXform->setPosition(tankPosit);
        tankXform->setScale(tankScale);

this is a part of the source. I never add other light source, just use default one.

thank you.

_________________________________________________________________
지금 가까이 있는 싱글들을 찾아 보세요! http://match.kr.msn.com/channel/index.aspx?trackingid=1002127
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to