随笔- 191
文章- 0
评论- 35
阅读-
21万
07 2010 档案
得到相交的三角面片的三个顶点坐标
摘要:class PickEvent : public osgGA::GUIEventHandler{public:PickEvent(osg::Geometry* drawable) : _drawable(drawable){}~PickEvent(){}public:bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIAction...
阅读全文
使用osg::TriangleFunction仿函数求交
摘要:class PickEvent : public osgGA::GUIEventHandler{public:PickEvent(osg::Geometry* drawable) : _drawable(drawable){}~PickEvent(){}public:bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIAction...
阅读全文
osg渲染到纹理的代码,把读入的节点当成纹理渲染到一个正方形上
摘要:osg::Group* group = new osg::Group;osg::Node* node = osgDB::readNodeFile("D:\\cow.osg");osg::Camera* camera = new osg::Camera;camera->setViewport(0, 0, 256, 256);osg::Image* img = new osg::Image;im...
阅读全文
osg选取
摘要:void PickHandler::pick(osgViewer::View*view, const osgGA::GUIEventAdapter&ea){ osgUtil::LineSegmentIntersector::Intersections intersections;//求集交互器 float x = ea.getX(); float y = ea.getY();//传入事件的...
阅读全文