2614 Commits

Author SHA1 Message Date
Kae..pl
d4ddc2beeb Memory usage improvements:
- blender context now disposes all its stored data and properly closes the BlenderInputStream
- fixed an error that causes unnecessary huge memory allocation in BlenderInputStream

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9795 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 13:35:30 +00:00
nor..67
0b1681c29f SDK:
- update supplied OgreXML export script

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9794 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 13:31:16 +00:00
nor..67
8eb7c833e6 SDK:
- change exe creation to use config file
- fix run args not going to exe file

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9793 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 13:09:32 +00:00
Kae..pl
2148c256d3 Allowing only a single armature modifier and object animation modifier to be applied over an object.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9792 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 10:15:48 +00:00
Kae..pl
6e027bd51e Fixing a bug where applied armeture has no skeleton attached.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9791 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-02 10:15:11 +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
iwg..ic
3afb803c68 Added check for sensor data accuracy to ignore data when sensor accuracy is unreliable.
Fixed error in log entry when sensor accuracy changes
Added log entry on calibration of axis

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9789 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-01 13:58:15 +00:00
bre..om
77a1ec09f8 moved terrainGrid normal recalculations out of the tile loading loop to run after all tiles have loaded
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9788 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-30 23:41:57 +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
f0d4f86dd8 Updates to use logical ID mapping instead of names.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9785 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-27 22:26:25 +00:00
PSp..om
52b08cd0da Updated to work with logical ID instead of name.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9784 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-27 21:34:42 +00:00
PSp..om
d9dd8603b8 Remap logical ID instead of name since it is now
logical ID that is used for look-ups and it is
not locale specific.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9783 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-27 21:33:52 +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
810164da46 Added a method for directly poking keyboard events
into Nifty's queue.  This is nice for hooking up
things like joysticks to the cursor keys to navigate
nifty menus/screens.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9780 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-26 06:25:06 +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
bre..om
7f740a0cd4 TerrainGrid executor now prints out any exceptions from the threads
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9776 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 18:51:54 +00:00
PSp..om
c3549f42f6 Fixed a bug in how POV.DOWN_RIGHT was reported...
it was actually sending events as if it was UP_LEFT.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9775 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 06:33:26 +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
PSp..om
67750ff7a5 Added a dump of the buttons.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9773 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 04:41:34 +00:00
bre..om
c4574bff13 fixed an issue with TerrainGrid not having a large enough cache of tiles. Properly hooked in the tileDetached event
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9772 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 04:32: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
rem..om
d980519674 Re-introduced alphaDiscardThreshold in lighting frag
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9768 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-24 16:40:03 +00:00
Sha..om
d329e243fa * dotScene loader: prevent issue when dotScene file is missing an externals section.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9767 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-24 15:49:22 +00:00
Sha..om
0995dcf9b6 * Change shadow direction to demonstrate bug
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9766 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-24 15:02:48 +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
rem..om
e0df200dfd Properly update the Height map and normal map to the water filter material when setting those textures to the filter
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9764 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-23 18:38:36 +00:00
PSp..om
bd2695061d Updates to build with latest joystick changes.
This breaks joysticks on android until they can be
ported to the "new way"... but at least it should build.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9763 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-23 09:01:02 +00:00
PSp..om
2970ff46b3 Updated the joystick test to allow better testing
of joysticks and gamepads.  It now presents a gamepad
on the screen that updates itself whenever any connected
joystick or gamepad are used.  This allows the tester
to compare the actual controller layout to the "default"
controller layout.
Information about the active joystick's available axes
and buttons is also rendered to the display.
A dump of all controllers and their components is written
to joysticks-###.txt file.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9762 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-23 04:18:49 +00:00
PSp..om
6db4dde5e8 Changes to support new joystick refactoring.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9761 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-23 04:16:15 +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
bdb715e527 Shadows : attempt two to fix them on mac.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9757 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-21 20:26:08 +00:00
nor..67
1a2b56121b SDK:
- add invert filter (thanks to @jmaasing)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9756 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-19 22:52:03 +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
rem..om
6c2dcc472d Lighting and Shadows :
- removed the const keyword for the poisson disk array declaration in the shader (attempt to fix the shader on mac)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9754 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-19 16:25:32 +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
Sha..rd
243bba48ff * Improvements to GLSL loader handling of libraries. The order of #import is maintained, it is also possible to #import in the body of the shader (but it will not be included twice). Fixed issue 523.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9752 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-19 01:00:33 +00:00
bre..om
bd7c10ba80 Added more comments to the TerrainLighting test. Made the TerrainLighting material more forgiving if normal maps aren't set
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9751 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-18 22:24:04 +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
rem..om
2915316e45 One can now have a block ForcedRenderState in a technique defnition. this renderstate if filled will be forced into the renderer when the technique is forced
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9749 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-17 21:32:48 +00:00
rem..om
eab37f7fce Reverted changes in RenderManager from previous commit as they were not meant to be committed and unrelated to the change
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9748 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-17 20:14:58 +00:00
rem..om
5111fd8b66 Implemented fixedfunc binding for AlphaTestFallOff
- Made the relvent changes in lwjgl1Renderer
- Changed the check in the lwjglRenderer (note that it's deprecated in opengl 3)
- Removed the test in the OglESRenderer since GL_ALPHA_TEST/GL_ALPHA_FUNC no longer exists in OGLES 2, this must be handled in the fragment shader aka the alphaDiscardThreshold that is coming back in an upcoming commit.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9747 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-17 19:36:41 +00:00
Sha..om
13132e10cc * Remy: please rename context.alphaTestEnabled to alphaTestFallOff and make it a float. Also, add FixedFuncBinding.AlphaTestFallOff and make J3MLoader parse it
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9746 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-17 16:41:28 +00:00
iwg..ic
5b326f4054 Minor reorganization of how appSettings are created and passed to the Context on Android.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9745 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-16 22:00:27 +00:00