asafbibas / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Blender loader doesn't load shared geometry correctly #432

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a model in Blender that has two materials but join those two models 
together to get one model
2. Load the model using the Blender loader

What is the expected output? What do you see instead?
The model should have one mesh with all the shared data (right now its OK). It 
should also have a partial index buffer for this particular material. All other 
meshes that use the shared data in this mesh should: 
1) link ALL their non index-buffer data with the original (1st) mesh EXCEPT 
for: BoneWeight, BoneIndex, BindPosePosition, BindPoseNormal, which are NOT set 
on subsequent meshes.
The result is that when the model is scanned for animated meshes, it will grab 
the 1st mesh as an animated mesh and animate it, however all other meshes share 
that data so they will also be animated. 

Original issue reported on code.google.com by ShadowIs...@gmail.com on 16 Nov 2011 at 7:09

GoogleCodeExporter commented 8 years ago
Due to cloning not working correctly with shared buffers, this feature is now 
no longer supported. The blender loader will use Mesh.extractVertexData() to 
de-share the buffers.

Original comment by ShadowIs...@gmail.com on 9 Jan 2012 at 5:20