Hi Dirk,

Dirk Reiners schrieb:

        Hi Oliver,

On Thu, 2005-08-11 at 00:44 +0200, Oliver Kutter wrote:
One more, thanx for all the help, it was great.

No, one more thing: I tried to remove and re-create the TextureChunks from the ChunkMaterial and that works pretty good. The only thing is, after adding and removing the Chunks a few times, I get a warning. And this warning does not please me at all:

WARNING: ChunkMaterial::subChunk(0x8b5fbb0) has no chunk FCPtr 0x0xbfffecb0:TextureChunkPtr(0x0x9bee260) with slot -2

It increases the slot number and my order becomes disorder. Is there another way, to remove a TextureChunk from a ChunkMaterial. It is very important for me the keep the order in which I put the Textures on the Material?

Ah, ok. Yes, if you have multiple textures it is important to keep the
order consistent. The easiest around that is to explicitly specify which
slot (i.e. texture unit) you want the TextureChunk to use, i.e. use
addChunk(ptr, slot); to assign textures to specific slots, otherwise it
will just increase them as you observed. That should hopefully take care
of the ordering problem you have.
Yes, it is done, it works and I have no problems. :-)
But I solved it in another way, because none of the solution did work really good for me. Now I call only once addRefCP() for all the images, and the images are not deleted anymore.
Thank you for your time. I write, if other problems came up.

Oliver


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to