Ask a Question related to Macromedia Director 3D, Design and Development.
-
Jez C #1
Moving a texture layer around a plane
Hi
I've got 2 textures on a plane,
1) the base texture repeated all over the plane,
2) a bitmap with a circular alpha channel
i want to be able to move the circle around the plane:
so this all works fine generating the circle:
member("Scene2").shader("planeShader").TEXTURELIST[2] =
MEMBER("SCENE2").texture("Circle1Texture")
member("Scene2").shader("planeShader").blendFuncti onList[2] = #blend
member("Scene2").shader("planeShader").blendSource List[2] = #alpha
member("Scene2").shader("planeShader").textureRepe atlIST[2] = FALSE
member("Scene2").shader("planeShader").textureTran sformList[2].scale =
vector(0.6, 0.6, 1)
member("Scene2").shader("planeShader").TextureTran sformList[2].position =
vector( 0.00, 0.00, 0.00 )
but when i try to move it using the same line with any numbers in it
member("Scene2").shader("planeShader").TextureTran sformList[2].position =
vector( 50.00, 50.00, 0.00 )
the circle just disappears off the whole plane?
The plane is 2000x2000 so a movement of 50 shouldn't move it off the plane.
(I've tried a whole range of numbers from 1 to 1000)
any ideas anyone? - can anyone see why this isn't working?
cheers
Jez.
Jez C Guest
-
dragging a small texture around a HUGE plane
I'm trying to get a small texture to be able to be dragged around a huge plane by the user. I can move the texture using this line:... -
Plane only shows texture on one side
Hi, I've created a plane with lingo and rotated it so it's on end. The plane has a texture mapped to it but the texture only shows on one side, the... -
Plane Texture Problem
Hi. My problem is simple: i work with a PLANE in 3DStudio Max, with 2-Sided Shader Texture. In the 3DSMax render looks ok in both sides, but... -
A portion of a texture/plane transparent...?
I?m wondering if there?s a way to define an area of a texture or plane as transparent? Yes I know that using an image with an alpha channel can do... -
just trying to make my shader's texture not squish to fit the plane..
I thought I already knew how to do this, but I can't seem to get it to work.. I have 3d planes and I'd like to display a texture on them, made from... -
necromanthus #2
Re: Moving a texture layer around a plane
[q]Originally posted by: Jez C
but when i try to move it using the same line with any numbers in it
member("Scene2").shader("planeShader").TextureTran sformList[2].position =
vector( 50.00, 50.00, 0.00 )
the circle just disappears off the whole plane?
The plane is 2000x2000 so a movement of 50 shouldn't move it off the plane.
(I've tried a whole range of numbers from 1 to 1000)[/q]
The translation vector has to be between vector(0,0,0) and
vector(1,1,0).
So ... in your case:
member("Scene2").shader("planeShader").TextureTran sformList[2].position =
vector( 50.0000/2000, 50.0000/2000, 0.00 )
That's all.
necromanthus Guest
-
Jez C #3
Re: Moving a texture layer around a plane
many thanks necromanthus,
that sorted it.
Jez C Guest



Reply With Quote

