2760 Commits

Author SHA1 Message Date
Sha..rd
dbc59934a7 * Added new image codec that should be faster for byte component image formats like RGBA8
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-16 00:54:51 +00:00
Sha..rd
06d18c1366 * When a "severe" AssetNotFoundException is thrown for subassets, it won't be ignored by SceneLoader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9739 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-16 00:53:33 +00:00
nor..67
687dbb4d13 SDK:
- re-add ogrexml check for mesh.xml files

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9738 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-16 00:17:01 +00:00
nor..67
02ed25ed0d SDK:
- remove ogrexml check for material name
- remove dedicated loadAsset/saveAsset overrides in OgreXMLDataObject and OgreSceneDataObject

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9737 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 23:58:48 +00:00
Sha..rd
cf2bd1de24 * dotScene loader can now load cameras (loads them as CameraNode). Fixes issue 226
* dotScene loader now correctly loads materials in <externals> tag. This means models exported in "Separated Materials" mode now work. Also models exported in single material mode no longer require you to rename them to match the scene name. Fixes issue 519.
 * dotScene loader also considers the ambient color in the <environment> tag and adds an AmbientLight to the scene.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9736 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 20:29:55 +00:00
Sha..rd
a5275875a7 * HoverTank blender model now references the correct textures (PNG -> JPG)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9735 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 20:18:35 +00:00
Sha..rd
a7bcb2b6e6 * Buggy model no longer has embedded lights
* Buggy model now uses J3M file by default 
 * Enabled specular for buggy - since specular color is set to black by default

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9734 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 20:07:42 +00:00
Sha..rd
f9e99ab956 * Fixed rather silly bounding box computation bug. Thanks to @raistm.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9733 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 19:36:42 +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
rem..om
5635bc2ff1 Geometry : fixed an issue where batching information were copied over cloning causing problem because the cloned geometry was marked as batched but was not.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9731 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 13:49:34 +00:00
rem..om
2577485727 BufferUtils : ensureLargeEnough now set the limit to the buffer capacity if it exists to avoid creating a new buffer instead of reusing the previous one.
see http://jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/bugbufferleak-in-ensurelargeenoughbitmaptextpage/?#post-188976

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9730 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-15 12:09:07 +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
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