101 Commits

Author SHA1 Message Date
Kae..pl
fd3c84ccce Increasing the default generated textures size (they import in reasonable time yet and are of better quality).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8325 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-01 12:29:27 +00:00
Kae..pl
846b569552 Support for generated textures merging.
Optimizations in textures loading when multiple textures are applied.
Fixes in pixel blending.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8324 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-01 12:27:41 +00:00
Kae..pl
ff3336679d Setter for generated texture depth added.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8316 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-29 15:26:48 +00:00
Kae..pl
0b274b3c1b Automatic loading of both bone and object animations (no need to specify animations in blender key any more).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8305 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-25 22:19:31 +00:00
Kae..pl
6c341850d2 Refactoring to constraints. Implementation now not dependant on the animation type.
Removing deprecated animation classes.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8303 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-25 20:44:02 +00:00
Kae..pl
c58ffe4ddc Fix a bug with animation when Y axis was UP.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8270 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-22 14:58:51 +00:00
Kae..pl
0dd85b8fe1 Fix to attaching objects to the scene's node.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8268 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-21 15:18:28 +00:00
rem..om
6600473a82 Blender Loader : Added a check to avoid crash when a vertex has more than 4 bones weight.
As Marcin state in a comment this limitation has no sense for blender as it was an Ogre format limitation. We'll need to fix that

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8266 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-20 16:26:29 +00:00
rem..om
bf70599185 Blender Loader : implemented fixUpAxis for meshes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8265 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-20 16:23:20 +00:00
Kae..pl
8deba71f8d Blender loading logic refactoring:
- JmeConverter replaced by AbstractBlenderLoader
- scene loading implemented (now all objects are attached to the scene node)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8252 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-13 21:22:00 +00:00
Kae..pl
ec4486d5eb Adding the MeshContext that will help with mesh modifications in a future.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8251 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-13 19:56:53 +00:00
Kae..pl
393c67c9b7 Removing unnecessary operations from ArmatureModifier.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8248 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-12 21:33:49 +00:00
Kae..pl
0775b93088 Added support for modifiers validating. Now modifiers that are invalid will not be loaded.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8245 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-11 22:13:40 +00:00
Kae..pl
ba57377795 Refactoring: renaming 'DataRepository' to 'BlenderContext'.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8244 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-11 21:53:02 +00:00
Kae..pl
7a44519bac Modifiers refactoring. Common reference to loaded modifier to all classes deriving from 'Modifier' was dropped.
Now all modifiers hold their own data and do not give acces to them.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8243 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-11 21:47:47 +00:00
Kae..pl
3402f51824 Armature loading refactoring and bugfixing.
- animations should now load properly
- armature loading moved to ArmatureModifier (no bones are touched inside MeshHelper so the code should be a little more clear now)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8238 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-11 13:23:33 +00:00
Kae..pl
45d1a0e772 Several fixes to animation loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8235 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-10 19:57:29 +00:00
Kae..pl
7c1c6dc065 Support for UV-coordinates mapping (only for the first texture at the moment).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8234 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-10 14:06:52 +00:00
Kae..pl
b8618eba26 Support for generating UV coordinates for 3D textures if they are not manually created.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8231 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-09 17:19:18 +00:00
Kae..pl
76d9fd3a15 Tube projection support for objects containing many meshes.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8230 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-09 17:08:46 +00:00
nor..67
cea09e02ed - apply some defaults to blender loader texture key when loading from file
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8226 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-08 23:36:29 +00:00
nor..67
450e40df32 - fix blender loader texture locating when blender model is loaded from assetmanager root
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8225 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-08 22:43:16 +00:00
nor..67
50a5ecc00e - fix relative image locating in blender loader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8223 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-08 22:31:25 +00:00
Kae..pl
b86c1f4e64 Generated textures refactoring.
* Algorithms changed (not depending on blender sources any more).
 * Improved loading speed (at least in some cases).
 * Unnecessary functions removed (there were a few :) ).
 * Several bugs fixed (some blending functions did not work well with textures; colorbands now calculated properly).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8222 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-08 20:42:42 +00:00
sha..rd
120a3d1e4f Blender Loader
* Correct calculation of spot light's inner and outer cone angles
 * Loaded lights are now attached to the model's root node instead of being foolishly discarded


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8209 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-07 02:39:02 +00:00
Kae..pl
0094d37e0f Loading constraints for blender 2.49 fix (warning is now shown when blender version is 2.50 or higher).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8182 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-04 20:55:06 +00:00
Kae..pl
578c92affc Support for loading SpotLight.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8100 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 21:05:10 +00:00
Kae..pl
cb3f57009f Bugfix: NPE was raised when the object had no material.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8099 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 20:58:39 +00:00
Kae..pl
87ba2fcb11 Fix to a bug that caused loader to crach when loading an object without textures.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8098 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 20:25:38 +00:00
Kae..pl
ef430fe04a Support for 'Normal' texture mapping for 3D textures.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8094 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 18:50:06 +00:00
Kae..pl
17392d2cf8 Support for image sphere projection on a mesh.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8092 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 18:18:32 +00:00
Kae..pl
263089b68f Fix to tube UV coordinates generation (image will not be upside down now).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8089 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-25 17:06:47 +00:00
Kae..pl
9a44e32fb2 Image loading changed during textures loading (using AssetManager now).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8074 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-24 18:17:23 +00:00
Kae..pl
ccb31e646b Small fix to musgrave texture generator.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8065 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-23 13:20:41 +00:00
Kae..pl
11b250ffe1 Support for texture's tube projection.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8059 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-22 21:10:52 +00:00
Kae..pl
3e1646a6cd Licence blocks added to texture generators.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8057 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-22 15:20:53 +00:00
Kae..pl
8f1e07a557 Moving projection calculations to a separate class.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8055 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-21 22:12:47 +00:00
Kae..pl
843cce9b30 Cube mapping for textures support.
Providing proper texture mapping data to UVCoordinatesGenerator.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8054 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-21 21:07:46 +00:00
Kae..pl
6c9395c4e9 Creating common setup for both types of loaders.
Fixing a bug with loading objects from all layers when using BlenderModelLoader.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8043 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-20 11:05:59 +00:00
Kae..pl
daa86cfec7 Disabling loading all assets by default. Now unlinked assets or those being on inactive layers will not be loaded if they are not requested to.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8042 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-20 10:20:46 +00:00
Kae..pl
d6574a8cc7 Importing generated textures as 3D textures.
UV coordinates generator added (will handle different UV coordinates generation methods in the future).
MaterialHelper refactoring.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8039 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-19 23:16:32 +00:00
Kae..pl
ab26912f60 Adding changes pointed out by madlion.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8036 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-18 11:41:51 +00:00
sha..rd
17b949fea2 Blender Loader
* Enable mipmaps for packed and generated textures
 * Better handling of material flags for 2.58
 * Allow loading of meshes with no vertices instead of crashing

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8005 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-13 19:01:52 +00:00
sha..rd
984721cc75 * AnimControl now supports abstract animation (doesn't have to be BoneAnimation)
* Misc javadocs
 * Fix for SoundHandleJme.stop()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7988 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-07 00:08:22 +00:00
Kae..pl
1f90dcb8ff Textures importing refactoring in blender loader.
Each generated texture has now its own generator class.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7975 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-04 21:39:35 +00:00
Kae..pl
1e7b7860fe Large blender importer refactoring:
- bleder features separated between different packages
- refactoring of modifier system (each modifier now in a separate class)
- refactoring of constraints system (each constraint now in a separate class)
- no converter interface
- every helper supports versions 2.49 and 2.5+.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7953 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-30 23:28:21 +00:00
Kae..pl
a6700cc754 Minro javadoc update.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7950 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-30 14:43:10 +00:00
Kae..pl
8de7a5755e Fix to mirror modifier loading (buffer bounds were exceeded in some cases).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7945 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 12:16:37 +00:00
Kae..pl
fbd1cb837b Ignoring textures that are defined but disabled in material.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7944 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 09:33:35 +00:00
Kae..pl
733195c33c Fix with reading the proper buffer.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7943 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 08:43:23 +00:00