rehno-lindeque / Blender-WebGL-exporter

A fork of the blender webgl exporter at http://code.google.com/p/blender-webgl-exporter/
http://code.google.com/p/blender-webgl-exporter/
13 stars 3 forks source link

Share vertices between faces #4

Open rehno-lindeque opened 14 years ago

rehno-lindeque commented 14 years ago

Since an index buffer is being used the vertices/normals etc between faces could be reused, however the exporter currently duplicates them instead.

Not sure about uv coordinates though since they might not be shared between faces under all circumstances...

rehno-lindeque commented 14 years ago

Note: This is slightly better, but not fixed in 09c79279b91e4d4928c34676fb643ec7ab868b60 where two triangles can share 2 vertices in a quad. (in SceneJS exporter only for now)