Professional Web Applications Themes

80% transparent mesh - Macromedia Director 3D

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 = ...

  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. #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

  3. #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

  4. #4

    Default Re: 80% transparent mesh

    Replace:
    nm.shaderlist = Shd

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


    "maryneedhelp" <webforumsusermacromedia.com> a écrit dans le message de
    news: dhrobh$ai6$1forums.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

  5. #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

  6. #6

    Default Re: 80% transparent mesh

    Shd.transparent = true
    VasilyR Guest

Similar Threads

  1. Help... need a transparent mesh...
    By 00vortex in forum Macromedia Director 3D
    Replies: 0
    Last Post: December 2nd, 09:09 PM
  2. Mesh tool
    By tommui@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 3
    Last Post: April 21st, 01:39 PM
  3. Mesh name of from loadmodel
    By shusei in forum Macromedia Director 3D
    Replies: 0
    Last Post: February 18th, 07:11 AM
  4. Gradiant Mesh
    By Stephen_Halley@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 15
    Last Post: February 6th, 03:57 PM
  5. Texture a mesh
    By Martijn Bos in forum Macromedia Director 3D
    Replies: 5
    Last Post: November 12th, 01:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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