Why isn’t vertex animation supported?

This topic contains 6 replies, has 4 voices, and was last updated by  Scott 4 years, 9 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #30442

    ngjh1991
    Member

    Hi guys,

    I’m not quite sure if this is the correct place to post this question, do let me know.

    Anyway, I have created a scene which makes use of the morphing technique for the animations. Due to this, I have read up several threads on vertex animations not being supported by POD files.

    May I know if there is any reason why? Really appreciate the help here!

    Thanks,

    Alex

    #34734

    warmi
    Member

    You could simply export multiple versions (morphs) of your object as separate sub-objects within your POD file and blend them with your own code.

    #34735

    ngjh1991
    Member

    Hi warmi,

    Thanks for the prompt reply 🙂

    Yes I do understand that I can do that. Just to clarify, so it’ll be just a single POD file containing multiple meshes?

    Still, I’m curious as to why POD files do not support vertex animations.

    It’ll be great if I can get an answer to that. I’ve been doing quite a bit of reading but still couldn’t get any answers.

    Thanks,

    Alexngjh19912011-02-08 06:45:17

    #34736

    warmi
    Member

    Yeah, a single POD … you may want to optimize it a bit .. depending how you are going to blend, you may want to export full information only for the main model and have all other morphs export only vertex positions/normals since that’s the only thing you need anyway.

    #34737

    ngjh1991
    Member

    Ah, I see. Thanks so much warmi! You’re a great help 🙂

    #34738

    Ah, I see. Thanks so much warmi! You’re a great help 🙂

    can you tell me how to solve this problem? just import several meshes and “blend” them by coding??

    #34739

    Scott
    Moderator

    Hi,

    May I know if there is any reason why? Really appreciate the help here!

    The reason for the lack of vertex animation/morphing is simply a design choice. At the time of POD’s inception vertex animation was less popular than bone animation, it can’t be done on the GPU in some APIs and typically requires more data to be exported.

    However, as Warmi mentions it can still be done by exporting the mesh’s key-frames (either in a single POD file or across multiple) and interpolating between them in code if it is needed.

    can you tell me how to solve this problem? just import several meshes and “blend” them by coding??

    The EvilSkull example in the OGLES SDK demonstrates this technique.

    Thanks,

    Scott

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.