257 Commits

Author SHA1 Message Date
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
Kae..pl
dcd5fd5b4e Making sure that bone constraint will target either object or bone in its own armature. Allowing bone to target object (and not only bone as it was until now).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10397 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-13 21:52:52 +00:00
Kae..pl
04998a07c0 Bugfix: mipmap generation once again dependant on the blender settings and on blender key settings :)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10394 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-13 15:34:14 +00:00
Kae..pl
bdd8ab1fb0 Feature: added constraint definitions that were added to blender 2.62 so that the loaded does not crash when meets one
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10385 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:24:54 +00:00
Kae..pl
142905654f Added a function that creates the full name of the field (with its pointer and table indicators). Just for debugging purposes.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10381 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 19:08:11 +00:00
nor..67
ad927bcd6a - change blender texture locator to always set the texture key on loaded textures explicitly (for relative textures too)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10378 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 17:39:38 +00:00
Kae..pl
21dc62e293 Refactoring: removing unnecessary asset manager from BlenderInputStream constructor (the manager was never used).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10377 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 17:39:25 +00:00
nor..67
629d1caba7 - change blender texture locator to always set the texture key on loaded textures explicitly
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10376 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-09 17:13:30 +00:00
nor..67
11e955e020 - use replace instead of replaceAll in blender TextureHelper
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10317 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-03 00:43:32 +00:00
nor..67
836bc37f5f - Improve Blender TextureHelper external texture loading
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10316 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-03 00:05:57 +00:00
nor..67
d6ea096da9 - default blender FaceCullMode to back
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10276 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-31 23:07:06 +00:00
nor..67
b0b818dc12 - fix logging in blender loader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10273 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-31 22:39:43 +00:00
nor..67
ea973c14c3 - change logging from logger.info() logger.fine and logger.warning()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10272 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-31 22:37:56 +00:00
nor..67
7ba657e430 - set logging from Level.INFO to Level.FINE for most logging
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-31 22:26:10 +00:00
Kae..pl
9b22b2538d Removing mipmap generation during image texture loading. This is set later if required.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10259 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-31 06:19:19 +00:00
Kae..pl
ded6dce715 Bugfix: fixed a bug that occured when vertex had more than 4 weights but the first 4 weights were not attached to any bone.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10233 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-29 14:47:44 +00:00
Kae..pl
a37b8114b9 Bugfix: fixed a bug that caused an NPE exception which occured when IPO had no curves attached.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10232 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-29 14:46:43 +00:00
Kae..pl
2b94486677 Bugfix: fixed dead code area and NPE being thrown when loading the textures.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10231 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-29 14:29:17 +00:00
nor..67
2da59144c0 - fix blender loader losing texture origin, which caused storing of all images in the j3o instead of referencing them via the assetManager
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10230 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-29 04:16:58 +00:00
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