[osg-users] Re: Imported .obj file not showing textures.

2020-01-15 Thread JILJITH JOHN
lowing to load it, but it crashes on my system with > openscenegraph_3.4.1. > Im curious if it works on your system. > > osgDB::Options* opt = new > osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr > node = osgDB::readNodeFile(pathToObjFile, opt);

[osg-users] Re: Imported .obj file not showing textures.

2020-01-14 Thread JILJITH JOHN
ent 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 Tuesday, January 14, 2020 at 10:52:54 AM

[osg-users] Imported .obj file not showing textures.

2020-01-14 Thread JILJITH JOHN
[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 model1=