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's a runtime
bug and would like to know how to fix it. Please find some pictures
Not really a bug, I'd say you're running out of memory.
- try to reduce the image sizes.
- a lot of materials reference the same image. I don't think the obj loader caches this
which means you're loading that image over and over again. Use osgDB::Options to specify
caching of images.
Hope this helps,
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org