Hi Matthias, if you want to share all identical textures you can do this:
GraphOpSeq graphop;
SharePtrGraphOp *share = new SharePtrGraphOp;
share->setIncludes("TextureChunk");
graphop.addGraphOp(share);
graphop.run(root_node);
Andreas
Hi,On Mon, 23 Aug 2004 09:13:36 +0000, Matthias Stiller <[EMAIL PROTECTED]> wrote:could you share the texture chunks ? This should save lots of texture memory ( I quess you are working with noise textures ?) The shader itself shouldn'tbe too long I expect.well, that's what came into my mind, too, but I'm not sure how to do that with CGChunks. Normally, you'd take a ChunkMaterial and put the shaders and the textures afterwards into it. But if you wanted to split them, would two ChunkMaterials with the TextureChunk and CGChunk each work fine, too? I mean, every shader needs the textures to be assigned properly, so the state sorting etc. has to take care about that - if possible at all...But thanks for the hint - we'll give it a try for sure! bye, Matthias ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
