FbxGeometryLoader with QML
I want to import a .fbx file into my Scene3D, via the QMesh type, all in QML. Per the documentation,
QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found
So the result I want is something like the following:
Entity {
...
Mesh{
source: "qrc:/3dmodels/potato.fbx"
}
}
After some searching, I found this post on the Qt forum, which directed me to download and include the Autodesk SDK into my project (via CMake).
I think that the only part I am lacking is to build the geometry loader for fbx, which I found in the source files (Qt/5.11.1/Src/qt3d/src/plugins/geometryloaders/fbx).
My question:
How do I build the fbx geomerty loader from source, and include it into my project?
qml fbx qt3d
add a comment |
I want to import a .fbx file into my Scene3D, via the QMesh type, all in QML. Per the documentation,
QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found
So the result I want is something like the following:
Entity {
...
Mesh{
source: "qrc:/3dmodels/potato.fbx"
}
}
After some searching, I found this post on the Qt forum, which directed me to download and include the Autodesk SDK into my project (via CMake).
I think that the only part I am lacking is to build the geometry loader for fbx, which I found in the source files (Qt/5.11.1/Src/qt3d/src/plugins/geometryloaders/fbx).
My question:
How do I build the fbx geomerty loader from source, and include it into my project?
qml fbx qt3d
Similarly to this question, for me loadingfbx
files works out of the box. Did you try to simply load it?
– Florian Blume
Nov 13 '18 at 11:03
Yes, I tried to load it (with the code posted). The same error as @karamazovbros got is outputted.
– Anders
Nov 13 '18 at 11:18
add a comment |
I want to import a .fbx file into my Scene3D, via the QMesh type, all in QML. Per the documentation,
QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found
So the result I want is something like the following:
Entity {
...
Mesh{
source: "qrc:/3dmodels/potato.fbx"
}
}
After some searching, I found this post on the Qt forum, which directed me to download and include the Autodesk SDK into my project (via CMake).
I think that the only part I am lacking is to build the geometry loader for fbx, which I found in the source files (Qt/5.11.1/Src/qt3d/src/plugins/geometryloaders/fbx).
My question:
How do I build the fbx geomerty loader from source, and include it into my project?
qml fbx qt3d
I want to import a .fbx file into my Scene3D, via the QMesh type, all in QML. Per the documentation,
QMesh will also support the following format if the SDK is installed and the fbx geometry loader plugin is built and found
So the result I want is something like the following:
Entity {
...
Mesh{
source: "qrc:/3dmodels/potato.fbx"
}
}
After some searching, I found this post on the Qt forum, which directed me to download and include the Autodesk SDK into my project (via CMake).
I think that the only part I am lacking is to build the geometry loader for fbx, which I found in the source files (Qt/5.11.1/Src/qt3d/src/plugins/geometryloaders/fbx).
My question:
How do I build the fbx geomerty loader from source, and include it into my project?
qml fbx qt3d
qml fbx qt3d
asked Nov 13 '18 at 8:34
AndersAnders
638
638
Similarly to this question, for me loadingfbx
files works out of the box. Did you try to simply load it?
– Florian Blume
Nov 13 '18 at 11:03
Yes, I tried to load it (with the code posted). The same error as @karamazovbros got is outputted.
– Anders
Nov 13 '18 at 11:18
add a comment |
Similarly to this question, for me loadingfbx
files works out of the box. Did you try to simply load it?
– Florian Blume
Nov 13 '18 at 11:03
Yes, I tried to load it (with the code posted). The same error as @karamazovbros got is outputted.
– Anders
Nov 13 '18 at 11:18
Similarly to this question, for me loading
fbx
files works out of the box. Did you try to simply load it?– Florian Blume
Nov 13 '18 at 11:03
Similarly to this question, for me loading
fbx
files works out of the box. Did you try to simply load it?– Florian Blume
Nov 13 '18 at 11:03
Yes, I tried to load it (with the code posted). The same error as @karamazovbros got is outputted.
– Anders
Nov 13 '18 at 11:18
Yes, I tried to load it (with the code posted). The same error as @karamazovbros got is outputted.
– Anders
Nov 13 '18 at 11:18
add a comment |
1 Answer
1
active
oldest
votes
I learned the QSceneLoader
supports FBX loading and was able to load my FBX files with the setSource
function, so I would use that class instead of using QMesh
. Here's the link to the QSceneLoader
documentation:
https://doc.qt.io/qt-5.11/qt3drender-qsceneloader.html
Thank you. I seem to have run into a new problem where some of the internal properties does not load, but that is a problem for another thread.
– Anders
Nov 14 '18 at 7:34
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276844%2ffbxgeometryloader-with-qml%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I learned the QSceneLoader
supports FBX loading and was able to load my FBX files with the setSource
function, so I would use that class instead of using QMesh
. Here's the link to the QSceneLoader
documentation:
https://doc.qt.io/qt-5.11/qt3drender-qsceneloader.html
Thank you. I seem to have run into a new problem where some of the internal properties does not load, but that is a problem for another thread.
– Anders
Nov 14 '18 at 7:34
add a comment |
I learned the QSceneLoader
supports FBX loading and was able to load my FBX files with the setSource
function, so I would use that class instead of using QMesh
. Here's the link to the QSceneLoader
documentation:
https://doc.qt.io/qt-5.11/qt3drender-qsceneloader.html
Thank you. I seem to have run into a new problem where some of the internal properties does not load, but that is a problem for another thread.
– Anders
Nov 14 '18 at 7:34
add a comment |
I learned the QSceneLoader
supports FBX loading and was able to load my FBX files with the setSource
function, so I would use that class instead of using QMesh
. Here's the link to the QSceneLoader
documentation:
https://doc.qt.io/qt-5.11/qt3drender-qsceneloader.html
I learned the QSceneLoader
supports FBX loading and was able to load my FBX files with the setSource
function, so I would use that class instead of using QMesh
. Here's the link to the QSceneLoader
documentation:
https://doc.qt.io/qt-5.11/qt3drender-qsceneloader.html
edited Nov 13 '18 at 21:09
answered Nov 13 '18 at 20:56
karamazovbroskaramazovbros
3421217
3421217
Thank you. I seem to have run into a new problem where some of the internal properties does not load, but that is a problem for another thread.
– Anders
Nov 14 '18 at 7:34
add a comment |
Thank you. I seem to have run into a new problem where some of the internal properties does not load, but that is a problem for another thread.
– Anders
Nov 14 '18 at 7:34
Thank you. I seem to have run into a new problem where some of the internal properties does not load, but that is a problem for another thread.
– Anders
Nov 14 '18 at 7:34
Thank you. I seem to have run into a new problem where some of the internal properties does not load, but that is a problem for another thread.
– Anders
Nov 14 '18 at 7:34
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276844%2ffbxgeometryloader-with-qml%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Similarly to this question, for me loading
fbx
files works out of the box. Did you try to simply load it?– Florian Blume
Nov 13 '18 at 11:03
Yes, I tried to load it (with the code posted). The same error as @karamazovbros got is outputted.
– Anders
Nov 13 '18 at 11:18