该例子演示了光点的效果,主要应用osgSim库中的LightPoint、LightPointNode、
SequenceGroup、BlinkSequence,osgSim库属于仿真库,扩展库。应用osg核心库完成一些指定
的效果。因此研究这个例子只需要指定以上这几个类的作用即可。
LightPoint是光点类,有如下属性:
bool _on;
osg::Vec3 _position;
osg::Vec4 _color;
float _intensity;
float _radius;
osg::ref_ptr<Sector>
_sector;
osg::ref_ptr<BlinkSequence> _blinkSequence;
BlendingMod
SequenceGroup、BlinkSequence,osgSim库属于仿真库,扩展库。应用osg核心库完成一些指定
的效果。因此研究这个例子只需要指定以上这几个类的作用即可。
LightPoint是光点类,有如下属性:
bool _on;
osg::Vec3 _position;
osg::Vec4 _color;
float _intensity;
float _radius;
osg::ref_ptr<Sector>
_sector;
osg::ref_ptr<BlinkSequence> _blinkSequence;
BlendingMod