使用osg加载fbx模型,需要自己编译fbx插件,编译流程与插件使用案例如下 代码地址:https://github.com/shelltdf/osgFBX CMake Error: The following variables are used in this project, but they
转载
2019-07-04 20:09:00
1538阅读
void TeslaManage::loadModelFile(QString &filename)
转载
2019-07-13 12:25:00
186阅读
2评论
export root nodeNode : RootNodeNode : RootNodeNode : construction_workerNode : Bip001Node : Bip001 PelvisNode : Bip001 SpineNode : Bip001 Spine1Node :
转载
2019-07-05 11:05:00
683阅读
2评论
count:560 construction_worker 4294967295 osg::MatrixTransform1 Bip001 L Finger02 4294967295 osg::MatrixTransform2 Bip001 L Finger01 4294967295 osg::Ma
转载
2019-07-06 22:29:00
182阅读
2评论
1.3dmax导出的fbx坐标系可能与osg不同,需要做个旋转rotate(90,vec3(1,0,0))
2.导出的dds图片需要做个翻转
3.参考osganmitionviewer中的AnimationManagerFinder找到动画管理器
4.autodesk自带的fbx例子可以加载却播放不了,不知原因。
5.同时播放多个fbx,注意通过finder找到动画管理器,然后setUpdateCallback
6.编译fbx需要fbx sdk,设置好3rdParty目录
注意用最新的fbx源码,兼容性好
转载
2013-05-08 21:23:00
312阅读
2评论
void Test::printOsgGroup(osg::ref_ptr &groupParam) { qDebug() getNumChildren(); //std::cout getNumChildren() getNumChildren(); k++) { osg::ref_ptr group_index = groupParam->getC...
转载
2019-07-14 10:18:00
248阅读
2评论
int main() { osg::ref_ptr viewer1 = new osgViewer::Viewer; osg::ref_ptr group1
转载
2019-07-11 07:28:00
515阅读
2评论
for (int k = 0; kgetNumChildren(); k++) { //转换编 std::string name = vcfbx1.w2m1(vcfbx1.m2w1(sg->getChild(k)->getName(), CP_UTF8)); }
转载
2019-07-07 21:46:00
574阅读
2评论
项目环境变量配置 include E:\Qt\Qt5.12.2\5.12.2\msvc2017_64\include E:\OpenSourceGraph\OpenSceneGraph_install\include E:\IFC\boost_1_66_0_vs2017_20190416 E:\IF
转载
2019-07-23 11:38:00
198阅读
2评论
void TeslaManage::OnlineTreeViewDoubleClick(const QModelIndex & index) { int row = index.row(); qDebug() index(0, 0).child(row, 0).data().toString(); if (root != NULL) { osg...
转载
2019-07-15 18:13:00
1833阅读
2评论
class CPickHandler :public osgGA::GUIEventHandler { public: CPickHandler(osgViewer::Viewer *viewer) :mViewer(viewer) {} virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionA...
转载
2019-07-07 21:44:00
249阅读
2评论
转载
2019-07-07 21:00:00
150阅读
2评论
模型节点控制隐藏于显示,只需要调用 节点的 setNodeMask(1);即可,0:隐藏 1:显示 export root nodeNode : RootNodeNode : 三维视图: {三维} eCamera : 涓夌淮瑙嗗浘: {涓夌淮}Node : 基本墙 wall_240 [361750]
转载
2019-07-09 10:12:00
615阅读
2评论
void setNodeStateset(osg::Node *nodeParam) { osg::ref_ptr stateset1 = nodeParam->getOrCreateStateSet(); osg::ref_ptr program1 = new osg::Program; program1->addShader(new osg::Shader(os...
转载
2019-07-07 21:13:00
234阅读
2评论
英文原文:http://www.openscenegraph.org/index.php/documentation/guides/user-guides/64-serialization-supportOSG自支持格式的升级版是在2010年提出的,它的目的是方便扩展、跨格式可持续更新且支持任何OSG已有的格式。比如它可以代表图片,可以代表heighfield,可以代表模型等等。这个升级版的插件代
转载
2024-05-21 12:38:26
547阅读
开始osg编程之前要做osg的编译准备,这里作为初学者最好选择简单的方法先熟悉为主。我们先下载一个编译好的VS2010+OSGEarth,第一步、下载编译包OSG3.1.4和osgEarth2.3 VC10编译包下载地址:http://pan.baidu.com/share/link?shareid=107009&uk=2801833827第二步、建立目录在你的硬盘里建立一个目录,我就在E
转载
2023-11-09 01:13:40
276阅读
1 OSG基础知识Ø OSG是Open Scene Graphic 的缩写,OSG于1997年诞生于以为滑翔机爱好者之手,Don burns 为了对滑翔机的飞行进行模拟,对openGL的库进行了封装,osg的雏形就这样诞生了,1998年Don burns 遇到了同样喜欢滑翔机和计算机图形学的Rob
转载
2023-10-29 18:42:57
162阅读
x:-89.4588 y:-12.1245 z:-11.7807x:-89.4588 y:-6.44823 z:-11.7807x:-89.2164 y:-9.07239 z:-11.811x:-89.4588 y:-12.1245 z:-11.7807x:-89.2164 y:-9.07239 z
转载
2019-06-27 19:49:00
562阅读
2评论
fbx model element count:80 三维视图: {三维} 4294967295 osg::MatrixTransform1 基本墙 wall_240 [361750] 4294967295 osg::MatrixTransform2 基本墙 wall_240 [361813] 42
转载
2019-07-07 15:47:00
211阅读
2评论
OpenSceneGraph是一款高性能的3D图形开发库。广泛应用在可视化仿真、游戏、虚拟现实、高端技术研发以及建模等领域。使用标准的C++和OpenGL编写而成,可以运行在Windows系列、OSX、GNU/Linux、IRIX、Solaris、HP-Ux、AIX以及FreeBSD操作系统。官网 - h
原创
2013-08-02 21:50:00
947阅读