Hi,

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.


Best regards,

Laszlo


________________________________
From: interest-bounces+laszlo.agocs=theqtcompany....@qt-project.org 
<interest-bounces+laszlo.agocs=theqtcompany....@qt-project.org> on behalf of 
privet56 hotmail.com <prive...@hotmail.com>
Sent: Friday, September 11, 2015 2:14 PM
To: interest@qt-project.org
Subject: [Interest] Qt3D with .mtl?

Hi,

I would like to embed an .obj file into my Qt5.5-Qt3D Scene.
The result is strange, only the outline is visible, see:
http://privet.bplaced.net/temp/objs.png
(the "ball.obj" from the examples is working, see on the left side).

However, the same .obj file is working with Three.js, see
http://privet.bplaced.net/temp/objs_with_threejs.png
(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!

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to