Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 953955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:08:03+00:00 2026-05-16T00:08:03+00:00

I would like to ask to you to share some ideas about how do

  • 0

I would like to ask to you to share some ideas about how do you implement an animation support in your OpenGL application.
For example, if we would like in case of the some event fired from the user input, animate a Ball particle on the screen, how do we need organize our code? :

  1. Set Animation property like a member of Ball particle object ? (That contains a set of matricies to apply to the owner model, delay of between them, is playback animation or not and so on..)
  2. Need to have some central repository that contains a relation between a Ball particle and applied animation to it (I, honestly, would prefer this one). ?
  3. Somethihg else …?

And after what about a rendering ? How to do it fluid and fast ? (I know this is very context sensitive, but just to give an idea..)

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:08:04+00:00Added an answer on May 16, 2026 at 12:08 am

    I would define an Animation class, which can implement the following animations:

    • Rotation/translation/scale animation
    • Key frame animation
    • Skinning animation

    Of course, one of the animation techniques listed above need some generic access to the Object class.

    RotoTranslation animation requires access to the Object model view matrix; KeyFrame animation requires access to the model vertices buffers; Skinning animation requires access to the rendering state of the Object (shader attributes and programs, or vertex attributes using extensions).

    Apart skinning, the interpolation of generic values (floats, vector or matrices) shall be implemented, in order to change the values using an interpolation formula (nice those linked by genpfault). So an Interpolator class shall be able to ease the introduction of new interpolation equations.

    An Animation class uses a set of Interpolator instances to execute the animation (changing the values to be interpolated). How the values are choosed, accessed and modified (ranges) shall be defined at Object class.

    At this point there must be a TimeLine class which defines the time elapsed (which could not be the real one), which trigger Animation instances (or perhaps the single Interpolator instances) making the interpolated values advance the intermediate value.

    The Animation instances are queued on the TimeLine class, so it knows which Animation instances are active. The activation could be caused by user input or programmatically using internally generated events. To terminate the Animation execution, the Animation class could define a IsTerminated method is order to be dequeued from the TimeLine instance (perhaps the Animation could loop back the animation to have a continuous animation).


    Of course everything depending on your real needs.

    In the case the computation of the animation could take long time, you could cache the entire model data and run the animation in a separated thread. Once terminated, the model could be updated blocking the rendering loop.

    However, I would consider to inline the animation processing by issuing proper data to shader programs allowing a faster computation, which could enhances system performances.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I would like ask is best illustrated by an example, so bear with
I would like to ask you about regular expressions preg_match have outlined below. I
i would like to ask a question about @UsesJAXBContext annotation in jax-ws. I try
I would like to ask your opinions regarding the way I handle MultiTenancy. Im
i would like to ask a recommendation about data persistence on android.. the thing
I would like ask if there's a way to download an android layout from
I would like to ask you: Imagine that you have a site and there
I would like to ask such question, I have XML xsd`s, which generate beans
I would like to ask, how can I define class inside another one. In
I would like to ask for more an opinion than a question: What would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.