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 6619525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:58:50+00:00 2026-05-25T20:58:50+00:00

I want to have a mesh that can be animated. I’m loading mesh from

  • 0

I want to have a mesh that can be animated. I’m loading mesh from a file, including key frames. I want to put all the frames into VBO and compose two of them on the GPU in a vertex shader. So i want to pass to frames to GPU and some uniform that will allow to create one result frame from these two

Is it possible? If so, how can i do it?

  • 1 1 Answer
  • 0 Views
  • 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-25T20:58:51+00:00Added an answer on May 25, 2026 at 8:58 pm

    You would just have more vertex attributes. Normally, you might have:

    in vec3 position;
    in vec3 normal;
    in vec4 color;
    in vec2 texCoord;
    

    With morph targets, you would need:

    in vec3 position0;
    in vec3 position1;
    in vec3 normal0;
    in vec3 normal1;
    in vec4 color;
    in vec2 texCoord;
    

    The actual model-space position would be a linear interpolation between position0 and position1. Same goes for the normal (I guess). Once you get them, you pass them through the usual transforms. The color and texture coordinates presumably don’t change, but if they do, then they too need to have 0 and 1 versions.

    The actual rendering is pretty simple. Presumably, you will have all the positions for the morph targets in the same buffer. So it’s a matter of binding position0‘s attribute to the first morph target, and position1‘s attribute to the second morph target. Same goes for the normals. Then you render as normal.

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

Sidebar

Related Questions

I have an existing Silverlight 3 app that I want to add Live Mesh
want to have a Hyperlink-Button in a gridView in which I can display a
I want to have a tree in memory, where each node can have multiple
I want to have a element that displays in the multiple selection display style
Suppose we have some mesh (see the illustrating picture from CorelDraw, which uses the
I have two classes, Mesh and MeshList. I want MeshList to have a function
Suppose you have a point cloud, and you want a surface that wraps those
Let's say I have a polygon, and I want to mesh it. In order
I have a 3d mesh (a set of triangles) that defines a closed watertight
I want to implement a Mesh class for a CG project, but have run

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.