<div dir="ltr"><div>I converted the repaired obj meshmodel from https://groups.google.com/forum/#!topic/osg-users/BBUYMYiWGl8 using MeshLab to a ply file.</div><div><br></div><div>https://owncloud.iosb.fraunhofer.de/owncloud/s/fF6tLLgDCu2xwZk</div><div><br></div><div>Pw: osg<br></div><div><br></div><div>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.</div><div><br></div><div> The header defines in a comment that there is a texture file:</div><div><br></div><div>ply<br>format binary_little_endian 1.0<br>comment VCGLIB generated<br>comment TextureFile Wareneingang_material_0_map_Kd.jpg<br>element vertex 99428<br>property float x<br>property float y<br>property float z<br>element face 186642<br>property list uchar int vertex_indices<br>property list uchar float texcoord<br>property uchar red<br>property uchar green<br>property uchar blue<br>property uchar alpha<br>end_header</div><div><br></div><div>But MeshLab did not create an mtl file, however as said, other tools can still load the model.</div><div><br></div><div>For loading i use:</div><div><br></div><div><pre lang="cpp"><span lang="cpp"><span>osgDB</span><span>::</span><span>Options</span><span>*</span> <span>opt</span> <span>=</span> <span>new</span> <span>osgDB</span><span>::</span><span>Options</span><span>;</span></span>
<span lang="cpp"><span>opt</span><span>-></span><span>setOptionString</span><span>(</span><span>"<wbr>noRotation"</span><span>);</span></span>
<span lang="cpp"></span>
<span lang="cpp"><span>osg</span><span>::</span><span>ref_ptr</span><span><</span><span>osg</span><span>::</span><span>Node</span><span>></span> <span>node</span> <span>=</span> <span>osgDB</span><span>::</span><span>readNodeFile</span><span>(<wbr>pathToPlyFile</span><span>,</span> <span>opt</span><span>);</span></span></pre></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/32ffc1ad-5bce-43d3-a983-a777e1a981ae%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/32ffc1ad-5bce-43d3-a983-a777e1a981ae%40googlegroups.com</a>.<br />