Using TextureProjector

Software: Away3D 4.x

Vice, Member
Posted: 14 March 2012 01:47 PM   Total Posts: 58

Hello.

is it possible to use TextureProjector on any material? like:

“var tp:TextureProjector = new TextureProjector(new BitmapTexture(bitmapData));
material.addMethod(new ProjectiveTextureMethod(tp));”

and how to update the texture with ....updateTexture…?

I’m doing some test but it works not as expected.

Thanks!

   

Wizzy, Newbie
Posted: 01 April 2012 08:50 PM   Total Posts: 2   [ # 1 ]

Hello Vice,

you can update the Projectors texture by calling the invalidateContent() Method, like:

TextureProjector.texture.invalidateContent();

 

   

Vice, Member
Posted: 01 April 2012 09:02 PM   Total Posts: 58   [ # 2 ]

thank you Wizzy! meanwhile i’m doing some test with textureprojector and it works fine - but not on all materials/textures (normalmap etc.) or othes material values - it produces some strange gfx errors on texture. but now, with your help i will test the invalidateContent method..

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X