| ||||
|
Shockwave 3D : Director Online Forums
Questions about using 3D in Director
Hiding specific parts of the model
Posted by: Ferre (---.subnet125-160-102.speedy.telkom.net.id)
Date: June 06, 2010 09:03AM hi guys, need help again here
still with my car-modification project for college can i apply a specific name for a part in my 3D car model and then in director hide & unhide that part with a script? for exmple : the car had a wing spoiler in the model in director there's a button that when pressed can make those spoiler appear or disappear .. anyone could help me with the script pleaasee :'( Re: Hiding specific parts of the model
Posted by: Sean Wilson (118.82.181.---)
Date: June 06, 2010 02:38PM Find yourself a copy of the 3DPI so that you can examine your scene.
You can make your spoiler into a group if it's not a single model. Then you would use addToWorld/removeFromWorld or similar to show/hide it. Re: Hiding specific parts of the model
Posted by: dm_ (---.dynamic.dsl.as9105.com)
Date: June 07, 2010 06:12AM You can also make geometry that uses a specific shader disappear / reappear by adjusting the blend (opaqueness):
--enable transparency
member("3dworld").shader("wing spoiler").transparent = true
--make 100% tranparent
member("3dworld").shader("wing spoiler").blend = 0
Re: Hiding specific parts of the model
Posted by: dm_ (---.dynamic.dsl.as9105.com)
Date: June 07, 2010 07:46PM Also, you can use the visibility property of the model to prevent rendering:
member("3dworld").model("wing mirror").visibility = #none Sorry, only registered users may post in this forum.
|