[osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-22 Thread tien dat
Dear all, I have a model in obj format and want to load the model into OpenSceneGraph. When there is no texture, OpenSceneGraph can load the model fine. But when I use the model with texture, OpenSceneGraph allocates a huge amount of memory and crashes. I think it's a runtime bug and would like to

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-23 Thread Ulrich Hertlein
Hi, On 22/10/09 9:40 PM, tien dat wrote: I have a model in obj format and want to load the model into OpenSceneGraph. When there is no texture, OpenSceneGraph can load the model fine. But when I use the model with texture, OpenSceneGraph allocates a huge amount of memory and crashes. I think it'

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-23 Thread Ulrich Hertlein
On 23/10/09 10:58 AM, Ulrich Hertlein wrote: On 22/10/09 9:40 PM, tien dat wrote: I have a model in obj format and want to load the model into OpenSceneGraph. When there is no texture, OpenSceneGraph can load the model fine. But when I use the model with texture, OpenSceneGraph allocates a huge

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-23 Thread tien dat
Dear Ulrich, Could you tell me more about how to specify that option? Can I specify it while using osgviewer.exe or I have to rebuild osgviewer.exe with the option? Thanks, Dat On Fri, Oct 23, 2009 at 5:02 AM, Ulrich Hertlein wrote: > On 23/10/09 10:58 AM, Ulrich Hertlein wrote: >> >> On 22/10/09

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-26 Thread Ulrich Hertlein
Hi Dat, On 23/10/09 5:26 PM, tien dat wrote: Dear Ulrich, Could you tell me more about how to specify that option? Can I specify it while using osgviewer.exe or I have to rebuild osgviewer.exe with the option? Unfortunately you can't (at the moment) set this option externally or internally, be

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-26 Thread Nguyen Tien Dat
Dear Ulrich, Sorry for my stupidity, but I don't know anything about modifying models. The model is actually created in VRML, and I use 3DS Max to export it to obj format. So if you can, please tell me a bit more about how to optimize the model: - How can you remove duplicate materials (if you can

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-26 Thread Nguyen Tien Dat
Hi, So I have read about .mtl and .obj files and understood what you meant. I created a program to optimize the model (http://cs.uiowa.edu/~tinguyen/OptimizeMtlFiles.rar) But the new one that I created doesn't look the same as the old one when I don't use texture. Please click this link to download

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-27 Thread Ulrich Hertlein
Hello Dat, On 27/10/09 2:05 AM, Nguyen Tien Dat wrote: So I have read about .mtl and .obj files and understood what you meant. I created a program to optimize the model (http://cs.uiowa.edu/~tinguyen/OptimizeMtlFiles.rar) But the new one that I created doesn't look the same as the old one when I

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-27 Thread Erik den Dekker
Hi Dat, Maybe I am not seeing something obvious here, but why don't you use the OpenSceneGraph VRML loader instead of taking a detour via 3DS Max and convert to .obj format? Erik den Dekker On 26-10-2009, at 16:10, Nguyen Tien Dat wrote: Dear Ulrich, Sorry for my stupidity, but I don

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-27 Thread Nguyen Tien Dat
Dear Ulrich and Erik, Yeah, I can load the model with texture now. Thanks Ulrich for your help. I really appreciate that. For Erik's question, I must say that I did try the VRML loader, but it didn't compile. I had another thread to ask for the issue (you can search in osg mails for "VRML plug in")

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-28 Thread Ulrich Hertlein
Hi Dat, On 27/10/09 11:53 AM, Ulrich Hertlein wrote: On 27/10/09 2:05 AM, Nguyen Tien Dat wrote: So I have read about .mtl and .obj files and understood what you meant. I created a program to optimize the model (http://cs.uiowa.edu/~tinguyen/OptimizeMtlFiles.rar) Oh and one more thing: you ha

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-28 Thread Nguyen Tien Dat
My optimizer is only check for identical textures - i.e. materials that load the same image. I didn't check for materials without texture. Do you need to compare all properties of each material in order to find duplicate? Thanks, Dat On Wed, Oct 28, 2009 at 2:14 AM, Ulrich Hertlein wrote: > Hi Da

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-29 Thread Ulrich Hertlein
On 29/10/09 12:27 AM, Nguyen Tien Dat wrote: texture. Do you need to compare all properties of each material in order to find duplicate? Everything except the name ;-D Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http:

Re: [osg-users] runtime bug when loading obj model in OpenSceneGraph 2.8.2

2009-10-29 Thread Nguyen Tien Dat
Thanks. I'll do that. Dat On Thu, Oct 29, 2009 at 2:58 AM, Ulrich Hertlein wrote: > On 29/10/09 12:27 AM, Nguyen Tien Dat wrote: >> >> texture. Do you need to compare all properties of each material in >> order to find duplicate? > > Everything except the name ;-D > Cheers, > /ulrich > __