231 Commits

Author SHA1 Message Date
Kae..pl
d44727cfdd Bugfix: fix to a bug that caused texture to be loaded more than once
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10202 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-27 16:08:31 +00:00
Kae..pl
fea4c37e06 Feature: user can now decide if the mipmaps will be generated or not; by default 'mipmap' blender flag is used to decide if mips for specified textures shall be generated or not
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10201 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-27 15:46:00 +00:00
nor..67
ed001d4e33 Blender Loader:
- try locating textures without causing AssetNotFoundExceptions

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10196 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-27 02:37:05 +00:00
Kae..pl
01873e6f80 Bugfix: NPE was thrown when object animation was loaded. To fix that modifiers are now loaded after the whole object is loaded to the blenderContext.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10142 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-24 19:40:05 +00:00
Kae..pl
6520fc5b10 Bugfix: fixing a bug that caused negative time values to appear in times[] array in tracks. That caused some animations to behave oddly when in loop mode. Bug and solution found by Tobias Downer.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10141 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-23 16:54:36 +00:00
Kae..pl
fada1b5b90 Bugfix: applied fix suggested by Tobiad Downer that properly computes tracks for rotated bones.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10138 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-21 22:50:33 +00:00
Kae..pl
071581ad30 Added clear information about bugged blender file. Rarely a pointer appears whose block cannot be found. This is cerainly a bug of blender and we cannot do anything but properly inform user about the situation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10124 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-20 18:49:48 +00:00
Kae..pl
1c2baedbc1 Improvements to the weight and index buffers loading:
- if more than 4 weights is applied to the vertex then the 'strongest' weights are used
- warning is logged only once when model has vertices with more than 4 weights (and not for every vertex as it was before)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10109 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-19 17:27:36 +00:00
Kae..pl
3d38b634d5 Added functionality that will ignore modifiers that cause no changes to the model due to incomplete (but not invalid) definition. This caused errors when object had for example two armature modifiers and only the second one had armature model attached.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10087 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-17 19:44:05 +00:00
Kae..pl
601a34ba99 Fixed an error that caused NullPointerException to be raised if a curve had no taper object applied.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10069 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-14 16:39:57 +00:00
Kae..pl
61ad771748 Bugfix: 538: Multiple issues with female3.blend
Yay finally found that one :D Models with multiple materials and armatures should now load withour mesh deformations :D

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10066 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-13 21:32:04 +00:00
Kae..pl
5e2c814086 Issue 540: NullPointerException when loading blender model
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9998 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-16 12:47:54 +00:00
Kae..pl
6573b87bf0 Bugfix: Issue 547: Unsupported type exception importing model from Blender
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9997 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-14 10:30:10 +00:00
Kae..pl
2ace208225 Bugfix: fixed NPE error while getting subtarget of a constraint, not every constraint data have such field
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9973 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-07 16:07:48 +00:00
Kae..pl
69205a679b Updating the bound of every newly loaded node.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9972 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-07 15:55:20 +00:00
Kae..pl
49f227b7cc Minor optimisations. Added several comments to unveil certain parts of the code.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9918 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-30 09:52:27 +00:00
Kae..pl
1b04d13f3e Bugfix: making sure that the first and last bevel line is parallel to its neighbour in curves that have bevel applied (that is how blender works)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9912 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-29 14:22:29 +00:00
Kae..pl
7ee0f9e07c Removing IndexBuffer class and replacing it with the one that already exists in JME. (Sorry for the mess, I had no idea that such class already exists :) ).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9873 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-19 20:41:28 +00:00
Kae..pl
7ce4477b52 Curve loading upgrade.
Bugfixes:
- curves bevels are now loaded properly (previously only curves in XZ plane were loaded the way they should)

Features:
- bezier triple radius is now loaded and used
- loaded mesh can be either smooth or solid depending on the user's setting

Improvements:
- decreased memory usage for curves with bevel applied
- reduced CPU usage by simplifying the computations

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9872 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-19 12:23:15 +00:00
rec..om
72d169d7e5 Fix Blender importer to use camera dimensions and field of view.
See forum discussion: http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/patch-fix-blender-camera-loader-fovaspect/


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9857 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-08 14:53:51 +00:00
Kae..pl
3563bbf179 Feature: constraint applied to a spatial can now also target a bone
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9854 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-08 09:50:02 +00:00
Kae..pl
a5e9159149 Bugfix: layers to be loaded are taken from the value set bu user in BlenderKey and not the value loaded from the blender file.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9853 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-08 08:59:58 +00:00
sky..ok
28ce76245f Change all source licenses to say 2009-2012
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9838 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 17:01:57 +00:00
sky..ok
751cb9e20a Javadoc cleanup
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9837 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 16:44:26 +00:00
Kae..pl
27131024ee Bugfix: in mirror modifier not all vertex indexes were properly inverted when object was smooth.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9836 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 15:36:53 +00:00
Kae..pl
d4ddc2beeb Memory usage improvements:
- blender context now disposes all its stored data and properly closes the BlenderInputStream
- fixed an error that causes unnecessary huge memory allocation in BlenderInputStream

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9795 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 13:35:30 +00:00
Kae..pl
2148c256d3 Allowing only a single armature modifier and object animation modifier to be applied over an object.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9792 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 10:15:48 +00:00
Kae..pl
6e027bd51e Fixing a bug where applied armeture has no skeleton attached.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9791 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 10:15:11 +00:00
Sha..rd
a0d0b0922f * ArmatureModifier now sets 0.0 weight if the vertex should not be influenced by any bones. This fixes "disappearing" object issues in animated models.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9732 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 19:35:59 +00:00
Kae..pl
d2e6648eb3 Bugfix: solved problem when one 2D texture was about to be cast on other 2D texture while they had exactly the same UV coordinates.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9729 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 11:32:38 +00:00
Kae..pl
ed2a224829 Bugfix: alpha map cannot be applied to unshaded material.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 11:29:16 +00:00
Sha..rd
46fb4c43b4 * Fix UTF8 error in ConstraintDefinition
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9722 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:19:57 +00:00
Kae..pl
711b8ab9ca Huge constraints refactoring (the computations might yet not be perfect, but models loading should get much less crashes).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9720 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-13 15:19:05 +00:00
Kae..pl
58bbd2d076 Fix for method that checks if the mesh is a B-Mesh or not.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9719 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-13 15:12:59 +00:00
Kae..pl
e83b15028b Fix for animation rotations computation (in blender earlier than 2.50 the rotations were stored in degrees and later in radians). Thanks to @rectalogic for finding this :).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9717 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 19:39:27 +00:00
Kae..pl
4fa00b6d9a Fix for blender loader classes (latest changes to light and camera loading were taken into account).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9711 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-10 21:51:26 +00:00
Kae..pl
9e60eda71a Fix for loading smooth meshes. (One small step for java compiler is a huge step for blender importer :D)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9701 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-03 15:17:01 +00:00
Kae..pl
fa426feb08 Wrapping cameras into CameraNode.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9699 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-01 14:12:13 +00:00
Kae..pl
be5428736d Wrapping Light into LightNodes (this allows to add constraints and properties to lights).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9698 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-01 14:03:21 +00:00
Kae..pl
1bad383be2 Added and entry to the blender key that allows to disable loading of generated textures. The value is set to false by default because generated textures need extra care when being loaded.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9694 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-28 18:34:49 +00:00
Kae..pl
6c2f7288b7 Material assignation fix when blender does not fully assigns the materials. Proper warning is generated and default material is used.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9693 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-28 13:46:16 +00:00
Kae..pl
49c47f8174 Fixing a bug that caused the loader to crash when the mesh (traditional one and not BMesh) had no faces and only edges or points instead (without support for loading edges and points yet).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9692 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-28 11:56:14 +00:00
Kae..pl
4fb6ba58c7 Fix to colorband loading. Preventing a crash when less than 4 cursors are used.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9691 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-28 10:10:42 +00:00
Kae..pl
0fd34d3535 Ignoring textures when their UV coordinates type is not supported. This will prevent from unexpected exceptions to occur.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9690 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-28 10:06:22 +00:00
Kae..pl
bb644be5e0 Fix to specifying texture UV coordinates for generated textures.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9627 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-07 14:51:05 +00:00
Sha..om
78bbe9b251 * Fix issue where blender animation importer was truncating the animation duration to an integer (thanks rectalogic)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9626 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-06 20:57:45 +00:00
Kae..pl
e9af2e4dc4 Classes added that represent new constraints in blender. Classes have no implementation yet, they simply exist so that the loaded models will not crash when they use them.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9587 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-26 13:23:09 +00:00
Kae..pl
86be16cda4 Fixed Issue 498: Blender loader has strict requirements for animation import.
(Although the animation of the given model looks bad because bone constraints are not yet fully supported.)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9577 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-21 12:04:49 +00:00
Kae..pl
3a5b8bb3d6 Using one UV buffer for all types of texture mapping (the textures are cast to different UV's when neded). Support for using generated textures as normal maps (looks best when large generatedTexturePPU is used and on large faces).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9576 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-21 11:55:50 +00:00
Kae..pl
d3452297ce FIXED: Issue 515: Blender loader - "-1" bone indices are generated for this model
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9537 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-03 19:45:30 +00:00