天道酬勤,学无止境

fbx

如何导入 3D 场景(.obj 文件和 .mtl 文件)(How to import 3D scene (.obj file with .mtl file))

问题 我买了一个房间的 3D 模型。 该模型采用.obj格式。 现在,我正在尝试将此模型导入 Unity3D。 该模型附带: 5 x .obj文件 5 x .mtl文件 n x .jpg文件 n x .tga文件 .mtl文件包含我的 PC 上不存在的路径。 所以我删除了路径。 图像文件( .jpg和.mtl )与.obj文件位于同一目录中。 当我尝试导入.obj文件时,房间里没有任何材料。 然后我尝试使用 FBX 转换器(选中“嵌入媒体”)将.obj转换为.fbx ,但在我导入它时,3D 房间中没有材料(它是不可见的)。 我还尝试将所有.jpg和.tga文件导入到 Unity 中 Assets 根文件夹下的文件夹,然后导入.obj和.mtl文件。 我究竟做错了什么? Unity3D 是否使用.mtl来确定在哪里可以找到所需的图像文件? 是否有可能揭示一些信息的导入日志? 更新 [8/25/2015] 我编辑了我所有的.mtl文件并删除了路径,所以它只是图像文件名(即map_Ka Arch 53-wood 14.jpg )。 我将所有.jpg和.tga文件复制到同一目录中的“Textures”文件夹中。 我使用 FBX 转换器将.obj文件转换为.fbx 。 将.fbx导入 Unity3D。 它仍然会创建一个没有材质(不可见)的模型,但它在导入时自动创建的材质文件夹中的文件要少得多

2021-06-22 14:24:48    分类:技术分享    unity3d   import   fbx

在 OpenGL 中导入和显示 .fbx 文件(Importing and Displaying .fbx files in OpenGl)

问题 我一直在尝试使用FBX SDK.Untill导入和显示 fbx 文件。 我设法加载了文件,但卡在了必须显示的部分。 问题: 这些指标究竟是什么? 我应该如何显示顶点? 这是我制作的课程: 3dModelBasicStructs.h struct vertex { float x,y,z; }; struct texturecoords { float a,b; }; struct poligon { int a,b,c; }; Model.h #ifndef MODEL_H #define MODEL_H #define FBXSDK_NEW_API #define MAX_VERTICES 80000 #define MAX_POLIGONS 80000 #include <fbxsdk.h> #include "3dModelBasicStructs.h" #include <iostream> #include <GL/glut.h> using namespace std; class Model { public: Model(char*); ~Model(); void ShowDetails(); char* GetModelName(); void SetModelName( char* ); void GetFbxInfo( FbxNode* ); void

2021-06-09 12:03:57    分类:技术分享    c++   opengl   import   fbx

Importing and Displaying .fbx files in OpenGl

I have been trying to import and display an fbx file using the FBX SDK.Untill. I managed to load in the file, but I got stuck at the part where I have to display it. The questions: What exactly are those indices? How should I display the vertices? Here is the class that I made: 3dModelBasicStructs.h struct vertex { float x,y,z; }; struct texturecoords { float a,b; }; struct poligon { int a,b,c; }; Model.h #ifndef MODEL_H #define MODEL_H #define FBXSDK_NEW_API #define MAX_VERTICES 80000 #define MAX_POLIGONS 80000 #include <fbxsdk.h> #include "3dModelBasicStructs.h" #include <iostream> #include

2021-05-31 21:50:46    分类:问答    c++   opengl   import   fbx

How to import 3D scene (.obj file with .mtl file)

I bought a 3D Model of a room. The model is in the .obj format. Now, I'm trying to import this model into Unity3D. The Model came with: 5 x .obj files 5 x .mtl files n x .jpg files n x .tga files The .mtl files contained paths that do not exist on my PC. So I removed the paths. The images files (.jpg & .mtl) are in the same directory as the .obj files. When I tried to import the .obj files, the room has no material on it. I then tried to use the FBX converter (with "Embed media" checked) to convert the .obj to .fbx and still when I import it, there is no material on the 3D room (it's invisible

2021-05-31 14:48:45    分类:问答    unity3d   import   fbx

How to setup QT Creator to use Autodesk FBX SDK as a library?

The Qt documentation for QMesh at the following link, https://doc.qt.io/qt-5.11/qt3drender-qmesh.html, shows that QMesh supports FBX when using the Autodesk FBX SDK. It provides no resource about how to go about setting this up, so I searched and found 1 resource on setting up the FBX SDK with Qt Creator at the following link: https://forums.autodesk.com/t5/fbx-forum/including-sdk-to-qt-creator/td-p/8184654 I tried the above solution, but when I try to load the QMesh I still get a Debug warning that: Qt3D.Renderer.Jobs: unsupported format encountered (fbx) This is my code, which works for .obj

2021-05-11 16:23:00    分类:问答    qt   3d   fbx   qt3d