Accessing child objects and changing their material properties ?
by Juggernaut · in Torque 3D Beginner · 01/28/2013 (6:25 am) · 0 replies
Hello,
Suppose I have imported a skinned ( rigged ) 3D model within my level which is composed of 20-25 smaller 3D objects (meshes). I want to get access to each of those 20-25 smaller 3D objects ( child objects ) through script and change their material properties by applying custom textures and custom shaders at run-time to them. Is this possible in torque3D ? How do I do this ? Any tutorial on this ?
Can I apply custom shaders and lights to torque particles through script ?
Am I limited to 8 lights in my scene ? If not then how many lights can I display simultaneously in my scene all visible at the same time within the frustum ?
Thanks,
Suppose I have imported a skinned ( rigged ) 3D model within my level which is composed of 20-25 smaller 3D objects (meshes). I want to get access to each of those 20-25 smaller 3D objects ( child objects ) through script and change their material properties by applying custom textures and custom shaders at run-time to them. Is this possible in torque3D ? How do I do this ? Any tutorial on this ?
Can I apply custom shaders and lights to torque particles through script ?
Am I limited to 8 lights in my scene ? If not then how many lights can I display simultaneously in my scene all visible at the same time within the frustum ?
Thanks,