Hi J-S,

On Sun, 2005-12-11 at 22:58 -0500, Jean-Sebastien Guay wrote:
> 
> I found out what was wrong. The object node I was using was obtained by
> instancing it. But since I was going to modify its material, I couldn't just
> work on an instance, so I used deepCloneTree() to get a clone. But I had only
> specified "Geometry" when I called the function.
> 
> I changed that to "Geometry,Material" and the object now turns transparent as 
> I
> wanted it to.

Ah!

> I don't understand why it gave the results it did before, though. Shouldn't
> cloning only the object's geometry have given shared materials between all
> objects? 

Actually, it's the other way around. The parameters given to
deepCloneTree define which types are shared, everything else is cloned.
So changing the Material on your original object couldn't have any
effect on the clone.

> Therefore all instances of the object should have been transparent...
> But instead, it seems as if the BlendChunks were added, but then they
> disappeared from the ChunkMaterials.
> 
> Is there a reason why this happened? If all the objects had turned transparent
> at the same time, I would have suspected that I needed to clone the materials
> too...

Hope it helps

        Dirk




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to