[Interest] QMesh load obj
Sean Harmer
sh at theharmers.co.uk
Wed Jul 13 10:36:19 CEST 2016
Hi,
On 13/07/2016 07:52, Oleg Evseev wrote:
> Hi,
>
> SceneLoader is what you are looking for.
>
> Also take a look to "qgltf" example, and this link
> http://blog.qt.io/blog/2016/01/08/qt3d-asset-conditioning/
SceneLoader loads a whole subtree of entities. Mesh should load the
geometry for a single entity.
I'm sorry but I don't understand the OP's problem. Could you rephrase it
please or post a screenshot? If your obj contains multiple meshes, you
can use the meshName property to select which one gets loaded.
Cheers,
Sean
>
> ---
> Regards, Oleg
>
> 2016-07-05 11:15 GMT+03:00 北风刮到脸上 <1158292387 at qq.com
> <mailto:1158292387 at qq.com>>:
>
> hello Sean Harmer:
> i am now using qt5.7 with qt3d module,now i want to load a obj
> mesh like this:
>
> Qt3DCore::QEntity *meshEntity = new Qt3DCore::QEntity(rootEntity);
> Qt3DRender::QMesh *mesh = new Qt3DRender::QMesh();
> mesh->setSource(QUrl::fromLocalFile(fileName));
>
> and new a QPhongAlphaMaterial than addComponent to meshEntity;
> i can see the obj mesh in the scene,but it is show as likely many
> vertex,i don't konw why.
> thank you.
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160713/db794859/attachment.html>
More information about the Interest
mailing list