Ask a Question related to Macromedia Director 3D, Design and Development.
-
maryneedhelp #1
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
-
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... -
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... -
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... -
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... -
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... -
Karl Sigiscar #2
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
-
maryneedhelp #3
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
-
Karl Sigiscar #4
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
-
maryneedhelp #5
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
-



Reply With Quote

