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

2020-01-14 Thread 'Tom Pollok' via OpenSceneGraph Users
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 
normals or texture coordinates.
So that means that openscenegraph now will be able to display the textured 
mesh, even if the normals are missing, right?

Am Dienstag, 14. Januar 2020 16:01:11 UTC+1 schrieb Robert Osfield:
>
> I have checked in a workaround for the invalid indices to the 3.6 branch 
> and master:
>
> 
> https://github.com/openscenegraph/OpenSceneGraph/commit/2b9c501e18b6eded7375c0e272aff401ad9793a2
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/562cb694-52e1-4e80-b64b-909a2e716e79%40googlegroups.com.


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

2020-01-14 Thread Robert Osfield
I have checked in a workaround for the invalid indices to the 3.6 branch 
and master:


https://github.com/openscenegraph/OpenSceneGraph/commit/2b9c501e18b6eded7375c0e272aff401ad9793a2

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/6c36648e-c762-4b26-b743-3e127eb061c8%40googlegroups.com.


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

2020-01-14 Thread 'Tom Pollok' via OpenSceneGraph Users


Am Dienstag, 14. Januar 2020 15:23:15 UTC+1 schrieb Robert Osfield:
>
>
> On Tuesday, 14 January 2020 13:54:37 UTC, Tom Pollok wrote:
>>
>> I used OpenMVS to create it:
>>
>> https://github.com/cdcseacave/openMVS
>>
>
> The model isn't a valid .obj file, I am not familiar with OpenMVS and as I 
> have my own open source projects to manage I'll leave it to others to fix 
> OpenMVS.  I would suggest having a look at the .obj export yourself or 
> creating an Issue for it, but a quick look at the github page makes me 
> wonder if the Issue tracker is being largely ignored or misused at there 
> are 95 items in there.
>
 

>  
>
>> I can also view the model using MeshLab or other tools.
>>
>
> These other tools must have added a catch for this type of invalid model.
>  
>
>>
>> Is it possible to fix the invalid references in openscenegraph?
>>
>
> I am currently modifying the OSG's obj loader to catch the invalid data as 
> crashing is as much as a bug as the dodgy data.  I expect to get a fix 
> checked in this afternoon so it'll be part of the OSG-3.6 branch and the up 
> coming 3.6.5 release.
>

> Robert.
>  
>

Thank you Robert for your help and thank you for all your efforts for 
openscenegraph!
Best, Tom.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/8db7521b-2941-4624-9c75-b71e20ca1453%40googlegroups.com.


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

2020-01-14 Thread Robert Osfield

On Tuesday, 14 January 2020 13:54:37 UTC, Tom Pollok wrote:
>
> I used OpenMVS to create it:
>
> https://github.com/cdcseacave/openMVS
>

The model isn't a valid .obj file, I am not familiar with OpenMVS and as I 
have my own open source projects to manage I'll leave it to others to fix 
OpenMVS.  I would suggest having a look at the .obj export yourself or 
creating an Issue for it, but a quick look at the github page makes me 
wonder if the Issue tracker is being largely ignored or misused at there 
are 95 items in there.
 

> I can also view the model using MeshLab or other tools.
>

These other tools must have added a catch for this type of invalid model.
 

>
> Is it possible to fix the invalid references in openscenegraph?
>

I am currently modifying the OSG's obj loader to catch the invalid data as 
crashing is as much as a bug as the dodgy data.  I expect to get a fix 
checked in this afternoon so it'll be part of the OSG-3.6 branch and the up 
coming 3.6.5 release.

Robert.
 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/add84e69-8221-4df2-82a0-fe8c1e174d6b%40googlegroups.com.


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

2020-01-14 Thread 'Tom Pollok' via OpenSceneGraph Users
Hello Laurens,

thank you for your investigation!

Best,
Tom

Am Dienstag, 14. Januar 2020 14:10:27 UTC+1 schrieb L. Voerman:
>
> repost in google group; It seems like my reply to the mailing list does 
> not show up in google groups.
>
> Hi Tom,
> I think your obj file is invalid, as the faces all reference normal "0" 
> and 
> 1> no normals are provided
> 2> normal indices start at 1 (according to wikipedia 
> )
>
> if I reduce your obj file to just the first face (removing material and 
> all but vertex/texcoord 0-1-2) ( attached )
> I get the same crash with
> osgconv DataFace1.obj
> removing the /0 (normal ref) three times fixes the problem - same works 
> for the large file (with textures working)
> Laurens.
>
> On Monday, January 13, 2020 at 12:12:48 PM UTC+1, Tom Pollok wrote:
>>
>> I added a zip file with the mesh. It happens when loading that obj file.
>>
>> https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh
>>
>> Pw: osg
>>
>> I have to check for the stack trace again.
>>
>> osgDB::Options* opt = new 
>> osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr 
>> node = osgDB::readNodeFile(pathToObjFile, opt);
>>
>> Im using two windows machines with intel processors (64bit). 
>> OSG was built by ourselves. 
>> One has an integrated intel graphics unit and one with a Nvidia 2080Ti.
>>
>>
>> Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:
>>>
>>> On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:

 When loading a textured mesh from an obj file with mtl + texture file, 
 openscenegraph crashes.

 I use openscenegraph 3.4.1. Does anybody know if that issue has been 
 fixed in newer versions?

>>>
>>> I don;t recall reports of crashes associated with .obj.
>>>
>>> Could you provide a link to the model that is causing the problem?
>>>
>>> Could you provide a stack trace?
>>>
>>> What platform are you working on?  Did you build the OSG yourself?  
>>>
>>> What hardware are you working on?
>>>
>>> Cheers,
>>> Robert,
>>>
>>
>>
>> Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:
>>>
>>> On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:

 When loading a textured mesh from an obj file with mtl + texture file, 
 openscenegraph crashes.

 I use openscenegraph 3.4.1. Does anybody know if that issue has been 
 fixed in newer versions?

>>>
>>> I don;t recall reports of crashes associated with .obj.
>>>
>>> Could you provide a link to the model that is causing the problem?
>>>
>>> Could you provide a stack trace?
>>>
>>> What platform are you working on?  Did you build the OSG yourself?  
>>>
>>> What hardware are you working on?
>>>
>>> Cheers,
>>> Robert,
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/35f1fdb6-f7a2-410b-afbf-b2911388438f%40googlegroups.com.


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

2020-01-14 Thread 'Tom Pollok' via OpenSceneGraph Users
I used OpenMVS to create it:

https://github.com/cdcseacave/openMVS

I can also view the model using MeshLab or other tools.

Is it possible to fix the invalid references in openscenegraph?


Am Dienstag, 14. Januar 2020 14:36:29 UTC+1 schrieb Robert Osfield:
>
> I have looked at the model with the 3.6 branch and get the crash and 
> concur with Luarens - the model is broken, it has normal indices assigned 
> to the faces but no normal array.  The crash occurs because the OSG's obj 
> plugin is assuming that if normal indices are provided they are valid 
> normal indices.
>
> Where did this model come from?
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/f766688a-6560-4b0a-82a9-db3d1dbb4fc8%40googlegroups.com.


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

2020-01-14 Thread Robert Osfield
I have looked at the model with the 3.6 branch and get the crash and concur 
with Luarens - the model is broken, it has normal indices assigned to the 
faces but no normal array.  The crash occurs because the OSG's obj plugin 
is assuming that if normal indices are provided they are valid normal 
indices.

Where did this model come from?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/3ad360a9-7e3d-462c-9e6b-b21d344ccdb7%40googlegroups.com.


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

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 Tom,
I think your obj file is invalid, as the faces all reference normal "0" and 
1> no normals are provided
2> normal indices start at 1 (according to wikipedia 
)

if I reduce your obj file to just the first face (removing material and all 
but vertex/texcoord 0-1-2) ( attached )
I get the same crash with
osgconv DataFace1.obj
removing the /0 (normal ref) three times fixes the problem - same works for 
the large file (with textures working)
Laurens.

On Monday, January 13, 2020 at 12:12:48 PM UTC+1, Tom Pollok wrote:
>
> I added a zip file with the mesh. It happens when loading that obj file.
>
> https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh
>
> Pw: osg
>
> I have to check for the stack trace again.
>
> osgDB::Options* opt = new 
> osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr 
> node = osgDB::readNodeFile(pathToObjFile, opt);
>
> Im using two windows machines with intel processors (64bit). 
> OSG was built by ourselves. 
> One has an integrated intel graphics unit and one with a Nvidia 2080Ti.
>
>
> Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:
>>
>> On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:
>>>
>>> When loading a textured mesh from an obj file with mtl + texture file, 
>>> openscenegraph crashes.
>>>
>>> I use openscenegraph 3.4.1. Does anybody know if that issue has been 
>>> fixed in newer versions?
>>>
>>
>> I don;t recall reports of crashes associated with .obj.
>>
>> Could you provide a link to the model that is causing the problem?
>>
>> Could you provide a stack trace?
>>
>> What platform are you working on?  Did you build the OSG yourself?  
>>
>> What hardware are you working on?
>>
>> Cheers,
>> Robert,
>>
>
>
> Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:
>>
>> On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:
>>>
>>> When loading a textured mesh from an obj file with mtl + texture file, 
>>> openscenegraph crashes.
>>>
>>> I use openscenegraph 3.4.1. Does anybody know if that issue has been 
>>> fixed in newer versions?
>>>
>>
>> I don;t recall reports of crashes associated with .obj.
>>
>> Could you provide a link to the model that is causing the problem?
>>
>> Could you provide a stack trace?
>>
>> What platform are you working on?  Did you build the OSG yourself?  
>>
>> What hardware are you working on?
>>
>> Cheers,
>> Robert,
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/3407e52c-e310-4f8a-ac9c-b04b5247789e%40googlegroups.com.


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

2020-01-13 Thread 'Tom Pollok' via OpenSceneGraph Users
I added a zip file with the mesh. It happens when loading that obj file.

https://owncloud.iosb.fraunhofer.de/owncloud/s/dc8dkbXrQz3gTuh

Pw: osg

I have to check for the stack trace again.

osgDB::Options* opt = new 
osgDB::Options;opt->setOptionString("noRotation");osg::ref_ptr node 
= osgDB::readNodeFile(pathToObjFile, opt);

Im using two windows machines with intel processors (64bit). 
OSG was built by ourselves. 
One has an integrated intel graphics unit and one with a Nvidia 2080Ti.


Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:
>
> On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:
>>
>> When loading a textured mesh from an obj file with mtl + texture file, 
>> openscenegraph crashes.
>>
>> I use openscenegraph 3.4.1. Does anybody know if that issue has been 
>> fixed in newer versions?
>>
>
> I don;t recall reports of crashes associated with .obj.
>
> Could you provide a link to the model that is causing the problem?
>
> Could you provide a stack trace?
>
> What platform are you working on?  Did you build the OSG yourself?  
>
> What hardware are you working on?
>
> Cheers,
> Robert,
>


Am Freitag, 10. Januar 2020 19:45:26 UTC+1 schrieb Robert Osfield:
>
> On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:
>>
>> When loading a textured mesh from an obj file with mtl + texture file, 
>> openscenegraph crashes.
>>
>> I use openscenegraph 3.4.1. Does anybody know if that issue has been 
>> fixed in newer versions?
>>
>
> I don;t recall reports of crashes associated with .obj.
>
> Could you provide a link to the model that is causing the problem?
>
> Could you provide a stack trace?
>
> What platform are you working on?  Did you build the OSG yourself?  
>
> What hardware are you working on?
>
> Cheers,
> Robert,
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/4464ef67-e303-45cf-adce-c68472d0d558%40googlegroups.com.


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

2020-01-10 Thread Robert Osfield
On Friday, 10 January 2020 18:01:57 UTC, Tom Pollok wrote:
>
> When loading a textured mesh from an obj file with mtl + texture file, 
> openscenegraph crashes.
>
> I use openscenegraph 3.4.1. Does anybody know if that issue has been fixed 
> in newer versions?
>

I don;t recall reports of crashes associated with .obj.

Could you provide a link to the model that is causing the problem?

Could you provide a stack trace?

What platform are you working on?  Did you build the OSG yourself?  

What hardware are you working on?

Cheers,
Robert,

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/3cd85069-be12-48b7-96d6-679348a35f50%40googlegroups.com.