<div dir="ltr"><div>Hello Laurens,</div><div><br></div><div>thank you for your investigation!</div><div><br></div><div>Best,</div><div>Tom<br></div><br>Am Dienstag, 14. Januar 2020 14:10:27 UTC+1 schrieb L. Voerman:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>repost in google group; It seems like my reply to the mailing list does not show up in google groups.</div><div><br></div>Hi Tom,<div>I think your obj file is invalid, as the faces all reference normal "0" and </div><div>1> no normals are provided</div><div>2> normal indices start at 1 (according to <a href="https://en.wikipedia.org/wiki/Wavefront_.obj_file#Face_elements" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWavefront_.obj_file%23Face_elements\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHMf48ztTfCY9WZ51crHchfGcJcQ';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FWavefront_.obj_file%23Face_elements\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHMf48ztTfCY9WZ51crHchfGcJcQ';return true;">wikipedia</a>)</div><div><br></div><div>if I reduce your obj file to just the first face (removing material and all but vertex/texcoord 0-1-2) ( attached )</div><div>I get the same crash with</div><div>osgconv DataFace1.obj</div><div>removing the /0 (normal ref) three times fixes the problem - same works for the large file (with textures working)</div><div>Laurens.</div><div><br></div>On Monday, January 13, 2020 at 12:12:48 PM UTC+1, Tom Pollok wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I added a zip file with the mesh. It happens when loading that obj file.</div><div><br></div><div><a href="https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fowncloud.iosb.fraunhofer.de%2Fowncloud%2Fs%2Fdc8dkbXrQz3gTuh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGQR0mkd74jVhmhZl1hMtC0PDspiA';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fowncloud.iosb.fraunhofer.de%2Fowncloud%2Fs%2Fdc8dkbXrQz3gTuh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGQR0mkd74jVhmhZl1hMtC0PDspiA';return true;">https://owncloud.iosb.<wbr>fraunhofer.de/owncloud/s/<wbr>dc8dkbXrQz3gTuh</a></div><div><br></div><div>Pw: osg<br></div><div><br></div><div>I have to check for the stack trace again.<br></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>pathToObjFile</span><span>,</span> <span>opt</span><span>);</span></span><br><br>Im using two windows machines with intel processors (64bit). <br>OSG was built by ourselves. <br>One has an integrated intel graphics unit and one with a Nvidia 2080Ti.</pre></div><br>Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>When loading a textured mesh from an obj file with mtl + texture file, openscenegraph crashes.</div><div><br></div><div>I use openscenegraph 3.4.1. Does anybody know if that issue has been fixed in newer versions?<br></div></div></blockquote><div><br></div><div>I don;t recall reports of crashes associated with .obj.</div><div><br></div><div>Could you provide a link to the model that is causing the problem?</div><div><br></div><div>Could you provide a stack trace?</div><div><br></div><div>What platform are you working on? Did you build the OSG yourself? </div><div><br></div><div>What hardware are you working on?</div><div><br></div><div>Cheers,</div><div>Robert,</div></div></blockquote><br><br>Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>When loading a textured mesh from an obj file with mtl + texture file, openscenegraph crashes.</div><div><br></div><div>I use openscenegraph 3.4.1. Does anybody know if that issue has been fixed in newer versions?<br></div></div></blockquote><div><br></div><div>I don;t recall reports of crashes associated with .obj.</div><div><br></div><div>Could you provide a link to the model that is causing the problem?</div><div><br></div><div>Could you provide a stack trace?</div><div><br></div><div>What platform are you working on? Did you build the OSG yourself? </div><div><br></div><div>What hardware are you working on?</div><div><br></div><div>Cheers,</div><div>Robert,</div></div></blockquote></div></blockquote></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/35f1fdb6-f7a2-410b-afbf-b2911388438f%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/35f1fdb6-f7a2-410b-afbf-b2911388438f%40googlegroups.com</a>.<br />