Jump to content

Weird Vertex Data?


BangTao
 Share

Recommended Posts

Hi.。。erm ..can somebody tell me why i call "

mesh.getVerticesData(BABYLON.VertexBuffer.PositionKind);

" will return wrong data(there are many repeated data here,not the verticesData i think)?that is not scientific!!!

there shouldn't hava the same position....

58b816efd11dd_QDL_BU9NCJS)X9BTH893.png.2de887312729b465a28f0efac0ea4818.png

PG:

http://www.babylonjs-playground.com/#3BQUM#0

thanks for your time!

Link to comment
Share on other sites

There are good reasons for repeated vertex data, one of which is correctly covering the mesh with material. Removing repeated vertices can have un-predicatable results

Some reading for you.

http://babylonjsguide.github.io/advanced/Facets.html

http://babylonjsguide.github.io/snippets/Minimise_Vertices

http://www.babylonjs-playground.com/#1JBMJ3#17  comment line 78 to see the difference

http://www.babylonjs-playground.com/#1H7L5C#40

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