2462 Commits

Author SHA1 Message Date
Sha..rd
12d3e277e6 * Added new Jheora video system, however as advertised, audio will NOT work. If you want to try and fix it, go ahead.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9312 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 20:05:56 +00:00
Sha..rd
988110e360 * Removed deprecated methods from AudioNode
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9311 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 20:01:15 +00:00
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
0c37fc46e9 * Fix crash in TestAbsoluteLocators
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9308 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:45:34 +00:00
Sha..rd
79194f054c * License and formatting in GeneratedTextureKey
* TestJoystick now assigns input mappings for all joysticks instead of just the first one 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9307 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:43:24 +00:00
Sha..rd
633871f58f * TestLeakingGL no longer uses Mesh.setInterleaved() which is deprecated
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9306 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:42:01 +00:00
Sha..rd
90f32dc703 * Proper equals/hashCode methods in OgreMaterialKey/OgreMeshKey
* Formatting in MaterialExtensionSet

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9305 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:38:42 +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
Sha..rd
0c1294c57c * Mesh/GImpact collision shapes now support triangle strips/fans through Mesh.getIndicesAsList() method
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9300 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:29:07 +00:00
Sha..rd
1da836ea72 * Blender user properties no longer savable, as it is not allowed to have non-core data in j3o
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9299 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:28:01 +00:00
Sha..rd
f68475319a * Added new image format: Depth24Stencil8, for framebuffers and textures that need stencil data
* Renderer now uses getArray() to access mesh's buffers
 * GL image format data now stored in a special data structure for easier management (instead of huge switch/case statement)
 * Android texture loading: If the format is not supported by GLES spec, the texture upload will fail

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9298 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:26:22 +00:00
Sha..rd
cf9d5b5ebc * Remove some useless files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9297 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:21:41 +00:00
rem..om
2966b6a7b0 AndroidAudioRenderer : better mediaplayer life cycle handling
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9296 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 13:15:39 +00:00
rem..om
544e1f6342 Shaders : The line numbers on error now correctly takes the version line added to the shader into account
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9295 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 11:13:34 +00:00
rem..om
3a0e1f50ac Shaders : The line number is now printed for each line of shader code in the standard error output when a shader fail to compile.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9294 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-12 20:08:38 +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
Sha..rd
a2ad677cc5 * Better version of TestMaterialCompare
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9292 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-11 22:35:29 +00:00
rem..om
91ea95328e Fixed isEqual to equals in GeometryBatchFactory and in TestMaterialCompare
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9291 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-11 22:30:29 +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
sky..ok
0345dd9601 Better Javadoc for PhysicsVehicle#getForwardVector(Vector3f)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9285 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-10 17:53:28 +00:00
Sha..om
9aacd96926 * PostShadowPSSM: Made texSize const, to fix shader error
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9284 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-09 17:39:43 +00:00
nor..67
904d835742 Add variable quality and video file frame count to VideoRecorderAppState, thanks to @entrusc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9283 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-09 14:02:38 +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
7c101bb097 * Forgot to commit the test case
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9277 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-04 00:32:34 +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
bre..ns
64b736f2e9 fix a bug in terrain getHeight for some edge cases
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9275 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-03 15:13:31 +00:00
rem..om
e3ed779fc9 Committed iwgeric patch for native bullet PhysicCollisionEvent
http://jmonkeyengine.org/groups/android/forum/topic/null-objects-in-collision-callbacks-on-android-resolved/#post-169899

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9274 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-02 20:03:54 +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
bre..ns
3dc9a591b7 whoops, I blame jesus for not adding this class
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9270 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-31 06:18:10 +00:00
bre..ns
a1249b551d * refactored terrain lod to move most of the lod code to the control
* lodDistanceCalculator no longer queries the world transforms of the terrain on the background thread

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9269 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-30 04:16:55 +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
PSp..om
4e12127f27 Remove the fragile camNode.getControl(0).setEnabled()
and replaced it with camNode.setEnabled().
A) it is kind of scary to rely on the control index in
this case.
B) CameraNode.setEnabled() already calls setEnabled()
on the CameraControl.
An acceptable alternative would be:
camNode.getControl(CameraControl.class).setEnabled()
but I didn't see the point of it.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9267 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-29 18:45:47 +00:00
nor..67
0e315d57da SDK:
- make sure important files node closes AndroidManifest.xml

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9266 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-27 12:17:51 +00:00
nor..67
72c6689656 SDK:
- make android SDK tool refresh folder when creating the android project

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9265 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-26 23:01:44 +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