701 Commits

Author SHA1 Message Date
rem..om
3a2d25ce30 One can now remove a cinematic event from a cinematic
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9976 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-08 18:36:19 +00:00
Zer..om
cb079b48c0 Added code to darken the area behind the stats display so it can be read even over a light background. This can be turned off by calling setDarkenBehind(false) on the StatsAppState
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9975 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-08 13:58:26 +00:00
rem..om
0dadaa80f5 Shadow system refactoring.
- Basic and PSSM shadow renderer are now deprecated
- There is now one processor and its filter conterpart for each light type
- created an abstract shadow processor that hold the common shadowing code. It's totally independent of the shadow technique used.
- extracted the CompareMode and FilterMode enum to their own files.
- renamed FilterMode enum to EdgeFilteringMode
- refactored the shader code, to avoid duplicate code. all shadow related code is now gathered into Shadows.glsllib and Shadows15.glsllib.
- added spot light Shadows
- removed the ShadowCamera class as it was not used.
- removed "pssm" in the naming of classes, shader and shader libs since it's not relevant anymore

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9971 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-07 08:38:56 +00:00
PSp..om
4458603c7e Attempt to make the isParallelProjection() flag better
match the actual state of the Camera.  When a camera
is created it is initially not a perspective camera and
now will reflect that.  Setting the perspective frustum
will also now clear this flag.
The regular setFrustum can be used for ortho cameras
and so does not change the mode.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9956 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-06 05:52:54 +00:00
PSp..om
b9274a3ed2 Added Rectangle.toString()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9949 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-04 06:57:29 +00:00
PSp..om
bf782ac840 Just fixing a typo in a comment.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9948 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-04 05:05:38 +00:00
PSp..om
4610dbdacc Added a form of line wrap mode that does a hard
clip, to include truncating the letter quad at
the border.  This is better when text needs to
be hard constrained for UI type fields.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9947 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-04 04:27:10 +00:00
PSp..om
580579285b Added a getter for size since it's the only way
to compare a particular BitmapText's size to the
BitmapFont size.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9946 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-04 03:45:11 +00:00
rem..om
66ddbb654d Point light shadows first push. Working solution based on rendering 6 different shadow maps.
Made a PointlLightShadowRenderer and a PointLightShadowFilter.
- This will need a lot of refactoring as a lot of code is duplicated with the PSSMShadowRenderer
- Also i plan to change the Shadow map rendering to a cubemap instead of 6 separate textures.
Added a cornell box model and a test case


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9942 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-03 09:38:33 +00:00
rem..om
89608f3fd5 fixed material param settings in PssmShadowRenderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9936 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-02 14:47:24 +00:00
rem..om
76dcabae66 Added proper documentation for camera.getWorldCoordinates
Added a convenience method to compute z in projection space from z in view space

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9934 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-01 22:49:34 +00:00
rem..om
7271bf4de7 Made the PSSmRenderer stop to create a new matrix for each split on every frame
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9931 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-31 22:42:07 +00:00
rem..om
3b84ae44e5 Made all attributes of PssmShadowRenderer protected
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9930 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-31 22:08:11 +00:00
rem..om
d1a036a021 Pssm now supports fade out of the shadows when using a zextend
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9929 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-31 15:53:33 +00:00
nor..67
b3dc16535f - add current iOS code
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9914 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-29 22:15:26 +00:00
PSp..om
ff155b4d78 Added the ability to set the overall alpha for a BitmapText.
This includes overriding the alpha values for any tagged
colors that might be in the text.  Previously the only way
to change the alpha was to set the BitmapText's main color
which overrode any color tags.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9911 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-29 05:25:27 +00:00
rem..om
f7db40695f fixed javadoc in PSSMShadowFilter
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9904 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-26 16:03:51 +00:00
Sha..rd
60f52b8ea6 * When specifying OPENGL3 in AppSettings, it is now Mac OS X compatible
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9875 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-21 22:45:57 +00:00
Sha..rd
4d01146519 * Add ImageRaster.getWidth() and getHeight()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9874 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-21 21:56:22 +00:00
rem..om
c84d25b755 EffectTrack now correctly stops when loopMode is DontLoop
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9870 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-18 20:57:36 +00:00
rem..om
d359091842 FilterPostProcessor filters list can now be fetched as an unmodifiable list
FilterPostProcessor has now a getFilter(filterType) method

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9869 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-16 21:45:14 +00:00
rem..om
a61bdf1d47 AudioTrack : prevented audio track to be looped even if the channel loopMode is dontLoop
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9866 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-13 07:31:44 +00:00
rem..om
f7d6c30db3 EffectTrack : fixed an issue when emitter wouldn't emit again once the animation was done and loopMode was set to DontLoop
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9858 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-08 21:56:01 +00:00
rem..om
479632c06e EffectTrack : fixed control loading issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9850 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-07 21:46:25 +00:00
PSp..om
d6267527e8 Added a default implementation of cloneForSpatial()
to AbstractControl.  It should work in 99% of regular
use cases and not require controls to implement
cloning if they don't need it.  And if they didn't
implement it then the error message will be pretty
clear when they try to reload a saved control that
doesn't implement Cloneable.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9849 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-07 19:58:28 +00:00
rem..om
639de490a2 AnimControl.clearChannels now notify the animCycleDone on every listener for every channels before clearing the channels.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9847 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-07 08:27:51 +00:00
rem..om
54313302be EffectTrack : fixed isssue where an IllegalArgumentExceptio was wrongly raised when removing the spatial from the kill particle control
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9842 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 21:12:40 +00:00
rem..om
cb06858534 EffectTrack : fixed serialization issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9841 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 20:54:17 +00:00
sky..ok
fa841874c6 Add missing licenses in Core, Core-Effects, Core-Plugins, and Desktop code groups
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9840 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 19:28:55 +00:00
sky..ok
01f1c8ff27 Replace NetBeans file templates with jME licenses
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 17:22:45 +00:00
sky..ok
28ce76245f Change all source licenses to say 2009-2012
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9838 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 17:01:57 +00:00
sky..ok
751cb9e20a Javadoc cleanup
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9837 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 16:44:26 +00:00
rem..om
281d38d609 RenderManager : Changed renderScene to reset the camera plane state to 0 (the first node to render is not always a root, it can be a sub part of the scene graph) and call renderSubScene.
Created a private method renderSubScene that recursively renders the scene graph.
This fixes culling issues with the reflection/redraction processors for the water effects se this post
http://jmonkeyengine.org/groups/graphics/forum/topic/possibly-bug-simplewater-postprocessor-renders-entire-scene-no-frustrum-of-objects/?#post-192561

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9790 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-01 22:29:40 +00:00
rem..om
cbafa1852b Shadows : There is now an alternative to the PssmRenderer : the PssmFilter that has to be used as any other filter. It does the same ass the PssmRenderer except the post shadow pass is done in screen space making it run very faster on scene that have a lot of shadow recieving Geometries.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9787 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-29 09:38:53 +00:00
PSp..om
9b763443fa Modified the string-based look-ups to use logical
ID instead of name.  The names may be localized for
the local language.... Bouton 0 instead of Button 0, etc.
I also changed the compatible layer and the one default
mapping to use logical IDs now.
Added a few constants to JoystickButton just to make
things easier for the standard buttons 0-11.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9782 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-27 21:33:16 +00:00
iwg..ic
56bf97a7e2 Update Android Sensors to be compatible with the new Joystick interface. http://code.google.com/p/jmonkeyengine/source/detail?r=9763 http://code.google.com/p/jmonkeyengine/source/detail?r=9762
Only Orientation is supported currently

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9781 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-27 01:59:19 +00:00
PSp..om
33968b4c39 Added code to reset the actions of opposite joystick
axes during analog processing.  Actions were always
invoked for the active axis direction but if the
stick flipped to fast across the middle then the
reverse axis' actions were still "pressed" and would
get stuck.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9779 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-26 06:05:24 +00:00
bre..om
211b63be84 Line shape now rewinds the buffer before data is set in updatePoints()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9778 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-26 00:19:08 +00:00
rem..om
0e733ff100 Filter postQueue method now takes a RenderQueue as parameter like SceneProcessor instead of the RenderManager and ViewPort.
Filters that were using those attributes now properly keep a reference on them in the filterInit method.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9777 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 20:47:57 +00:00
PSp..om
4b4ae178e5 Added a basic way to have default remappings of
joysticks that properly report their name.  It's
a simple system using properties files on the
classpath.  A core file has been added with at
least one known remapping.
Buttons and axes can be renamed but they can't
yet be flipped.  If needed that can be added
later.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9774 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 06:31:25 +00:00
Sha..rd
8efd28da76 * Some optimizations for defines and shader key. Computing "compiled" define list isn't necessary to execute a lookup against asset manager. Allows faster changes in defines.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9771 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 02:09:39 +00:00
Sha..rd
1a12437436 * Remove unneeded printlns in AudioNode and HDRRenderer
* Poly offset will become disabled if factor and units are set to 0.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9770 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 02:04:33 +00:00
PSp..om
86a3b0532c Save and restore the color in the nifty-optimization
method: render(RenderManager rm, ColorRGBA color)
So that it doesn't clobber other BitmapText that just
happens to be using the font.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9769 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-24 18:06:00 +00:00
PSp..om
a7717d9ea2 Reverting the changes made in r9389
http://code.google.com/p/jmonkeyengine/source/detail?spec=svn9389&r=9389
That caused the StringBlock to be recreated every
time the text was set to "".  Doing this blew away
90% of BitmapText's internal state causing subsequent
text to be the wrong size, misaligned, etc.
The original reason for the change needs to be revisited.
Big comment left in code with the original change commented
out.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9765 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-24 05:54:08 +00:00
PSp..om
81837959b1 A refactoring of the joystick class to provide more
information about buttons and axes and allow slightly
easier hook-up of stanard triggers.
The events have also been expanded to include the
actual JoystickAxis and JoystickButton objects.
Changes to the JInput joystick support coming next
commit.  Android joystick stuff was modified to compile
but is totally broken with this change until the code
can be properly updated.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9760 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-23 04:15:45 +00:00
iwg..ic
8daa039ecc Add methods to control FlyByCamera zooming speed.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9759 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-22 04:08:55 +00:00
iwg..ic
47cb989c63 Added mapping of Android Scale Gesture (ie PinchZoom) to mouse wheel. If mouseEventsEnabled is set, mouse wheel reacts to the gesture.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9758 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-22 03:44:17 +00:00
rem..om
c31c7a406b BatchNode : fixed bounding issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9755 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-19 18:01:41 +00:00
Sha..rd
5f88d137a8 * Add RenderManager.setUsingShaders() method in case it is used directly (without RenderManager.render()).
* Fix issue where LwjglOffscreenBuffer's thread would freeze after it has been destroyed 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9753 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-19 04:09:06 +00:00
rem..om
384f4ac1c2 Lighting and Shadows (PSSM only) :
- re introduced the alphaDiscardThreshold as explained in prvious commit. It's not binded to the AlphaTestFallOff fixedfunc binding
- Added a small poly offset to post shadow technique, this greatly help in fixing shadow acne.
- Added Poisson disc sampling PCF Filtering for shadows
- Properly passed the shadow map size as a define in the shaders and remove the hardcoded value
- Pssm15 don't use the textureSize function anymore and use the same shadow map size define ( this increased performance quite a bit)
- Optimized the shaders code a bit
- Better PSSM test

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9750 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-18 21:37:11 +00:00