Sign in to follow this  

[java] clipping

This topic is 3472 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

"Clipping" means checking which parts of an object are outside a certain region of interest to avoid drawing or otherwise processing them.
For example, sprites are clipped against screen borders and 3D graphics are usually clipped against the "view frustum" that contains the visible portion of the scene.

So clipping is something that is done, or that takes place automatically, for any kind of animation; what do you mean by "animation technique"? What sort of animations you want to make?

Share this post


Link to post
Share on other sites
You could use an array of images and loop through it. For smooth animations you should blend between two frames, i.e. frameX * (1 - i) + frameY * i, i being the blending fator (think of it as the "distance" of the current animation frame to the next keyframe (the image) ).

Or, if you use a 3D API like OpenGL or D3D (yes, the can be and are used for 2D [smile]) you could store all frames in a single texture and loop through them shifting texture coordinates either manually or with a texture matrix.

Share this post


Link to post
Share on other sites

This topic is 3472 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this