[Interest] Qt3D with .mtl?
laszlo.agocs at theqtcompany.com
Mon Sep 14 10:06:54 CEST 2015
You are probably using Mesh which won't ever look at the .mtl file because it only imports geometry.
Use SceneLoader instead. It is backed by Assimp which is able to read material data and texture references from the .mtl files.
From: interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org <interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org> on behalf of privet56 hotmail.com <privet56 at hotmail.com>
Sent: Friday, September 11, 2015 2:14 PM
To: interest at qt-project.org
Subject: [Interest] Qt3D with .mtl?
I would like to embed an .obj file into my Qt5.5-Qt3D Scene.
The result is strange, only the outline is visible, see:
(the "ball.obj" from the examples is working, see on the left side).
However, the same .obj file is working with Three.js, see
(see on the top of the pic: I have an .obj file with an .mtl file and its 3 referenced textures)
I recognized that none of the Qt3D examples contain *.mtl resources...
Does Qt3D not (yet?) support .obj with .mtl files with references to the textures?
Thx for a hint in Advance!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest