Hi, sorry for the delay, it's new year in these parts of the world, so happy new year to everyone and enjoy the year of the tiger ;)
On Tue, 2010-02-09 at 17:12 +0100, Johannes Brunen wrote: > Hello Gerrit, > > I have a first version of a simple MaterialChunkOverrideGroup class. Could > you please take a look and tell me if this a feasible implementation. I have > tested in in a very simple scenarion and it seems to work. looks good, I probably would have implemented it slightly different by making the material stored as a child pointer and keep the inherited chunkoverridegroup up-to-date in changed. But this might require changes in the material so I have to check if it works without changing OpenSG. Two small other comments, you do not take the slots information into account so if the chunks are not using the default slots you will get the wrong result, e.g. if a texture chunk is setup for slot 4 without the preceding 3 in the material it will end up in slot 0 during the override. The on leave subChunk loop might be easier implemented by just calling clearChunks(). It depends a little on if you want to allow the usage of the inherited addChunk from the outside or if all chunks are expected to come through the material. kind regards gerrit ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users