Jump to content

Update Vertex Data to reflect transform


Pryme8
 Share

Recommended Posts

So if I have a ground plane, and am looking to manipulate the vertex data but need the values to be updated to their correct position after a rotation and transform that I applied.

http://www.babylonjs-playground.com/#DPSB16#3

Is the playground showing the creation and manipulation of the mesh.  Basically what I need to happen now is when I grab the VertexData the points will have the rotation and transformation applied.  I have a good idea of how to do it manually with some vector manipulation but would like to just "bake" this information then grab it instead of doing a multiple steps.

Link to comment
Share on other sites

your a boss, ^_^ I am working on remapping a cube into a sphere and then working on some Dynamic LOD functions so this is needed for sure!

bakeCurrentTransformIntoVertices() was the method I ended up using!


bakeTransformIntoVertices requires a transform argument, if I was to pass it a custom matrix how would I construct that?

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...