TextureProjector

Software: Away3D 4.x

arius, Newbie
Posted: 01 February 2012 09:04 PM   Total Posts: 8

Hi All!

I try to use the TextureProjector class but I don’t see any ( projections ) results on the scene, is any body know how to use this class.

As I know must see on the scene the simple texture projection like this:

 

   

arius, Newbie
Posted: 01 February 2012 09:15 PM   Total Posts: 8   [ # 1 ]

Sory guy’s I think I found the problem, I need to add the additinal ( ProjectiveTextureMethod ) method to the material on which I need the texture projection

 

   

John Brookes, Moderator
Posted: 01 February 2012 10:51 PM   Total Posts: 732   [ # 2 ]

Yeah.
Only played with it a little but basically


var tp:TextureProjector = new TextureProjector(yourBitmapData);
//you can postion same way as objects
//eg
tp.y=700
tp.rotationY=90;

yourMaterial.addMethod(new ProjectiveTextureMethod(tp));


But found it stretches the edge UVs(see pic), not sure if there was some setting.

So..
Made the bitmap used for the projection have a white border so when its mulitplied onto the objects material it doesn’t repeat/stretch.(inset of pic)

Another thing was the material is inverted.
so set
tp.aspectRatio = tp.aspectRatio*-1

If you have any better luck I’d like to know how smile

 

   

arius, Newbie
Posted: 04 February 2012 07:10 PM   Total Posts: 8   [ # 3 ]

Hi Guys!

Some my tests of the ProjectiveTextureMethod

 

   

inSertCodE, Sr. Member
Posted: 05 February 2012 01:39 AM   Total Posts: 105   [ # 4 ]

Hmmm… I haven’t tried it yet but from what I can see it looks like very useful method. Just by looking at it for few second few very useful application of the method have popped on my mind.
I’m very interested on how consuming it is, in terms of CPU and GPU. Have you maybe stress-tested it?

 

   

arius, Newbie
Posted: 05 February 2012 03:47 PM   Total Posts: 8   [ # 5 ]

I tried this method only on two materials and only with one projector, and I do not see any of the FPS changes on my notebook with the GT 320M

 

   

alitan, Newbie
Posted: 06 February 2012 09:59 PM   Total Posts: 15   [ # 6 ]

Can the projected element be a video?

 

   

jtopaz, Member
Posted: 29 February 2012 09:35 AM   Total Posts: 53   [ # 7 ]

I am testing on TextureProjector too.
I have change the aspectRatio and fieldOfView, but there is no different.
Is there any example I can follow?

 

   

lingnuaa, Newbie
Posted: 24 August 2012 09:30 AM   Total Posts: 1   [ # 8 ]

I tested it,but it looks like no border.
Can anyone tell me why?

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X