THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/03/2004 at 06:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;
---------
I have a problem with MaterialData.
What I do:
- Go in material manager, create a new material ( in this case my own one )
- Create an object and attach the material to it. If you move the object in the editor, the Draw function of the material is called for every movement...ok so far
- Create a second object, attach the material to it ( not needs to be the same one, I even tried it with two materials ). After attaching it by mouse drop, dont do anything, keep the object selected, and try to move it within the view...then the Draw function is called for both objects, the one that you move, and the first one.
- Now click within the object manager, so that NONE of both objects is selected. Then select one of the objects and move it in the editor...et voila, the Draw function is only called for the object you are moving.
Is there a reason for the different behaviour of 3) and 4)??? I do alot of stuff within the Draw function, the behaviour of 3), its not too dramatic with only 2 objects, but it I try it with 50 objects, Draw is called for ALL the 50 objects, leading to a real sluggish performance. Again, if I delselect all objects, and reselect one object again, then the behaviour is ok, only directly after attaching the material its not ok.....