Hi Isabelle,

That seems a bit obscure... The only things I'm thinking about are:
- deactivating protions of your code until you find what's going on
- use a debugger
- Or maybe the location from where you load your image ins't the same as the 
one used in your "separate project" (= you don't load the same image).

The code of HeightField::allocate() (src/osg/Shape.cpp) reads: 
"_heights->resize(numColumns*numRows)", which doesn't hide any magic. This 
should be okay, unless you're out of RAM.
Cheers,

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

----- "Isabelle Gouwy" <[email protected]> a écrit :

> Hi,
> 
> I've tried to run this code separate from my project, and it works
> fine, so there's something wrong in the project. Is it possible that
> something in my code interferes with the heightfield creation? How can
> I know what's wrong?
> I've checked image size (heightMap->s() and heightMap->t()) and it's
> 100*100.
> 
> Thank you!
> 
> Isabelle
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=21890#21890
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to