[Interest] Qt3D with .mtl?

Agocs Laszlo laszlo.agocs at theqtcompany.com
Mon Sep 14 10:06:54 CEST 2015


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.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?

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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150914/550d38b0/attachment.html>


More information about the Interest mailing list