530 Commits

Author SHA1 Message Date
Sha..rd
924d83ffdb * Fixed up ThreadingManager to actually work with the asset manager, even though nobody uses it
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9310 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 20:00:42 +00:00
Sha..rd
bd4214f3bd * AssetCache is now an interface and can be extended by user. Moved to com.jme3.asset.cache package.
* Added 3 implementations of AssetCache: SimpleAssetCache, WeakRefAssetCache and WeakRefCloneAssetCache
 * Added AssetProcessor interface that handles cloning and post processing of assets after they are loaded
 * AssetKey can now configure which cache/processor to use for a particular asset type 
 * Added AssetManager unregisterLoader method
 * AssetManager now supports more than one AssetLoadListener 
 * Javadoc improvements in AssetManager 
 * Asset interface now renamed to CloneableSmartAsset (which more accurately describes its behavior and use case)
 * DesktopAssetManager now makes proper use of the new AssetProcessor/AssetCache classes when handling asset loading 
 * Added proper equals/hashCode methods to many AssetKey subclasses, which is required for the new system to work properly
 * All AssetKeys were rewritten to work with the new asset system 
 * loadAsset(AudioKey) now returns an AudioNode and not AudioData, similar to the behavior of loadAsset(TextureKey) returning a Texture and not an Image. Because of that, the key storage in AudioData has been removed. 
 * Texture, Spatial, and Material are all cloneable smart assets now and will be cleared from the cache when all instances become unreachable
 * Improved the existing TestAssetCache test to make sure the new system works 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9309 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:58:17 +00:00
Sha..rd
f844ca429f * JmeFormatter now uses non threadsafe StringBuilder for performance
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9304 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:36:02 +00:00
Sha..rd
f6b5335976 * Formatting and minor changes in Curve, Cylinder, PQTorus
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9303 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:34:19 +00:00
Sha..rd
0aa5efb028 * Added license text for asset exceptions
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9302 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:32:11 +00:00
Sha..rd
c67e6d32c5 * Since AssetManager registerLoader/Locator method that take a string class are deprecated, AssetConfig will no longer use them
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9301 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:30:47 +00:00
rem..om
4155cacf74 PssmShadowRenderer : post shadow pas does not write depth anymore, also added a slight polyOffset to avoid z-fighting
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9293 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-12 19:36:40 +00:00
rem..om
d50efde277 Fixed imports from last commit
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9290 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-11 22:28:43 +00:00
Sha..rd
ddca06e607 * Materials.equals() method now works correctly (checking if material will look the same if rendered, in 99.9% of cases..)
* ListMap entries now implement equals method as required by spec

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9289 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-11 22:20:23 +00:00
rem..om
c3ed68cfbb AnimationTrack null checked the animation channel in onStop, onPause and setLoopMode to avoid NPE
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9288 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-11 22:09:37 +00:00
rem..om
bc0207f1fc BatchNode is now indexing the batches by geometry to easily retrieve them during the update phase.
This is fixing this issue http://jmonkeyengine.org/groups/general-2/forum/topic/batchnode-not-accounting-for-transformations-in-cloned-spatials/#post-170945

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9287 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-11 22:03:11 +00:00
nor..67
b7affd0147 - optimize BatchNode a bit
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9286 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-10 22:50:41 +00:00
rem..om
732955a56c fixed BoundingBox merge method javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9282 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-09 08:24:08 +00:00
rem..om
e5b99b5035 ShadowUtil now use tempVars instead of instantiating new objects
Matrix4f now has a set method that teakes 16 floats like the constructor

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9281 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-09 08:00:00 +00:00
rem..om
cecf807001 SpotLight, inner and outer angle cos is now correctly packed when opening a saved light
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9280 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-09 07:35:20 +00:00
rem..om
bf55974bf4 Changed the way post shadow pass is done. It's now a technique of the lighting material definition.
This allow to have shadows that fully works with partially transparent objects (like trees).
If a material does not have the postShadow technique, the renderer uses the fallback material (like before).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9279 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-07 19:55:43 +00:00
rem..om
7445565df3 Fixed buffer overflow when increasing the size of a BitmapText (issue 486)
thanks  to Daniel Brunton for the patch
http://code.google.com/p/jmonkeyengine/issues/detail?id=486&colspec=ID%20Type%20Status%20Component%20Priority%20Product%20Milestone%20Owner%20Summary&start=100

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9278 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-07 08:26:17 +00:00
Sha..rd
02742f720f * AppSettings now supports floating point values
* AppSettings now supports custom user settings
 * Add test case TestCustomAppSettings to test custom user settings

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9276 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-04 00:31:52 +00:00
rem..om
a8bfb54b02 Fixed the mix up in fromAngles method's javadoc in Quaternion, pitch is Attitude and roll is Bank
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9273 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-01 16:04:32 +00:00
rem..om
f156b31ce1 Spline now clones the control points to not keep a reference on the given vector.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9272 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-01 08:23:45 +00:00
rem..om
a4c1fd7670 Fixed naming of pitch, yaw, roll thing in rotation that was wrong. Now they are named xAngle, yAngle, zAngle in Spatial and Quaternion. Pitch , Yaw, Roll are just mentionned in the javadoc.
There has been several posts about that, the last in date is here http://jmonkeyengine.org/groups/general-2/forum/topic/confused-about-euler-axes-and-jme-axes/#post-169736

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-01 08:22:26 +00:00
PSp..om
198979bf5a Removed setEnabled() and isEnabled() from the Control
interface since no engine uses of Control will ever call
these methods.  The functionality is still left in 
AbstractControl which makes more sense since it is up
to the control implementation to enable or disable itself
as it sees fit.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9268 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-29 18:49:22 +00:00
Sha..rd
828c8071f6 * Fix BufferUtils.destroyDirectBuffer() in OpenJDK7
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9264 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-25 19:28:05 +00:00
Sha..rd
8973175783 * Try to fix linkVertices in TangentBinormalGenerator (prevent assigning same tangent to verts with different texcoord)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9263 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-25 19:09:03 +00:00
Sha..rd
2cdeb6ebff * Fix animation blending from bind pose issue
* Fix look/cycle modes for animations to prevent result time from being out of range

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9262 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-25 18:41:38 +00:00
rem..om
fecf355de2 ChaseCam : changed all private attributes and methods to protected so people can extend the chaseCam behavior as they see fit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9260 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-24 09:05:08 +00:00
rem..om
cf93c2c6fc Fixed issue when the last waypoint of a motion path was not triggering listeners
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9259 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 10:50:36 +00:00
rem..om
7f6ce84ffd Implemented setSpeed for animationTrack as it needs special treatment
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9258 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 10:38:32 +00:00
rem..om
1945a0c1c0 BatchNode and GeometryBatchFactory now uses the material's isEqual method to gather the geometries to batch
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9257 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 10:00:49 +00:00
rem..om
55b8188d20 Material has now a isEqual method that compares materialDef, material params and material additional render state
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9256 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 09:46:52 +00:00
sky..ok
533fb86c50 Down to 260 Javadoc warnings from 324
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-22 00:22:09 +00:00
sky..ok
0af3e46a45 Added move speed and rotate speed getters in FlyByCamera
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9253 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-21 21:18:39 +00:00
dan..om
9378179d94 - Fixed camera "twisting" when rotating up/down when zoomed-in. The min rotation is hard-coded to -90 degrees down (the up remain settable).
- Added flag to enable rotating down when zoomed out.
- Added getter/setter to enable/query if down rotation is only on "close view" (zoomed-in).
- Javadoc for certain method clearly explaining the "angles" are in radian.

Note:
To enable down rotation when zoomed out, you have to call setDownRotateOnCloseViewOnly with FALSE and also set a minimum radian with setMinVerticalRotation(radian) as it is by default to 0.

Ex:
chaseCam.setDownRotateOnCloseViewOnly(false);
chaseCam.setMinVerticalRotation(FastMath.DEG_TO_RAD * - 90);

This would enable rotation when zoomed-out down to -90 degrees, effectively having the camera looking up to its tied spatial.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9247 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-14 01:10:19 +00:00
rem..om
94e0937bb6 Fixed an ArrayIndexOutOfBound in animationFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9246 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-12 21:09:57 +00:00
rem..om
07e96d02eb Fixed an issue in AnimationTrack when time was skipped out of bounds of the animation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9245 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-12 20:43:07 +00:00
PSp..om
511a11fc7c Moved the creation of the guiFont into a separate
method that can be overridden by subclasses.
This isn't really complicated enough to move to
an app state and the fact that the field is 
exposed is already sort of "unclean" anyway.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9240 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-09 07:12:29 +00:00
rem..om
8eae2cfd8a Cinematic, fixed time seeking when having several SpatialAnimation with a speed > 1
fixed an issue in soundTrack crashing when time was < 0
properly implemented GuiTrack stop() method

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9239 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-08 17:10:47 +00:00
PSp..om
2bde71b08a Early out on initializePending and terminatePending
if the array is empty.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9233 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-05 19:22:33 +00:00
rem..om
92b97d38d8 Committed a patch from iwgeric, to make nifty Textfield display the soft keyboard on tap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9227 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-02 10:23:22 +00:00
rem..om
859123673e Committed patch from iwgEric that fixes a couple of issues on android touchinput http://jmonkeyengine.org/groups/android/forum/topic/error-with-nifty-and-awt/?topic_page=2#post-165433
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9226 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-02 09:12:38 +00:00
nor..67
50f266f843 - optimize BatchNode.batch a bit
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9224 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-01 00:48:42 +00:00
rem..om
5671358657 Soft particles implementation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9223 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-29 22:26:37 +00:00
Sha..om
9ddb941daa * Fix javadoc error in Transform.loadIdentity()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9220 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-28 15:58:35 +00:00
Sha..rd
be7a22e3d5 * Remove most common usage of IntMap.iterator()
* Correct small typo in UniformBinding
 * Make IntMap.iterator() make new iterator each time 
 * Prevent TangentBinormalGenerator from crashing when it encounters some mesh without texcoord/normal buffers
 * AWTLoader now properly fails when AWT can't load the image instead of returning null 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9219 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-28 03:57:54 +00:00
PSp..om
5cf9954814 Added a comment with what I think the taskQueue
drain method is really doing... only simplified.
I don't trust my eyes enough to make such a core
change without co-verification. :)


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9218 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-28 01:44:13 +00:00
PSp..om
dde5d0a510 Added a ResetStatsState so that the stats are always
reset even if the developer has overridden simpleUpdate().
As long Application's stateManager is run, the stats will
get reset no matter how many views there are or if they
are disabled or not.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9213 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-26 01:27:07 +00:00
Sha..rd
aa8298ecdf * Fixed BufferUtils on android when used on non bytebuffers
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9211 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 23:01:31 +00:00
Sha..rd
b2e086bbee * Added ResolutionInverse (thanks kwando)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9210 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 22:48:59 +00:00
Sha..rd
7a7b2c3f5f * Fixed issue with WorldMatrixInverse uniform binding being incorrect (thanks survivor)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9209 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 22:44:07 +00:00
Sha..rd
2cbbfaa3b9 * It is now possible to modify an existing buffer through Mesh.setBuffer() (previous behavior was to crash)
* Add TestExpandingTorus to demonstrate this feature

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9208 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 22:12:09 +00:00