<div dir="ltr">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<br><br><br>Le lundi 20 janvier 2020 11:38:08 UTC+1, Tom Pollok a écrit :<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>I converted the repaired obj meshmodel from <a href="https://groups.google.com/forum/#!topic/osg-users/BBUYMYiWGl8" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/forum/#!topic/osg-users/BBUYMYiWGl8';return true;" onclick="this.href='https://groups.google.com/forum/#!topic/osg-users/BBUYMYiWGl8';return true;">https://groups.google.com/<wbr>forum/#!topic/osg-users/<wbr>BBUYMYiWGl8</a> using MeshLab to a ply file.</div><div><br></div><div><a href="https://owncloud.iosb.fraunhofer.de/owncloud/s/fF6tLLgDCu2xwZk" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fowncloud.iosb.fraunhofer.de%2Fowncloud%2Fs%2FfF6tLLgDCu2xwZk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHDjUQd314aHHY33o3z212nEWDcBg';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fowncloud.iosb.fraunhofer.de%2Fowncloud%2Fs%2FfF6tLLgDCu2xwZk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHDjUQd314aHHY33o3z212nEWDcBg';return true;">https://owncloud.iosb.<wbr>fraunhofer.de/owncloud/s/<wbr>fF6tLLgDCu2xwZk</a></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_<wbr>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></blockquote></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/30874a4f-46d6-44f3-bbca-957eeab54b27%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/30874a4f-46d6-44f3-bbca-957eeab54b27%40googlegroups.com</a>.<br />