<div dir="ltr">Dear Tom,<div><br></div><div>Thank you for the reply. I tried to load your model. It is crashing in my PC also.</div><div>OSG version is 3.6.4<br><br>On Tuesday, January 14, 2020 at 3:54:05 PM UTC+5:30, 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>Which version of openscenegraph are you using?</div><div><br></div><div>Would you mind trying my obj model with mtl and jpg texture file.</div><div><br></div><div><div><a href="https://www.google.com/url?q=https%3A%2F%2Fowncloud.iosb.fraunhofer.de%2Fowncloud%2Fs%2Fdc8dkbXrQz3gTuh&sa=D&sntz=1&usg=AFQjCNGQR0mkd74jVhmhZl1hMtC0PDspiA" 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 use the following to load it, but it crashes on my system with <code>openscenegraph_3.4.1. Im curious if it works on your system.<br></code></div><div><br></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></pre></div><br>Am Dienstag, 14. Januar 2020 10:52:54 UTC+1 schrieb JILJITH JOHN:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p style="text-align:center;clear:both"><img src="https://groups.google.com/group/osg-users/attach/856ec80dd798b/Capture.PNG?part=0.1&view=1&authuser=0" alt="Capture.PNG" style="margin-left:1em;margin-right:1em" width="320" height="244"></p><p style="text-align:center;clear:both"><img src="https://groups.google.com/group/osg-users/attach/856ec80dd798b/Capture.PNG?part=0.2&view=1&authuser=0" alt="Capture.PNG" style="margin-left:1em;margin-right:1em" width="320" height="112"></p>Hi,<div><br></div><div>I am developing a tool for editing 3D models using openscenegraph. When I tried to load an .obj file, the texture is not applied. I am getting only black shade.</div><div>The model is imported using the below code. </div><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code><div><span style="color:#000"><br><br> osg</span><span style="color:#660">::</span><span style="color:#000">ref_ptr</span><span style="color:#660"><</span><span style="color:#000">osg</span><span style="color:#660">::</span><span style="color:#606">Node</span><span style="color:#660">></span><span style="color:#000"> model1</span><span style="color:#660">=</span><span style="color:#000"> osgDB</span><span style="color:#660">::</span><span style="color:#000">readNodeFile</span><span style="color:#660">(</span><span style="color:#000">path</span><span style="color:#660">.</span><span style="color:#000">toStd<wbr>String</span><span style="color:#660">());</span><span style="color:#000"><br> model1</span><span style="color:#660">-></span><span style="color:#000">setDataVariance</span><span style="color:#660">(</span><span style="color:#000">osg</span><span style="color:#660">::</span><span style="color:#606"><wbr>Object</span><span style="color:#660">::</span><span style="color:#000">DYNAMIC</span><span style="color:#660">);</span><span style="color:#000"><br></span></div></code></div><div><pre><br></pre>
<pre><br></pre></div></div></blockquote></div></blockquote></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/1f803fa5-c636-47c8-84df-1ddb8f81cd5a%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/1f803fa5-c636-47c8-84df-1ddb8f81cd5a%40googlegroups.com</a>.<br />