141 Commits

Author SHA1 Message Date
Kae..pl
2bc7128eb6 Fix to loading meshes that contain many vertices.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9225 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-01 21:35:32 +00:00
Kae..pl
787e912591 Fixes to AWT textures blending.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9222 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-29 20:40:25 +00:00
Kae..pl
2b004e803d Better support for textures blending.
- support for DDS blending (without textures decompression :) )
- support for RGBA textures blending
- support for generated textures blending
Also done blending refactoring. Blending functions moved to separated classes from TextureHelper.
It will increase code redability.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9188 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-23 21:55:56 +00:00
Sha..om
06f5ad5bce * Fix Blender 2.62 issue with uint64_t
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9186 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-23 14:05:59 +00:00
Kae..pl
c23c7e1378 Fix to textures loading (material color should now not interfere with the texture).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9179 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-18 19:35:20 +00:00
Kae..pl
3d22756dfc Added support for loading the following texture types: DXT1, DXT3 and DXT5.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9178 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-18 18:57:35 +00:00
Kae..pl
026a5bd0a6 Removed unnecessary System.out's.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9136 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-05 10:51:47 +00:00
Kae..pl
0e9f7ea22f Fixes to limit rotation constraint.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9125 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-01 18:45:45 +00:00
Kae..pl
65afa0bbc8 Fixes to spot light loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9117 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-28 10:25:11 +00:00
Kae..pl
3a84693f68 Many changes:
- simplified implementation for bones loading
- static bones poses discarded
- loading of object animation for blender 2.50+ added (didn't work for these versions before)
- several small bugfixes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9115 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-27 21:22:11 +00:00
Sha..rd
3695f8f1fc * Blender loader now writes color as a normalized byte buffer, reduces mem usage by 4 times
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9015 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-09 05:15:53 +00:00
Sha..rd
3e6d649c48 * Fixed incorrect byte->float conversion when loading color buffer in Blender loader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9014 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-09 05:10:06 +00:00
Sha..rd
8cca61b3ef * Fixed crash in blender loader when given textures without extension
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9013 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-09 04:49:34 +00:00
Sha..rd
3d54ab3378 * Blender loader will now extract vertex data into separate vertex buffers for meshes that use multiple materials instead of sharing them
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9007 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-08 23:48:28 +00:00
Sha..rd
03fb684b10 * Blender now supports loading color for shadeless materials
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9006 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-08 23:46:57 +00:00
sky..om
8e721f5c93 Brought the number of Javadoc workings down to 322 from 391; Updated year to 2012 in license header of affected files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8980 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-03 06:54:07 +00:00
sky..om
1801f1f336 Brought the number of Javadoc workings down to 391 from 410
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8979 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-03 04:59:16 +00:00
Kae..pl
2ac215f477 Fix a bug with bad bones placing.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8951 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-21 22:10:03 +00:00
Kae..pl
e4c4380ab5 Fixing a bug with cloning SkeletonControl for Spatial. The anim control will always be added if the object has an armature, even if it has no animations.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8950 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-21 20:42:23 +00:00
Kae..pl
f74d0311ae Bugfix: LocLimitConstraint erased other tracks except the one it was supposed to alter.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8947 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-19 21:47:55 +00:00
Kae..pl
8297877114 Armature bugfix: bones had constraints applied before they were loaded (skeleton loading moved to ObjectHelper).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8946 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-19 21:47:19 +00:00
Kae..pl
f232b11318 Material name added.
Reading material's name from blender added.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8945 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-19 20:10:52 +00:00
nor..67
f6ccfa79bb - fix non-UTF8 characters in bullet importer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8921 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-13 22:52:14 +00:00
Kae..pl
0e4f115e84 FIXED: Issue 430: Blender loader sets blend mode = alpha on material that is not really transparent
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8900 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-08 17:37:58 +00:00
Kae..pl
4b55383ba0 FIXED: Issue 427: Blender loader writes BindPose buffers without BoneIndex or BoneWeight data
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8899 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-08 12:38:19 +00:00
Kae..pl
7e3e35c7f2 FIXED: Issue 428: Blender loader doesn't compress index buffers
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8898 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-08 12:06:25 +00:00
Kae..pl
7f694b3ba0 BUGFIX: Issue 434: Blender loader loads model with incorrect Y-up transform
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8897 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-08 11:44:23 +00:00
Kae..pl
a1d73d159d Many changes to blender importer:
- constraints refactoring (easier use and less code)
- constraints support for blender 2.50+ (although not all of the constraints are supported)
- Y is up axis issue fixed for animations
- owner and target spaces evaluation support for constraints (two bone space modes still to do)
- simplified code for bones loading (though still needs some refactoring)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8877 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-06 22:33:49 +00:00
nor..67
3cdaf0e051 jme3:
- fix imports in all classes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8843 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 14:06:48 +00:00
Kae..pl
67930542ee Fixes to Y is up axis arrow.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8544 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-29 16:21:18 +00:00
Kae..pl
ae739ef441 Fix in normals calculations when Y is up axis.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8528 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-25 19:26:58 +00:00
Kae..pl
18ce27faae Changes to Y-is-Up-Axis issue.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8516 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-23 14:30:22 +00:00
Kae..pl
b7a3818b60 Fixing a bug that occured when the model was invalid and had no faces (only a line for example).
Such model will not be visible.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-20 18:06:18 +00:00
sha..rd
bb52601e4e * Gutted out SpatialAnimation
* Fix crash in TestObjectAnimation**

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8420 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-16 23:28:48 +00:00
sha..rd
e3366f14b8 Animation system revamp
* Track is no longer generic and doesn't need to be
 * Removed implementation specific methods from Track 
 * Animation class no longer casts the track to a specific type to call setTime(). The specific Track.setTime() implementation makes the appropriate operations.
 * TempVars instance is now passed down from the AnimControl to the tracks to get rid of all temp members in the tracks 
 * Misc docs and comment changes
 * J3O files that reference BoneAnimation or SpatialAnimation class are automatically redirected to Animation class
 * MeshAnimation, previously unused, is now completely obsolete and has been deleted 
 * PoseTrack, previously unused, is now deprecated until pose loading support is added 
 * Proper formatting for SpatialTrack

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8419 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-16 23:15:55 +00:00
Kae..pl
4cde46bee5 Attaching an empty to its parent.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8364 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-07 13:39:17 +00:00
Kae..pl
984bab2ae9 Removing fix up axis checking for mesh vertices.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8361 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-05 05:56:51 +00:00
Kae..pl
952081b192 Fixing a bug that caused NPE to be thrown when no actions where applied to armature.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8360 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-05 05:56:12 +00:00
Kae..pl
7492410485 Moving 3D textures shaders to blender packages.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8349 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-04 17:18:12 +00:00
Kae..pl
3969d34a03 Fixes to textures merging.
Adding logs to the image loading method.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8328 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-02 10:53:48 +00:00
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