1. OSG内置雾化类osg::Fog
int main()
{osg::ref_ptr<osgViewer::Viewer> viewer new osgViewer::Viewer;osg::ref_ptr<osg::Group> gp new osg::Group;gp->addChild(osgDB::readNodeFile("ceep.ive"));osg::ref_ptr<osg::Fog> fog new osg:…
osg、其中osgb是osg的二进制格式;osgt格式是 如下官网解释: OSGT file is an OpenSceneGraph ASCII Scene Data. The OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visua…
OSG HUD (渲染屏幕上贴图和写字)前言:随便学学。HUD,相机的一种,好比英雄联盟的小地图。主要渲染流程如下:实现步骤代码:osg::ref_ptr<osg::Camera> camera new osg::Camera;
//二维相机,设置观察矩…
osg::StateAttribute类中有如下枚举 /** list values which can be used to set either GLModeValues or OverrideValues.* When using in conjunction with GLModeValues, all Values have meaning. * When using in conjunction with StateAttribute OverrideValue only * OF…