Is there an effect that can simulate stretching a sprite or atlassprite along one of its dimensions? Something like a isometric "pinch" or taper along one axis to make a sprite appear to stretch into 3d?
Is there an effect
(6 posts) (4 voices)-
Posted 2 years ago #
-
Just thinking out loud...
I once played with a sprite's camera, and it game me the effect you describe in this post... I don't really know how I achieved it, but I was playing with the camera and the sprite looked like it had volume, like depth or something...
I may be wrong, maybe there's a better way to do this...
~ Natanavra.
Posted 2 years ago # -
its a taper I want to do, like a real-time distortion grid applied to sprites. Camera tricks sound interesting though. Is there any documentation on the camera class yet?
Posted 2 years ago # -
I am want to do the same thing. Hope anybody has an idea. I am no openGL expert.
Posted 2 years ago # -
Its a hack, but if you subclass Sprite you could do something like:
- (void) draw { glPushMatrix(); //rotate 30 degrees along y axis glRotatef( 30.0, 0.0f, 1.0f, 0.0f ); [super draw]; glPopMatrix(); }Obviously wouldnt work with an Atlas Sprite.
You could also play with Director's -set3Dprojection and change the fov to make it more/less dramatic
Posted 2 years ago # -
interesting, Thank you!
Posted 2 years ago #
Reply
You must log in to post.