2547 Commits

Author SHA1 Message Date
Sha..rd
2bfd91ef2e * MeshLoader will no longer generate NaN weights for vertices with no bone-weight assignments. Instead it will generate zero which will cause those vertices to remain in the bind pose.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9727 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:26:08 +00:00
Sha..rd
a2ff0ba179 * Fix issue where a bone weight in a vertex was set to all zero would cause the vertex to snap to 0,0,0
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9726 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:24:10 +00:00
Sha..rd
8c2bdebbae * AnimControl now forces the animation map to be non-null in all cases - when creating a new AnimControl, cloning it or loading from J3O.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9725 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:22:31 +00:00
Sha..rd
1ddb7903db * OBJ loader now supports loading models that use negative indices in the face statement
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9724 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:21:21 +00:00
Sha..rd
e848c53ef4 * Add small work around in MTL loader: Do not accept "d 0" or "Tr 0" as they hide the model
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9723 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:20:34 +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
c929d0ca41 Bugfix: added jme serialization for CameraNode, LighNode, CameraControl and LightControl (as suggested by @rectalogic).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9721 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-13 17:57:14 +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
a498a1cdc9 Changing default value for controlDir. It is now SpatialToCamera instead of CameraToSpatial.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9718 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-13 14:47:38 +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
iwg..ic
d2b97fb422 Fix issue with onPause trying to cancel vibration when user has not defined Vibration Service permission in manifest.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9716 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 03:30:18 +00:00
iwg..ic
5a71423624 Fix issue with BEST config not choosing a valid config on some devices when RGBA is not matched (ie no config exists with 0bit alpha). ConfigChooser now looks for an exact match of all attributes first, then a match of RGBA only, then uses the first available config.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9715 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 01:07:25 +00:00
iwg..ic
3aa223360a Add check for no Vibration Service on Device
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9714 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-11 00:52:49 +00:00
Sha..rd
07a6ca931f * Fix "particlesPerSecond set to 0 accumulates timeDiff" issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9713 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-10 23:18:40 +00:00
Sha..rd
6aefda2e38 * BatchNode / GeometryBatchFactory now batch animated models correctly. Note that any control(s) are removed during the batching process, and must be re-added after batching for animation to work.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9712 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-10 23:09:52 +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
Sha..rd
2a11aae3a4 * ImageRaster now supports Android. However the constructor can no longer be used. Instead user should create it by using ImageRaster.create() which automatically defers the handling to JmeSystem.
* TestImageRaster tests both reading and writing from various types of formats now by chaining the image conversions
 * 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9710 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-09 23:39:45 +00:00
iwg..ic
5aca23f9b3 Changed Android Joystick Rumble to pulses. Rumble amount is used to determine length of vibration pulse. Vibration now stays on (pulsing based on rumble amount) until user sets joystick.rumble(0).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9709 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-08 20:56:29 +00:00
iwg..ic
f219c8596d Added Rumble support for Android. If joystick.rumble is used, then the Manifest file must have <uses-permission android:name="android.permission.VIBRATE"/>. Since Android doesn't allow for changing the vibration intensity, the rumble amount is convert into a vibration time duration in milliseconds (ie rumble amount of 0.25 = 250 milliseconds).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9708 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-08 14:23:51 +00:00
Sha..rd
6cddcf8f1d * Fix crash in TestWalkingChar
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9707 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-06 03:52:32 +00:00
Sha..rd
3c4405868a * Fix incorrect bounding box calculation when points are not centered on origin
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9706 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-06 03:51:46 +00:00
Sha..om
be1aa87f55 * Fixed issue 518 .. again
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9705 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-05 22:02:27 +00:00
Sha..om
c8b3ae7f64 * Fix issue 518
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9704 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-05 21:58:12 +00:00
ShA..Rd
9ad757596b * Fixed issue where using images with pregenerated mips would cause performance loss due to them being generated again and again
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9703 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-05 21:26:05 +00:00
ShA..Rd
96c4b31e0f * Partial fix for issue 532 and issue 533
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9702 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-05 20:39:14 +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
iwg..om
39f265f50e Adding Android Sensor support as simulated joysticks. Only orientation is supported right now, more sensor types to be added later. When device orientation changes, Joystick[0] is updated just like using an actual joystick. Users need to add "joystickEventsEnabled = true" to the MainActivity to enable the orientation joystick so battery life is conserved if sensor data is not desired. See http://jmonkeyengine.org/groups/android/forum/topic/creating-engine-support-for-android-sensor-input/ for the long history.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9700 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-01 21:10:41 +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
rem..om
e253546982 ChaseCamera : added a hideCursorOnRotate flag to the chaseCam to prevent interfering with nifty.
See forum post
http://jmonkeyengine.org/groups/gui/forum/topic/nifty-window-not-accepting-input-after-clicking-into-the-scene/?topic_page=3&num=15#post-189063

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9697 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-01 08:36:17 +00:00
rem..om
5c9afd9d59 LightNode now properly works with SpotLight
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9696 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-31 19:20:09 +00:00
nor..67
23e949974a - change default error message of engine
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9695 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-29 15:58:18 +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
PSp..om
c6bc0bf79b Added a null listener check just to help track down
odd errors.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9689 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-26 17:42:36 +00:00
nor..67
e154d0ebab - change fix for Android SDK 20 build file flaw
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9688 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-26 12:54:35 +00:00
nor..67
1c1afd5712 - add fix for Android SDK 20 build file flaw
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9687 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-26 12:13:08 +00:00
nor..67
a98fbb83b6 - change natives extraction to support audio FX on osx (for extracting openal.dylib for soft fx)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9686 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-25 11:12:45 +00:00
nor..67
639449db4d - update lwjgl to 2.8.4 (applet and desktop)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9685 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-25 11:07:17 +00:00
nor..67
96b60664a9 - add Filter support to AssetManager (thanks to @rectalogic)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9684 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-24 18:17:18 +00:00
bre..ns
cf103e191d axis-aligned terrain tool snapping support, thanks @shirkit
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9683 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-24 17:04:41 +00:00
bre..ns
2cf1455867 removed the leftovers of the terrain editor border tool
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9682 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-24 04:13:02 +00:00
bre..ns
0fe8394916 terrain tool changes and improvements, thanks @Shirkit
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9681 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-23 16:05:38 +00:00
dan..om
133bd21ab9 - Fixed bug where if you set minDistance that is higher than the current distance, the camera view would still remain at the old distance.
- Same as above but for maxDistance.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9680 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-23 06:20:15 +00:00
nor..67
c842eefb90 - add serialization to DepthOfFieldFilter (thanks to @rectalogic)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9679 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-22 21:06:16 +00:00
nor..67
abfc4d6c45 - add some javadoc to PhysicsRayTestResult
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9678 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-22 20:24:02 +00:00