298 Commits

Author SHA1 Message Date
Kae..pl
c278b39c82 Bugfix: fixed an issue that caused NPE to be raised when UnsupportedConstraint was allocated.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10861 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-01 12:30:17 +00:00
Kae..pl
1ae900023e Refactoring: making bone constraints to be applied from the root bone to the children and refreshing bone world vector after baking bone's constraint.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10856 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-29 20:15:30 +00:00
Kae..pl
27a7fde24d Feature: added support for influence factor in IK constraint.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10854 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-28 17:32:24 +00:00
Kae..pl
821d6b6aa3 Bugfix: locations of bones not connected to their parents are now properly applied if their constraints force them to
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10853 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-28 17:26:34 +00:00
Kae..pl
e148d0e01a Bugfix: fixed a bug that caused NPE to be raised when object had armature but bones were not attached to vertices (now every skeleton that is defined in the blender file is loaded).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10852 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-28 14:20:11 +00:00
Kae..pl
2ccadb7a7a Bugfix: fixed a bug (that occured during work on IK) that caused NPE to be raised when constraint other than IK was applied to bone.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10851 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-28 14:18:48 +00:00
Kae..pl
0921540124 Bugfixes:
- fixed issues with bones transformation applying and reading in world space
- fixed issue with lack of animation track for some bones whose constraints affected the animation

Refactoring:
- improved (and simplified) bone loading

Features:
- added basic implementation of the IK constraint (still a lot to be done but works for simplest cases)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10845 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-26 20:05:37 +00:00
Kae..pl
a6004618ce Bugfix: changed method visibility from private to public to prevent compilation time errors.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10841 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-20 14:47:39 +00:00
Kae..pl
32b79324a9 Bugfix: fixed an issue with proper bone orientation in 3D space (as in blender bones have different local coordinates system than other features); this fix caused more models to be loaded properly and made the code more simple
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10840 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-20 14:45:33 +00:00
Kae..pl
c0f0f0ca9e Bugfix: BlenderModelLoader attached root objects to the scene node before applying the constraints; this sometimes caused NPE to occur while applying the constraints
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-20 11:53:27 +00:00
Kae..pl
11d77cfdc2 Refactoring: removed unused methods.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10826 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-10 14:49:45 +00:00
Kae..pl
ebef55aecf Refactoring: removing AbstractBlenderLoader class, it turned out to be unneded and made some unnecessary mess in the code.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10822 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-07 22:10:50 +00:00
Kae..pl
eda3e8d725 Feature: sky generated textures can be generated agains a cube or a sphere of a selected size. By default a sphere is now used. This makes the sky look entirely seamless.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10819 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-05 16:29:12 +00:00
Kae..pl
535a6dd8ce Bugfix: fixed an issue when UV coordinates were not applied even though the mesh had them defined (the bug occured when the mesh had materials, UV's and no textures).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10818 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-04 18:29:34 +00:00
Kae..pl
04ed5d1467 Bugfix: several minor bugfixes and improvements.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10817 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-03 10:05:44 +00:00
Kae..pl
e2cc42e6f3 Bugfix: making blender importer NOT to crash when coming accross Depth24Stencil8 image type.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10816 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-03 10:05:00 +00:00
Kae..pl
23cc867e38 Bugfix: making the importer NOT to crash when coming accross OCEAN type of generated texture (this is a new texture type).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10815 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-03 08:57:55 +00:00
Kae..pl
517dece348 Refactoring: optimisations to generated textures loading (will affect some of them).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10814 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-03 08:37:47 +00:00
Kae..pl
4ecc911b69 Feature: added bottom texture for the sky during sky loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10813 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-02 18:53:48 +00:00
Kae..pl
66f1a0302f Refactoring: removing unnecesary System.out's. ;)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10812 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-02 08:47:33 +00:00
Kae..pl
eb7e7bbaad Feature: added sky loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10811 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-10-02 08:15:01 +00:00
Kae..pl
f94ad2b37a Bugfix: fixed an issue with improper normals direction in merged vertices in mirror modifier.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10808 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-29 16:51:19 +00:00
Kae..pl
915638a370 Refactoring: vertices and normals bind poses are now generated instead of read from the file (as suggested in ArmatureModifier ;).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10804 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-28 10:31:34 +00:00
Kae..pl
2a00f1ccb0 Refactoring: removed unnecessary return type from the modifiers (it was never used).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10803 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-28 10:13:34 +00:00
Kae..pl
8df3569688 Refactoring: small reorganisation of ObjectHelper class.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10802 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-28 10:06:21 +00:00
Kae..pl
d86adfa4f1 Bugfix: fixed an issue with missing material color when material has a non used texture.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10801 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-27 15:33:54 +00:00
Kae..pl
638947623d Refactoring:
1. moved BlenderFileException to com.jme3.scene.plugins.blender.file and getting rid of one package.
2. loader classes now throw IOException when loading problems occur as they should do (BlenderFileException is only used internally).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10786 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-16 19:28:24 +00:00
Kae..pl
d6a1b63206 Bugfix: fix to specular light loading. Taking intensity into consideration. Fix given by: pfannenwender.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10767 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-04 20:20:30 +00:00
Kae..pl
1b17c4fd04 Bugfix: fixes to specular shininess loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10763 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-02 21:04:03 +00:00
Kae..pl
0bb9822322 Bugfix: fixed an issue that caused repeated meshes to be populated in the wrong direction when Y axis was set as up axis.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10748 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-12 14:55:02 +00:00
Kae..pl
bf4447bc46 Feature: loading separate UV sets defined by user and loading LightMap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10737 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-25 10:19:34 +00:00
rem..om
2acbdf9f84 Hardware Skinning now uses its own bone index and bone weight buffers. The vertex buffers are initialized empty when the model is loaded and placed in the cache.
They are populated only if hardware skinning is used with the model.

BoneIndex and BoneWeight buffers are now always CpuOnly and only used for Software Skinning.
Some enhancement could be done to save memory by not generating the bindPose buffers if hardware skinning is used as it doesn't need them.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10657 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-06-22 10:03:40 +00:00
Kae..pl
217a1a6273 Refactoring: removing AnimData class use in blender importer to make it independent on the OGRE plugin (this way the usage of the importer will not require the presence of Ogre plugin in the classpath).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10611 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-12 19:05:24 +00:00
Kae..pl
5b65b19bda Refactoring: storing importer custom data in blender context instead of loaded features. This way there will be no conflict between the custom data names and user's properties names and no unwanted additional data will be stored in the result features.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10587 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-30 21:44:05 +00:00
Kae..pl
9961f77445 Code refactoring:
- removed unused methods
- added javadocs
- minor name fixes
- one constructor type for all helpers

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10585 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-29 11:31:48 +00:00
Kae..pl
3602d86c20 Bugfix: fixed a bug that caused a bone constraint to be properly validated even though its bone target was not defined.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10584 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-29 11:30:26 +00:00
Kae..pl
29dd973122 Refactoring: large changes in constraints system (see the proper topic on the forum for further changes)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10581 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-27 22:08:19 +00:00
Kae..pl
4f104e4200 Bugfix: (hopefully) final fixes to armature applying to models without applied transformations (+ removing unused pieces of code)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10529 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-10 11:52:31 +00:00
Kae..pl
e282db0f7f Minor fixes to armature loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10528 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-08 12:06:57 +00:00
Kae..pl
a1fd0272d4 Bugfix: only rotation is used to transform node to its parent armature transformation when computing bone positions.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10512 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-05 13:07:59 +00:00
Kae..pl
06f5cab5ba Bugfix: fixed an issue with skeleton loading when the armature was not a parent of an object it should animate.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10511 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-04 19:00:21 +00:00
Kae..pl
3888036176 Bugfix: fixed an error that could create wrogn vertex to bone group assignment. This caused animation to be played badly because some vertices remained in their places instead of moving with the proper bone.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10463 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-05 09:35:35 +00:00
Kae..pl
fc96e52a4c Bugfix: fixed lowes weight removal method that did not remove all lowest vertices that were necessary (thanks to Tobias Downer for finding it :) ).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10459 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-04 11:06:18 +00:00
Kae..pl
0a90ff21d2 Refactoring: removed unused class.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10428 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-24 20:02:34 +00:00
Kae..pl
687c1216ab Refactoring: removing unused code.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10427 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-24 19:59:33 +00:00
Kae..pl
31e327bbac Refactoring: SpatialConstraint now derives from Constraint and not BoneConstraint.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10404 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-14 10:44:50 +00:00
Kae..pl
4de3be91a9 Refactoring: unsupported (but known) constraint definitions are now represented by a single class instead of many classes that do nothing except logging a warning.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10403 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-14 10:35:49 +00:00
Kae..pl
28ea9d8a0d Refactoring: tabs replaced by spaces in blender importer sources. (removed unnecesary comment about the spaces so that is not misleading later for others ;) )
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10402 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-14 09:45:32 +00:00
Kae..pl
ecc8d8387b Refactoring: tabs replaced by spaces in blender importer sources. (4 spaces for each tab)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10401 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-14 09:43:08 +00:00
Kae..pl
9f4544a3a8 Added length of the bone to the BoneContext (this will be needed later by some of the constraints).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10400 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-14 09:15:55 +00:00