544 Commits

Author SHA1 Message Date
rem..om
c02b24da12 Cinematics : renamed all XXXTrack in cinematic.event to XXXEvent, so there is no confusion with the Tracks in the animation system.
Old XXXTrack classes are now deprecated an just extend the corresponding XXXEvent class.
Also removed PositionTrack, RotationTrack and ScaleTrack for they are deprecated since alpha 3.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9567 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-18 21:16:05 +00:00
rem..om
94ae185d6d Animation tracks is now a SafeArrayList instead of an array. One can now add a track to an Animation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9565 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-18 16:26:05 +00:00
rem..om
96ae823504 Fixed viewport uniforms binding
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9561 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-11 15:55:15 +00:00
Sha..rd
0a3f7903a4 * Added methods to BufferUtils to create Vector4f buffers or set them
* Start implementing issue 504 (capacity -> limit)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9556 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-11 00:39:25 +00:00
Sha..rd
f401c9c1da * Material world parameters are now set in uniformBindingManager instead of RenderManager
* Fix issue 497 -> TempVars are no longer used to set world parameters so they cannot leak onto other params or lighting values
 * Uniform is no longer serializable
 * Cleaned up uniform from old/outdated stuff

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9555 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-11 00:36:06 +00:00
Sha..rd
d46ee26002 * The bounding box will compute faster, maybe even more faster on Android .. If its bad, please go ahead and complain
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9548 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 04:02:57 +00:00
Sha..rd
7825249952 * Made some classes pretty, hope you like it
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9547 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 04:00:03 +00:00
Sha..rd
27e97c34da * 'FixedFunc' technique were wiped out entirely. Not useful since now we choose default technique based on caps anyway.
^ Make sure to fix your materials by removing the 'FixedFunc' name from your fixed pipeline techniques! Or remove then entirely if the material doesn't support OpenGL1 ...

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9546 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 03:56:51 +00:00
Sha..rd
55d75c5abc * Shader now stores shader language in the ShaderSources instead of the Shader itself (everything makes a lot more sense now).
^ Make sure your shader languages are appropriate for each shader type (vert / frag) in your J3MS!
 * Shaders no longer have the "usable" member and the renderers don't use it either (its useless)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9545 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 03:53:53 +00:00
Sha..rd
af7435ffdf * jME3 now shows error dialog on exception by default (unless user overrides handleError)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9544 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 03:49:05 +00:00
rem..om
c2ac08f70b MotionPath : fixed waypoint triggering on low framerate.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9540 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-07 13:19:13 +00:00
roo..li
a6c4f99412 FastMath: fixed javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9539 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-05 13:23:20 +00:00
Sha..rd
fd9f274049 * Committed fixes to mesh animation classes (not currently used). See http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/fix-to-ogre-mesh-animations-deserializing
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9534 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-30 18:03:51 +00:00
PSp..om
d649505a6c Modified to do the method lookups on first class
access and removed the (now) unnecessary threading
synchronization stuff.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9528 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-26 06:58:59 +00:00
PSp..om
53dd4c2941 Some additional null checks while I'm in the area.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9517 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-20 19:36:18 +00:00
PSp..om
11f686b1e0 Some cheap defensive checks that make a nicer
(and more local in some cases) error for the caller.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9516 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-20 19:35:34 +00:00
rem..om
9349bd97c6 MotionPath.setSpeed can now be fed with a negative value to go backward. Waypoints will be properly triggered and the spatial will stop if it reaches the end of the path.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9505 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-16 15:06:47 +00:00
Sha..rd
c373f70d01 * Fixed issue where a model loaded from J3O would crash on render (thanks ghoust)
* Uniform.toString() now handles the case where name = null

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9497 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-15 02:27:08 +00:00
Sha..rd
5730bf67d8 * Removed useless code / formatted DefineList
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9494 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-14 00:52:35 +00:00
Sha..rd
b007fd672a * Added IndexBuffer.wrapIndexBuffer() for wrapping any buffer (convenience method)
* All index buffers now rewind the buffer before allowing any read/write ops

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9493 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-14 00:52:04 +00:00
Sha..rd
fd03d28d81 * Added AssetKey.clone()
* WeakRefCloneAssetCache will attempt to collect GCd assets more often by not relying WeakHashMap to do so

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9492 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-14 00:25:21 +00:00
Sha..rd
7b9b9905ef * Removed workarounds for setting material parameter with m_ prefix. From now on it will only be supported when loading really old J3O files.
* Small optimization: if technique is already loaded, define list will not be reconstructed on define change

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9491 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-14 00:21:50 +00:00
dan..om
5ac9953f62 Implemented the ability to change the mouse cursor.
The way to do this is by calling inputManager.setMouseCursor("path/to/cursor/in/assets/cursor.ani").

NOTE: Supported formats are  "RIFF-wrapped" .ani, .cur and .ico. Those can be found everywhere on the web and are the majority of icons found. If the file format is unrecognized the loader will crash with an appropriate message (hopefully).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9484 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-11 21:18:52 +00:00
rem..om
b97f8c1271 BatchNode : fixed an issue when a geometry was not unbatched when removed with sometihing else than removeFromParent
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-08 20:22:36 +00:00
rem..om
855676173a Re fixed material contentEquals crash when technique is null...but better
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9459 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-07 22:04:50 +00:00
rem..om
3e35e32b2d Fixed material contentEquals crash when technique is null.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9458 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-07 21:59:31 +00:00
nor..67
ea0be5cf9f - fix imports across engine
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9451 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-03 13:10:26 +00:00
Sha..om
2f2c44d6b1 * TangentBinormalGenerator will replace the tangent buffer if it already exists on the mesh, instead of crashing
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9445 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 20:44:23 +00:00
Sha..om
68551c8c17 * Fix issue 490
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9444 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 04:16:13 +00:00
Sha..om
59336dee4d * Fix issue 464
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9443 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 04:09:27 +00:00
sky..ok
1c1a6a0421 Javadoc fixes from wezrule: http://jmonkeyengine.org/groups/documentation-jme3/forum/topic/diff-for-quaternion-few-spelling-mistakes-and-inconsistencies/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9414 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-23 11:14:20 +00:00
rem..om
4adaf86db9 fixed simple batch node : The SimpleBatchNode must NOT sets the refresh flag on its children when it is transformed. That's the very purpose of the SimpleBatchNode
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9411 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 22:20:33 +00:00
Sha..rd
8b5f4cba36 * BufferUtils.destroyDirectBuffer() now works on Android
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9408 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:54:58 +00:00
Sha..rd
29b2596359 * Removed various misc handling code from AndroidHarness to OGLESContext/JmeAndroidSystem to ease using jME3 outside of AndroidHarness
* Misc formatting changes in AndroidConfigChooser
 * AndroidLogHandler now takes parameters into account
 * Added additional settings in AppSettings to configure mouse emulation
 * JmeSystem will now automatically try to load JmeAndroidSystem if it fails to load JmeDesktopSystem

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9407 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:53:13 +00:00
Sha..rd
e71f33ef7a * Removed Geometry.setTransformRefresh() which was identical to Spatial.setTransformRefresh()
* SimpleBatchNode now calls setTransformRefresh() directly instead of duplicating the code

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9405 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:47:51 +00:00
Sha..rd
45534ab0b8 * FlyByCamera now uses Quaternion.normalizeLocal()
* Quaternion.normalize() which was deprecated has now been removed
 * Quaternion.normalizeLocal() now returns "this" object

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9404 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:42:30 +00:00
Sha..rd
0090d4eaad * Fix spelling/grammer errors in BatchNode javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9401 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-19 21:40:50 +00:00
Sha..rd
a99d94c263 * Fix bug where animation loop mode "Cycle" would start at the end of the animation at each cycle causing discontinuities in the animation
* Fix bug where blending between the animations of a bone that did not have keyframes on the 2nd animation would fail and cause snapping / incorrect blending

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9400 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-19 20:57:08 +00:00
sky..ok
24145d10bc Removed more println's
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9392 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-18 17:54:15 +00:00
sky..ok
bbf32420a2 Paul makes me feel like less of a man <3
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9391 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-18 17:50:47 +00:00
sky..ok
6b91149956 Remove debug statement I left in r9389
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9390 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-18 17:41:02 +00:00
sky..ok
96fce01608 Fix for bug when assigning an empty text string to a BitmapText already showing content
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9389 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-18 17:39:58 +00:00
bre..ns
5090b397a4 removed sysout from DesktopAssetManager and replaced with logger
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9386 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-15 15:48:59 +00:00
sha..rd
2cec3f82eb * Fix ClassCastException when loading old blender-based j3o files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9381 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-13 01:13:45 +00:00
Sha..rd
4fc046a0e1 * Particle meshes now call updateCounts() when number of particles changes. This might fix native crashes in some cases.
* Removed completely useless merge sort on the entire particle array from ParticleTriMesh ...
 * Added a small note in the javadoc of VertexBuffer.updateData() regarding bizarre issues

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9380 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-12 19:48:49 +00:00
rem..om
2b097ebdfc SkeletonControl : check hasArray for both BoneWeight and BoneIndex buffers before prep them for anim (convert them to non direct).
This to avoid an UnsupportedOperationException on android 4.0 when fetching the backing array on the BoneWeight buffer.
Before, only the BoneIndex was checked, and, for some mysterious reason, this ByteBuffer can be direct AND have a backing array on android 4.0. thus the preping wasn't done on the BoneWeight buffer that was kept as Direct. Hence the exception when fetching the array.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9371 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-09 19:38:59 +00:00
nor..67
783ec50326 - final version of Material/RenderState comparison and hashValue methods, he who changes them again has to buy a crate of beer for all core members
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9365 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-09 12:50:01 +00:00
rem..om
311242b6d9 - Framebuffer can now render to a cube map face, thanks to dflemstr
http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/how-do-i-render-to-a-face-of-a-texturecubemap/?#post-171990

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9363 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-08 19:51:08 +00:00
rem..om
c9d5011555 used dynamicEqual instead of dynamicHashCode in BatchNode and GeometryBatchFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9362 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-08 19:10:50 +00:00
rem..om
d33cbce333 - Changed BatchNode and GeometryBatchFactory according to material recent changes.
- BatchNode now does incremental batch upon adding a new geom to the batch (was there before but didn't work properly).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9361 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-08 19:02:13 +00:00