80% transparent mesh

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

  1. #1

    Default 80% transparent mesh

    Hello,

    I user lingo to create a mesh. Is it possible to make it 80% transparent?

    The code I used to create the mesh is:

    nm = member("Shapes").newMesh("pyramid",6 , 5, 0, 3)
    nm.vertexList = [ vector(0,0,0), vector(40,0,0), vector(40,0,40),
    vector(0,0,40), vector(20,50,20) ]
    nm.colorList = [ rgb(255,0,0), rgb(0,255,0), rgb(0,0,255) ]
    nm.face[1].vertices = [ 4,1,2 ]
    nm.face[2].vertices = [ 4,2,3 ]
    nm.face[3].vertices = [ 5,2,1 ]
    nm.face[4].vertices = [ 5,3,2 ]
    nm.face[5].vertices = [ 5,4,3 ]
    nm.face[6].vertices = [ 5,1,4 ]
    nm.face[1].colors = [3,2,3]
    nm.face[2].colors = [3,3,2]
    nm.face[3].colors = [1,3,2]
    nm.face[4].colors = [1,2,3]
    nm.face[5].colors = [1,3,2]
    nm.face[6].colors = [1,2,3]
    nm.generateNormals(#flat)
    nm.build()
    nm = member("Shapes").newModel("Pyramid1", nm)

    Thanks in advanced


    maryneedhelp Guest

  2. Similar Questions and Discussions

    1. Help... need a transparent mesh...
      I need to create a transparent mesh in order to view other meshes inside. I am not using primitives because the shape(s) to be created are...
    2. Mesh name of from loadmodel
      Hi , advance I need advice for lingo 3d programing I made bipet animation model by 3DSMAX. I made some box-polygons link to bipet bones. Cos' I...
    3. Gradiant Mesh
      Using Illustrator 9 I have created a simple cone shape, using the gradient mesh icon, I have filled the area with two spot colours, saving as an...
    4. Texture a mesh
      I'm a beginner in 3d Lingo and i heve created a mesh. Now I want to attach a texture to the faces of the mesh, but I don't know how to do it. Can...
    5. mesh problem
      Hi, I have a simple mesh (2 faces => a sqaure in fact) This sqaure is my floor (z = 0) I have a character model on this floor but he look very...
  3. #2

    Default Re: 80% transparent mesh

    Hi,

    Create a new shader, assign the shader to the model and set its blend
    property to 80.

    Karl.



    Karl Sigiscar Guest

  4. #3

    Default Re: 80% transparent mesh

    Hello Karl,

    I added the following code. However, it did not set the transpent to 80%
    Shd = member("Shapes").newshader("myShader", #standard)
    Shd.diffuse = rgb(255,0,0)
    Shd.texture = void
    nm.shaderlist = Shd
    member("Shapes").model("Pyramid1").shader.blend = 80

    Could you please help me out?

    Thanks

    maryneedhelp Guest

  5. #4

    Default Re: 80% transparent mesh

    Replace:
    nm.shaderlist = Shd

    With:
    member("Shapes").model("Pyramid1").shader = Shd


    "maryneedhelp" <webforumsuser@macromedia.com> a écrit dans le message de
    news: dhrobh$ai6$1@forums.macromedia.com...
    > Hello Karl,
    >
    > I added the following code. However, it did not set the transpent to 80%
    > Shd = member("Shapes").newshader("myShader", #standard)
    > Shd.diffuse = rgb(255,0,0)
    > Shd.texture = void
    > nm.shaderlist = Shd
    > member("Shapes").model("Pyramid1").shader.blend = 80
    >
    > Could you please help me out?
    >
    > Thanks
    >

    Karl Sigiscar Guest

  6. #5

    Default Re: 80% transparent mesh

    Replace:
    nm.shaderlist = Shd

    With:
    member("Shapes").model("Pyramid1").shader = Shd

    does not help me at all, any other suggestions?

    Thanks for hleping
    maryneedhelp Guest

  7. #6

    Default Re: 80% transparent mesh

    Shd.transparent = true
    VasilyR 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