<div dir="ltr"><p class="separator" style="text-align: center; clear: both;"><img src="cid:159e47d9-d2f5-4c78-92bc-b9cd196e7c10" alt="Capture.PNG" width="320" height="244" style="margin-left: 1em; margin-right: 1em;"></p><p class="separator" style="text-align: center; clear: both;"><img src="cid:3694d1d9-cee0-4545-ba79-8973be69acdf" alt="Capture.PNG" width="320" height="112" style="margin-left: 1em; margin-right: 1em;"></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 class="prettyprint" style="background-color: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: solid; border-width: 1px; overflow-wrap: break-word;"><code class="prettyprint"><div class="subprettyprint"><span style="color: #000;" class="styled-by-prettify"><br><br> osg</span><span style="color: #660;" class="styled-by-prettify">::</span><span style="color: #000;" class="styled-by-prettify">ref_ptr</span><span style="color: #660;" class="styled-by-prettify"><</span><span style="color: #000;" class="styled-by-prettify">osg</span><span style="color: #660;" class="styled-by-prettify">::</span><span style="color: #606;" class="styled-by-prettify">Node</span><span style="color: #660;" class="styled-by-prettify">></span><span style="color: #000;" class="styled-by-prettify"> model1</span><span style="color: #660;" class="styled-by-prettify">=</span><span style="color: #000;" class="styled-by-prettify"> osgDB</span><span style="color: #660;" class="styled-by-prettify">::</span><span style="color: #000;" class="styled-by-prettify">readNodeFile</span><span style="color: #660;" class="styled-by-prettify">(</span><span style="color: #000;" class="styled-by-prettify">path</span><span style="color: #660;" class="styled-by-prettify">.</span><span style="color: #000;" class="styled-by-prettify">toStdString</span><span style="color: #660;" class="styled-by-prettify">());</span><span style="color: #000;" class="styled-by-prettify"><br> model1</span><span style="color: #660;" class="styled-by-prettify">-></span><span style="color: #000;" class="styled-by-prettify">setDataVariance</span><span style="color: #660;" class="styled-by-prettify">(</span><span style="color: #000;" class="styled-by-prettify">osg</span><span style="color: #660;" class="styled-by-prettify">::</span><span style="color: #606;" class="styled-by-prettify">Object</span><span style="color: #660;" class="styled-by-prettify">::</span><span style="color: #000;" class="styled-by-prettify">DYNAMIC</span><span style="color: #660;" class="styled-by-prettify">);</span><span style="color: #000;" class="styled-by-prettify"><br></span></div></code></div><div><pre><br></pre>
<pre><br></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/2877ba6a-106a-4833-a726-8c318648a466%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/2877ba6a-106a-4833-a726-8c318648a466%40googlegroups.com</a>.<br />