Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default Re: cube surfaces

    thanks. will be trying your method.
    clive306 Guest

  5. #4

    Default Re: cube surfaces

    thanks. will be trying your method.
    clive306 Guest

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default 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

  10. #9

    Default 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

  11. #10

    Default Re: cube surfaces

    Thanks, i got the email.

    just working out how i can apply your code to mine.
    clive306 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139