[osg-users] Textured ply file is black when loaded.

'Tom Pollok' via OpenSceneGraph Users osg-users at googlegroups.com
Mon Jan 20 02:38:08 PST 2020


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/32ffc1ad-5bce-43d3-a983-a777e1a981ae%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200120/506d1c7c/attachment.html>


More information about the osg-users mailing list