332 Commits

Author SHA1 Message Date
Kae..pl
a7f0a5a99b Bugfix: animations are now loaded from frame 1 rather than 0 (just like in blender).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10965 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-07 07:08:27 +00:00
Kae..pl
dd276faa31 Refactoring: removed dependency to org.lwjgl.opengl.GL11.GL_MAX_TEXTURE_SIZE from BlenderKey.java
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10956 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-04 19:08:27 +00:00
Kae..pl
1fcd9526b2 Refactoring: improved the usage and flow of blender context and blender input stream (will make the unit tests implementation easier).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10953 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-03 20:38:17 +00:00
Kae..pl
6708cf0d7f Bugfix: properly importing object animations where not all axes are being animated by the ipo curves (provided by arpagaus - thanks a lot :) ).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10952 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-03 14:00:03 +00:00
Kae..pl
e7aeb9a222 Tests: added a method that returns the known blender primary types names. This will be needed in unit tests. (forgot to make the method static).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10950 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-01 15:39:51 +00:00
Kae..pl
c0f46d97c5 Tests: added a method that returns the known blender primary types names. This will be needed in unit tests.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10949 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2014-01-01 15:38:41 +00:00
Kae..pl
a499e972ab Bugfix: fixed an issue that was recently introduced with not negating Y-rotation values when Y axis was up.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10946 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-27 18:10:07 +00:00
Kae..pl
cf830b4c7c Bugfix: fixing errors that appeared during mirror modifier loading (there is still mirror rotation being not supported, but hope to fix that soon).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10944 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-18 12:32:06 +00:00
Kae..pl
b77f5a422c Bugfix: fixed a bug that caused objects with negative scale to have improper transformations.
Bugfix: improved the matrix loading method (now the matrix is switched to Y-up axis withou loosing the information about negative scales).
Refactoring: decreased the amount of allocated matrices during transformation loading.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10942 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-14 20:01:52 +00:00
Kae..pl
68debc95eb Bugfix: displaying the bone name in BoneContext toString() method even if the bone is not yet created.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10941 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-13 14:34:37 +00:00
Kae..pl
25e20509c6 Bugfix: bone context returns the length of the bone without taking model scale into account; that caused troubles during constraint's computations but should be used for bone debugger length (an appropriate notice is in the method's javadoc).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10940 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-10 19:29:52 +00:00
Kae..pl
b5357e96ec Bugfix: taking scale into account when loading constraint's world matrix.
Refactoring: reducing the amount of allocated matrices during applying and loading constraint's matrices.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10939 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-10 18:47:53 +00:00
Kae..pl
17a0554897 Bugfix: fixed a bug that caused models to be heavily spoiled if they had armatures with identical bones' names.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10926 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-01 20:37:13 +00:00
Kae..pl
9289d03604 Bugfix: fixed a bug that caused IDENTITY matrix to be changed during loading (sorry about that ;).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10925 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-12-01 10:49:18 +00:00
Kae..pl
45e82cdbb1 Bugfix: fixed parenting issue (turned out that blender does not always store parent inverse matrix in objects parentinv field)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10922 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-28 21:19:31 +00:00
Kae..pl
382c1c85f5 Bugfix: added tracks equalisation method (inequal tracks' frame count caused exceptions during animation simulations).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10921 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-28 20:03:46 +00:00
Kae..pl
1e33d2b0f3 Bugfix: allowing to use vertex colors when mesh has no material defined in blender.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10916 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-25 13:26:05 +00:00
Kae..pl
5e4af7a4fe Feature: disabling texture optimisations by default.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10915 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-24 21:37:15 +00:00
Kae..pl
dd8b8fbd5f Feature: added support for line and point type of meshes.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10914 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-24 18:56:57 +00:00
Kae..pl
69e4392ba9 Bugfix: fixed an issue with wrong vertrex colors applying (along with classes prepared to implement line and point mesh loading).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10913 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-24 09:27:37 +00:00
Kae..pl
fe32d59515 Refactoring: reducing the amount of operations performed in generated textures by fetching all required functions during setup rather than generation time for each pixel.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10894 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-19 17:54:38 +00:00
Kae..pl
20fade37c5 Bugfix: setting the right color for vertex colors for versions 2.62 and below (the color factors were misplaced in older blender versions)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10893 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-17 13:18:31 +00:00
Kae..pl
fd28efd64c Bugfix: fixed a bug in loading vertex colors for non-smooth meshes.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10892 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-17 12:51:28 +00:00
Kae..pl
a01e9ab41c Bugfix: vertices colors are now applied correctly.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10891 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-17 12:34:48 +00:00
Kae..pl
a4b6107f5b Bugfix: loading vertex colors for B-Mesh (fix provided by Remo Arpagaus).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10890 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-15 14:12:11 +00:00
Kae..pl
c5725e238b Bugfix: loader now catches all possible exception and throws IOException with a proper information abount unexpected error.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10887 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-10 18:00:59 +00:00
Kae..pl
8e1bedf7e7 Bugfix: fixed an NPE exception that occured during flat textures merging.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10878 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-08 08:40:25 +00:00
Kae..pl
7987f5edf0 Refactoring: removing BlenderContext cleaning; reference to the instance of this class is lost instead after the loading is done.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10875 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-04 22:04:26 +00:00
Kae..pl
44a7b1f098 Feature: applying static pose transformations for bones.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10872 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-03 17:32:43 +00:00
Kae..pl
6b12e0d071 Bugfix: fixes to bone's transformation evaluation in LOCAL and POSE spaces.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10871 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-03 17:29:22 +00:00
Kae..pl
5097881499 Refactoring: simplified method that loads the object's transformation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10867 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-02 15:14:52 +00:00
Kae..pl
1c26d91bb2 Bugfix: fixed a bug that raised IndexOutOfBounds exception when blending was applied to image with mipmaps. (commited once more because the previous version still had errors).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10863 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-01 17:53:50 +00:00
Kae..pl
3dbe5fcec6 Bugfix: fixed a bug that raised IndexOutOfBounds exception when blending was applied to image with mipmaps.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10862 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-01 15:07:04 +00:00
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