FbxGeometryLoader with QML












1















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?










share|improve this question























  • 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
















1















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?










share|improve this question























  • 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














1












1








1








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 '18 at 8:34









AndersAnders

638




638













  • 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



















  • 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

















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












1 Answer
1






active

oldest

votes


















1














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






share|improve this answer


























  • 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











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
});


}
});














draft saved

draft discarded


















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









1














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






share|improve this answer


























  • 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
















1














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






share|improve this answer


























  • 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














1












1








1







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






share|improve this answer















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







share|improve this answer














share|improve this answer



share|improve this answer








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



















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Florida Star v. B. J. F.

Error while running script in elastic search , gateway timeout

Adding quotations to stringified JSON object values