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

2020-01-15 Thread Trajce Nikolov NICK
Hi, the .mtl file is text file where the materials are defined. You can change the ambient, diffuse there with text editor On Wed, Jan 15, 2020 at 10:15 AM Voerman, L. wrote: > Hi Jiljith, > I see no problem in your code, and it works when I add it to my osgviewer. > with

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

2020-01-15 Thread Voerman, L.
Hi Jiljith, I see no problem in your code, and it works when I add it to my osgviewer. with OSG_NOTIFY_LEVEL=NOTICE it generates 2 messages: Obj Found map in options, [DIFFUSE]=0 Scaling image 'D:\laurens\Download\objDog/Dog_diffuse.jpg' from (450,450) to (512,512) I suggest you can convert your

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

2020-01-15 Thread JILJITH JOHN
Dear Tom, Thank you for the reply. I tried to load your model. It is crashing in my PC also. OSG version is 3.6.4 On Tuesday, January 14, 2020 at 3:54:05 PM UTC+5:30, Tom Pollok wrote: > > Which version of openscenegraph are you using? > > Would you mind trying my obj model with mtl and jpg

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

2020-01-14 Thread JILJITH JOHN
Hi Laurens, The answer is so great. I am getting the texture applied. But it is in the osgviewer.exe only. Problematically I tried to add the option. Its not working. osgDB::Options* opt = new osgDB::Options; opt->setOptionString("DIFFUSE=0"); osg::ref_ptr model1=

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

2020-01-14 Thread Robert Osfield
On Tuesday, 14 January 2020 14:18:21 UTC, Voerman, L. wrote: > > To answer my own question, not that I've joint the google group my replies > by e-mail to osg-users@lists.openscenegraph.org show up in the google > group as well > I wonder if googegroups is testing the from w.r.t accepting or

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

2020-01-14 Thread Voerman, L.
To answer my own question, not that I've joint the google group my replies by e-mail to osg-users@lists.openscenegraph.org show up in the google group as well Laurens. On Tue, Jan 14, 2020 at 2:45 PM Voerman, L. wrote: > Hi Robert, > It did work, a mail from me to

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

2020-01-14 Thread Voerman, L.
Hi Robert, It did work, a mail from me to osg-users@lists.openscenegraph.org on 11 november 2019 is on groups.google.com, a post on 9 january is not. Maybe this email will show up on google groups now that I've joined the group? Laurens. On Tue, Jan 14, 2020 at 2:21 PM Robert Osfield wrote: >

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

2020-01-14 Thread Robert Osfield
On Tue, 14 Jan 2020 at 13:09, L. Voerman wrote: > repost in google group; It seems like my reply to the mailing list does > not show up in google groups. > I did think I had the two working together at the end of last year but current mailing lists are appearing, will look into it.

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

2020-01-14 Thread L. Voerman
repost in google group; It seems like my reply to the mailing list does not show up in google groups. Hi 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

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

2020-01-14 Thread Voerman, L.
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

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

2020-01-14 Thread 'Tom Pollok' via OpenSceneGraph Users
Which version of openscenegraph are you using? Would you mind trying my obj model with mtl and jpg texture file. https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh

[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=