zuse12345 / jmonkeyengine

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

Multiple issues with female3.blend #538

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the attached model in the latest jME3 nightly

What is the expected output? What do you see instead?
There are many issues with this model. The first is the error: 
"IllegalStateException: The given texture must be triangulated!" appears when 
trying to load a material with a texture that influences both color and alpha. 
However jME3 fully supports such textures (that influence diffuse and alpha 
only). 
It is possible to get past this error by unchecking "Alpha" in Blender's 
Texture Influence menu. At this point, the model loads, however the skinning 
and animation computations are completely wrong. In bind pose, vertices from 
the arms are stretched toward the head. When playing the animation, the issues 
are much worse, the vertices start having invalid values, causing heavy 
flickering on-screen.

Original issue reported on code.google.com by ShadowIs...@gmail.com on 14 Sep 2012 at 3:19

Attachments:

GoogleCodeExporter commented 9 years ago
NOTE: I've also tried exporting the model using blender2ogre 0.5.8, after 
applying transforms on the armature and model, I am able to see correct 
animation using OgreXML. Applying transforms does not fix the 
skeleton/animation issues for the blender importer, however.

Original comment by ShadowIs...@gmail.com on 14 Sep 2012 at 3:32

GoogleCodeExporter commented 9 years ago
I have fixed the problem with the exception: "IllegalStateException: The given 
texture must be triangulated!" .

The problem with mispositioned vertices is not yet solved.

Original comment by mrogu...@poczta.fm on 14 Sep 2012 at 11:34

GoogleCodeExporter commented 9 years ago
I have fixed two places where NullPointer was raised. This happened so because 
some ipos didn't have curves applied.

As for the file tt-model it is not 2.49 but 2.41 (open blender file in text 
editor and see the header) and this is not supported by the importer. The 
lowest version is 2.49.

There is still issue with the model Sink Engine though. Part of the vertices is 
strongly displaced. The same happens with female3 model mentioned in another 
issue.
I know why this happens but didn't find a solution yet.
The workaround is NOT to use several materials to one mesh when armature is 
applied.
I'll focus on this one now in hope to fix that soon.

OK the problem was with BindPose and BindNormal buffers. I finally managed to 
find it when I made a tool to serialize the model to xml and compare it with 
OGRE model (also stored in xml). The buffers from only one of the splitted 
meshes were applied while each mesh should have its own.

Sorry it took so long.

Original comment by mrogu...@poczta.fm on 13 Jan 2013 at 9:34

GoogleCodeExporter commented 9 years ago
Nice work Marcin ;)

Original comment by remy.bou...@gmail.com on 13 Jan 2013 at 9:40