Ask a Question related to Macromedia Director 3D, Design and Development.
-
clive306 #1
cube surfaces
I would like to use images (jpeg) on each surface of a rotating cude.... Could
anyone help me???
not sure where to start. i have coded a rotating cube, but the next step is to
use images on each surface.
clive306 Guest
-
Smooth surfaces from lightwave
This has probably been asked a thousand times and probably very basic but I thought I'd give it a whirl, we currently making models of packaging in... -
3D Defienitions and creating models/surfaces in 3d lingo
Hi everybody. I am creating a 3d scene totally in LINGO but im a bit stupid with 3d Definitions... I'll explain. I know that I must create a mesh... -
Cube
Hi, I have just installed V 8.0 on XP and I have discovered some interesting functions related to cubes and crosstabs. Navigating on the site... -
How to show hidden surfaces using 3D effect
The Illustrator CS help file states: "To display the object's hidden backfaces, select Draw Hidden Surfaces. The backfaces are visible if the... -
Making Surfaces Wet
Jack, I'm not sure there is any standard way to do things in Photoshop...it seems rather that there are typically at least 3 or 4 ways to achieve... -
Andrew Morton #2
Re: cube surfaces
The pictures for this one are in members 3...8- adjust as required in the
..newtexture line. You won't need the deleteWhatever lines until you've made the
picture cube once:-
member("3d").deletemodel("boxa")
member("3d").deletemodelresource("DefaultModel")
member("3d").deletemodelresource("box1")
member("3d").newmodelresource("box1",#box)
txtrs=[]
repeat with i=1 to 6
member("3d").deletetexture("texture"&i)
member("3d").newtexture("texture"&i, #fromcastmember,member(i+2))
member("3d").deleteshader("shad"&i)
member("3d").newshader("shad"&i,#standard)
member("3d").shader("shad"&i).texture=member(1).te xture("texture"&i)
add txtrs, member("3d").shader("shad"&i)
end repeat
member("3d").newmodel("boxa", member("3d").modelresource("box1"))
member("3d").model("boxa").shaderList=txtrs
Someone else may have a tidier way of doing it.
Andrew
Andrew Morton Guest
-
-
-
clive306 #5
Re: cube surfaces
this is what i currently have -
global Scene
On createbox boxName, L,W,H, boxColor
If check3Dready(scene) then
If scene.model(boxname) = void then
Res = Scene.newmodelresource(boxName & "res", #box)
Res.length = L
Res.width = W
Res.height = H
Obj = scene.newmodel(boxName, res)
Shd = scene.newshader(boxName & "shd", #standard)
Shd.diffuse = boxColor
Shd.texture = void
Obj.shaderlist = shd
Return scene.model(boxname)
Else
Return -3002
End if
Else
Return -3001
End if
End
would this be where i add your bit of script
clive306 Guest
-
clive306 #6
Re: cube surfaces
Thanks Andrew, but i was unable to get this working. I'm a beginner with 3D, so maybe i'm looking at acheiving what i want in the wrong way.
Any more ideas??
clive306 Guest
-
Andrew Morton #7
Re: cube surfaces
The important part is member("3d").model("boxa").shaderList=txtrs -
notice how I built six shaders and assigned each of the six members to
the texture of each shader, then in one go I assign the shaderList to
the (misguidingly named txtrs in this case) list of shaders.
Andrew
Andrew Morton Guest
-
clive306 #8
Re: cube surfaces
Thanks Andrew... I'm trying it all again now. If you have a file you can share with me (or if anyone has a file they could share with me; email - [email]clive306@hotmail.com[/email])
Thanks again :)
clive306 Guest
-
Andrew Morton #9
Re: cube surfaces
I've sent you an example.
Note that it's generally a bad idea to write your email address in
machine-readable form in a newsgroup because of things like the swen
worm.
See [url]http://members.aol.com/emailfaq/mungfaq.html[/url] for suggestions.
Andrew
Andrew Morton Guest
-
clive306 #10
Re: cube surfaces
Thanks, i got the email.
just working out how i can apply your code to mine.
clive306 Guest



Reply With Quote

