Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to 3d or not 3d that is the question

Status
Not open for further replies.

twistedlogic

Technical User
Jan 10, 2002
35
AU
Hi all, I am making a director cd-rom, and in part of it I wish to have a 3d model rotate twice then stop. Then, on rollover of several buttons, I wish to have parts of the model change colour (depending on the button rolled). Now for something like that, is it worth using director 3d or should I just use a series of bitmap frames, with highlighted bitmaps for the rollovers?

If your answer is 3d, then is it possible to change textures of PARTS of a 3d model (assuming the model is made of several parts).

Your help is appreciated

Joel
 
I'd suggest going 2d on this one, but heres how youd do it in 3d. Assumming you're modeling in 3DS Max, every shape or object has a name like "sphere01". So if you find out the name of the object in 3DS Maz, you can manipulate it in director. First get a texture and put it in the cast. Heres the code to put that picture on a piece of the model:

--"room" is the name of my 3d world and I want to modify
the shape "plane01"

--delete the shader and texture in case they exist
member("room").deleteshader("blotshade")
member("room").deletetexture("blot")

--create a shader
member("room").newShader("blotshade", #standard)

--create a texture from a cast member
member("room").newTexture("blot",#fromCastMember,member(28,1))

--apply the texture to the shader
member("room").shader("blotshade").texture = member("room").texture("blot")

--apply the shader to the object "plane01"
member("room").model("plane01").shader = member("Room").shader("blotshade")

There you have it. 3D may give a better effect and be more flexible, but as you can see it is a lot more work! Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top