Jump to content

Alembic file support? (vertex animation)


ozRocker
 Share

Recommended Posts

I don't think Babylon.js supports alembic files.  If not I'm thinking of parsing it and processing the vertex transformations myself.

I know you can change vertex positions and normals easily in Babylon.js using

mesh.updateVerticesData(BABYLON.VertexBuffer.PositionKind, newPositions);            
mesh.updateVerticesData(BABYLON.VertexBuffer.NormalKind, newNormals);      

but I think this is all done on the CPU.  Is there a way to get these updates per frame to happen on the GPU?

Link to comment
Share on other sites

I don't think there's any way around that.  Animation cache and volumetric data is practically a new mesh per frame (just the positions and normals though).

My fabric demo (http://punkoffice.com/fabric) uses a new mesh per frame for the dress.  I can't think of any other way to do that since the changes are not linear.

Link to comment
Share on other sites

Does anyone here know much about alembic files?  In general are they processed via GPU or CPU?  You can drag and drop them into Unity3D and Unreal Engine and play them straight away.  Just wondering how they are processing this data

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...