osg
panjieke
初学者老菜鸟一枚
展开
-
osg 路径 动画 效果
[cpp] view plain copy print?#include #include #include #include #include #include #include #include #include using namespace std; class PickEventHandle :public转载 2016-03-22 21:39:42 · 942 阅读 · 0 评论 -
osg vs2010 问题之一
NewPanderKing抬头是山,路在脚下!LNK1123: 转换到 COFF 期间失败: 文件无效或损坏用VS2010编译C++项目时出现这样的错误:LNK1123: 转换到 COFF 期间失败: 文件无效或损坏方案一:(这个方法比较好,在用qt运行时出现问题也能解决)复制 C:\Windows\winsxs\x86_netfx-cvtres_for_vc_转载 2016-04-06 14:14:39 · 347 阅读 · 0 评论 -
QT+osg更新重绘
在继承QWidget,osgViewer之后,记得手动connect定时器更新,QT内置的循环,检测事件,消息队列。而重新绘制PaintEvent时需要做判断的原创 2016-04-29 17:35:03 · 905 阅读 · 1 评论 -
QT加载qt的DLL错误
使用不了QT的DLL里边的函数,原因1:.exe下的路径,也就是OutDir没有添加,或者添加错误,路径问题。2:再不要在同一个项目中把类封装为dll,哪怕再新建个工程也好也应该,Qt默认加载他自己生成的.moc文件。然后.moc文件在DLL中是自动生成的,但是VS是不会自动添加的,需要自己手动添加……香蕉个巴拉的,就这让咱蛋疼了两个多钟……别偷懒,不要以为细节不重要原创 2016-05-05 11:49:02 · 868 阅读 · 0 评论 -
osg中实现半透明效果
在为球贴图的基础上,实现模拟地球的透明展示。是先前效果如下:实现后效果如下:实现代码如下,主要是在状态集中进行设置:osg::ref_ptrblendFunc = new osg::BlendFunc(); blendFunc->setSource(osg::BlendFunc::SRC_ALPHA); blendFunc->setDestination转载 2016-10-13 14:30:24 · 2285 阅读 · 0 评论 -
c++中acos,asin,atan的范围
acos:Principal arc cosine of x, in the interval [0,pi] radians.asin:Principal arc sine of x, in the interval [-pi/2,+pi/2] radians.atan:Principal arc tangent of x, in the inter转载 2017-03-13 14:20:11 · 8930 阅读 · 0 评论