GEOVIS5 / develop

0 stars 0 forks source link

gles下的开发问题 #1

Open feifly1984 opened 6 years ago

feifly1984 commented 6 years ago

1.绘制对象时,顶点数组使用osg::Vec3Array,不要使用osg::Vec3dArray,否则会有绘制不出来的情况

feifly1984 commented 6 years ago

当前shader版本中,采用"#version 100\n",使用过高版本绘制没有效果

feifly1984 commented 6 years ago

shader中纹理坐标使用内置函数 gl_MultiTexCoord0

feifly1984 commented 6 years ago

绘制面时,使用osg::PrimitiveSet::TRIANGLES,避免使用polygon等

feifly1984 commented 6 years ago

确定两点: 1.设备支持touch事件(是触控设备); 2.需要设置窗口属性:setAttribute(Qt::WA_AcceptTouchEvents); //接收touch消息