[osg-users] Textured ply file is black when loaded.
julienvalentin51
julienvalentin51 at gmail.com
Thu Jan 23 18:50:27 PST 2020
PLY is a meta format. It means its interpretation is application
specific...The simple fact to assign its data to osg attribute semantic is
a nonsense, but it's the most probable application semantic
Le lundi 20 janvier 2020 11:38:08 UTC+1, Tom Pollok a écrit :
>
> I converted the repaired obj meshmodel from
> https://groups.google.com/forum/#!topic/osg-users/BBUYMYiWGl8 using
> MeshLab to a ply file.
>
> https://owncloud.iosb.fraunhofer.de/owncloud/s/fF6tLLgDCu2xwZk
>
> Pw: osg
>
> I can load the ply file using MeshLab and CloudCompare, but when loading
> the ply file using openscenegraph 3.6.2 then i just get model that is
> completely black.
>
> The header defines in a comment that there is a texture file:
>
> ply
> format binary_little_endian 1.0
> comment VCGLIB generated
> comment TextureFile Wareneingang_material_0_map_Kd.jpg
> element vertex 99428
> property float x
> property float y
> property float z
> element face 186642
> property list uchar int vertex_indices
> property list uchar float texcoord
> property uchar red
> property uchar green
> property uchar blue
> property uchar alpha
> end_header
>
> But MeshLab did not create an mtl file, however as said, other tools can
> still load the model.
>
> For loading i use:
>
> osgDB::Options* opt = new osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr<osg::Node> node = osgDB::readNodeFile(pathToPlyFile, opt);
>
>
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/30874a4f-46d6-44f3-bbca-957eeab54b27%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200123/1c8112de/attachment.html>
More information about the osg-users
mailing list