Chinaunix首页 | 论坛 | 博客
  • 博客访问: 102595
  • 博文数量: 51
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 520
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-07 10:17
文章分类

全部博文(51)

文章存档

2017年(2)

2016年(36)

2015年(13)

我的朋友

发布时间:2015-12-31 11:58:37

osg::Shader......【阅读全文】

阅读(3839) | 评论(0) | 转发(0)

发布时间:2015-12-04 15:15:21

sphereShape = new osg::Sphere(center, radius);//textureosg::ref_ptr<osg::Image> image = osgDB::readImageFile(filePath);if (!image.get()){std::cout<<"open file is failed!"<<std::endl;return NULL;}osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D;texture->setDataVariance(osg::Object:.........【阅读全文】

阅读(3515) | 评论(0) | 转发(0)

发布时间:2015-12-02 17:01:42

//osg/ShapeDrawable.cppvoid DrawShapeVisitor::apply(const Sphere& sphere){    GLBeginEndAdapter& gl = _state.getGLBeginEndAdapter();    gl.PushMatrix();    gl.Translated(sphere.getCenter().x(),sphere.getCenter().y(),sphere.getCenter().z());    boo.........【阅读全文】

阅读(1812) | 评论(0) | 转发(0)

发布时间:2015-09-08 14:50:16

<span id="mt9" class="sentence" data-guid="66234c0f0e13157f0d1b9411003fba13" data-source="One reason order is significant is that transformations like rotation and scaling are done with respect to the origin of the coordinate system." xml:space="preserve" style="font-family:'Microsoft YaHei UI', 'Mi.........【阅读全文】

阅读(2481) | 评论(0) | 转发(0)

发布时间:2015-09-06 09:49:32

1. 纹理坐标<br /><img src="http://hi.csdn.net/attachment/201011/17/0_1289998846QE3e.gif" /><br /><br />纹理坐标从左下角开始,逆时针存放在纹理数组中。<br /><br />2.纹理坐标与顶点对应<br />以四边形(Quads)为例,纹理坐标左下角点对应四边形左下角点,逆时针一一对应。<br /><br />v3--&gt;tex3 &nbsp.........【阅读全文】

阅读(5658) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册