[osg-users] Imported .obj file not showing textures.
Voerman, L.
l.voerman at rug.nl
Tue Jan 14 04:16:12 PST 2020
H Jiljith,
The material has both an ambient and a diffuse texture (both refer to the
same file)
while this can be made to work with a shader, using the fixed function
pipeline means you'll have to choose one:
osgviewer -O DIFFUSE=0 12228_Dog_v1_L2.obj
Laurens.
On Tue, Jan 14, 2020 at 10:53 AM JILJITH JOHN <jiljithjohncse at gmail.com>
wrote:
> [image: Capture.PNG]
>
> [image: Capture.PNG]
> Hi,
>
> 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.
> The model is imported using the below code.
>
>
> osg::ref_ptr<osg::Node> model1= osgDB::readNodeFile(path.toStdString());
> model1->setDataVariance(osg::Object::DYNAMIC);
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenSceneGraph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osg-users+unsubscribe at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/osg-users/2877ba6a-106a-4833-a726-8c318648a466%40googlegroups.com
> <https://groups.google.com/d/msgid/osg-users/2877ba6a-106a-4833-a726-8c318648a466%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200114/ae921022/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.PNG
Type: image/png
Size: 4668 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200114/ae921022/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.PNG
Type: image/png
Size: 3235 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200114/ae921022/attachment-0001.png>
More information about the osg-users
mailing list