hiya,
i was trying to build a cubemap, but when it came to load the faces, i
discovered that there is no method to load the ZNeg face! So i am able
to load just 5 faces! how to close the cube with the 6th and use it?
BTW this is my code so far:
immagine->set (Image::OSG_RGB_PF,256,256, 1, 1, 1, 0, skydataposx);
cubemap->setPosXImage(immagine) ;
//replicating the same image just to debug purposes
cubemap->setNegXImage(immagine) ;
cubemap->setPosYImage(immagine) ;
cubemap->setNegYImage(immagine) ;
cubemap->setPosZImage(immagine) ;
//MISSING ZNEG SUPPORT?!?!?
cubemap->setNegZImage(immagine) ;
diffCubeMap->addChunk(cubemap);
//IT HANGS IN THIS INSTRUCTION WHY?
geotoro->setMaterial(diffCubeMap);
this same code hangs in the material binding. geotoro is a geometryptr,
diffCubemap is a ChunkMaterialPtr and cubemap is a CubeTextureChunkPtr.
I suppose one of the former instructions makes an invalid operation,
driving me to a segmentation fault... anyone can see what's wrong?
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users