Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-15 Thread 'Tom Pollok' via OpenSceneGraph Users
Hi Laurens, thank you for clarification! My problem was that im using openscenegraph in combination with osgEarth. I figured out how to fix it, so in case other osg and osgEarth users might run into the same issue. To fix the issue i had to include #include and after loading the model i had

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-15 Thread Voerman, L.
Hi Tom, Your model works with texture for me, in osg 3.4.0 as well as 3.6.5 with the following commands: sed -E "s#(f [0-9]+/[0-9]+)/0 ([0-9]+/[0-9]+)/0 ([0-9]+/[0-9]+)/0#\1 \2 \3#" "Data2.obj" > noNormals.obj osgviewer -O noRotation noNormals.obj Laurens. On Wed, Jan 15, 2020 at 12:24 PM 'Tom P

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-15 Thread 'Tom Pollok' via OpenSceneGraph Users
Hello Robert, to test it with my old osg version, i fixed the obj file such it does not contain any indices to normals anymore, as there are no normals. This indeed helped loading the model, but no textures appear at all. Should it load the textures automatically due to the first line in the obj

Re: [osg-users] Loading textured meshes (obj+mtl) leads to crash in osg 3.4.1

2020-01-14 Thread Robert Osfield
On Tue, 14 Jan 2020 at 15:26, 'Tom Pollok' via OpenSceneGraph Users < osg-users@googlegroups.com> wrote: > Thank you for the workaround. > > So as far as i understand you only add the texture coordinate and normal, > if there exists one with a index greater than 0 and less then the number of > nor