void TeslaManage::loadModelFile(QString &filename)
转载
2019-07-13 12:25:00
186阅读
2评论
使用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阅读
项目环境变量配置 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评论
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
513阅读
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评论
ui_ifcproject_20190702.h ifcproject_201907.cpp main.cpp
转载
2019-07-27 00:41:00
225阅读
2评论
文章目录一移植驱动程序心得体会二移植LCD驱动程序记录三移植按键输入子系统驱动程序四移植触摸屏驱动程序五移植USB驱动程序 今天移植了按键,LED,LCD,触摸屏等驱动程序,移植驱动程序相对于写驱动程序,就简单得多,前提是得理解驱动程序。 现在来大体总结一下如何移植一个新的驱动程序(不是内核自带的驱动程序)的大体思路以及流程。 一移植驱动程序心得体会首先呢,我们拿到一个新的驱动程序,直接先拿
在软件开发中,编译是一个至关重要的过程,特别是在使用开源软件时。在Linux操作系统上,许多开源软件都需要进行编译后才能运行。其中,Qt和OSG是两个常用的开源库,下面将介绍如何在Linux上编译这两个库。
首先我们来看Qt库的编译。Qt是一个跨平台的C++应用程序开发框架,可以用于开发GUI程序和非GUI程序。在Linux上编译Qt主要有两种方式,一种是通过源代码编译,另一种是通过包管理器安装
原创
2024-04-18 10:48:52
427阅读
osgViewer::Viewer* _viewer = nullptr; _viewer = new osgViewer::Viewer;osg::ref_ptr<osg::Group> root = new osg::Group;//注意:这两句话的先后顺序 先添加模型在添加相机//root->
转载
2019-06-15 20:27:00
398阅读
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评论
随便找了一个模型它的OBJ文件内容为:# File exported by ZBrush version 4.4 # www.zbrush.com #Vertex Count 20545 #UV Vertex Count 15953 #Face Count 20559 #Auto scale x=0.022208 y=0.022208 z=0.022208 #Auto offset x=-0.53
转载
2024-06-27 19:05:51
79阅读
简要介绍了将OSG嵌入到QT的过程,以及一些问题。
原创
2021-11-01 11:35:02
2814阅读
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评论
模型节点控制隐藏于显示,只需要调用 节点的 setNodeMask(1);即可,0:隐藏 1:显示 export root nodeNode : RootNodeNode : 三维视图: {三维} eCamera : 涓夌淮瑙嗗浘: {涓夌淮}Node : 基本墙 wall_240 [361750]
转载
2019-07-09 10:12:00
615阅读
2评论