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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
rem..om
c31c7a406b
BatchNode : fixed bounding issue
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9755 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
Sha..rd
f7a653088f
* Put rangeCheck() back
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9743 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
105d27fddf
* Problem: Slow. Solution? Speed.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9742 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
47563c2cf1
* .. and here's the change that makes the previous change actually faster
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
dbc59934a7
* Added new image codec that should be faster for byte component image formats like RGBA8
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
f9e99ab956
* Fixed rather silly bounding box computation bug. Thanks to @raistm .
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9733 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
5635bc2ff1
Geometry : fixed an issue where batching information were copied over cloning causing problem because the cloned geometry was marked as batched but was not.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9731 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
2577485727
BufferUtils : ensureLargeEnough now set the limit to the buffer capacity if it exists to avoid creating a new buffer instead of reusing the previous one.
...
see http://jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/bugbufferleak-in-ensurelargeenoughbitmaptextpage/?#post-188976
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9730 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
a2ff0ba179
* Fix issue where a bone weight in a vertex was set to all zero would cause the vertex to snap to 0,0,0
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9726 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
8c2bdebbae
* AnimControl now forces the animation map to be non-null in all cases - when creating a new AnimControl, cloning it or loading from J3O.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9725 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Kae..pl
c929d0ca41
Bugfix: added jme serialization for CameraNode, LighNode, CameraControl and LightControl (as suggested by @rectalogic ).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9721 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Kae..pl
a498a1cdc9
Changing default value for controlDir. It is now SpatialToCamera instead of CameraToSpatial.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9718 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
07a6ca931f
* Fix "particlesPerSecond set to 0 accumulates timeDiff" issue
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9713 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
6aefda2e38
* BatchNode / GeometryBatchFactory now batch animated models correctly. Note that any control(s) are removed during the batching process, and must be re-added after batching for animation to work.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9712 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
2a11aae3a4
* ImageRaster now supports Android. However the constructor can no longer be used. Instead user should create it by using ImageRaster.create() which automatically defers the handling to JmeSystem.
...
* TestImageRaster tests both reading and writing from various types of formats now by chaining the image conversions
*
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9710 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
3c4405868a
* Fix incorrect bounding box calculation when points are not centered on origin
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9706 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
ShA..Rd
9ad757596b
* Fixed issue where using images with pregenerated mips would cause performance loss due to them being generated again and again
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9703 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..om
39f265f50e
Adding Android Sensor support as simulated joysticks. Only orientation is supported right now, more sensor types to be added later. When device orientation changes, Joystick[0] is updated just like using an actual joystick. Users need to add "joystickEventsEnabled = true" to the MainActivity to enable the orientation joystick so battery life is conserved if sensor data is not desired. See http://jmonkeyengine.org/groups/android/forum/topic/creating-engine-support-for-android-sensor-input/ for the long history.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9700 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
e253546982
ChaseCamera : added a hideCursorOnRotate flag to the chaseCam to prevent interfering with nifty.
...
See forum post
http://jmonkeyengine.org/groups/gui/forum/topic/nifty-window-not-accepting-input-after-clicking-into-the-scene/?topic_page=3&num=15#post-189063
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9697 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
5c9afd9d59
LightNode now properly works with SpotLight
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9696 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
nor..67
96b60664a9
- add Filter support to AssetManager (thanks to @rectalogic )
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9684 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
dan..om
133bd21ab9
- Fixed bug where if you set minDistance that is higher than the current distance, the camera view would still remain at the old distance.
...
- Same as above but for maxDistance.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9680 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
206a6b74f3
UserData : setUserData(someKey,null) now properly removes the user data from the map.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9670 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
a04d5dde01
BufferUtils : Apply changes made by Empire Phenix to properly track direct memory. This feature is defaulted to off.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9669 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
37710098a2
ParticleEmitter : created a RadialParticleInfluencer
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9664 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
27930a7cd9
DefaultParticleInfluencer / NewtonianParticleInfluencer : Fixed initialVelocity attribute naming that was kept as startVelocity while acessors where get/setInitialVelocity.
...
- Also changed serialization to reflect this change and incremented the serialization verison of DefaultParticleInfluencer.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9663 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
aacc136aa8
ParticleEmitter : RotationSpeed has now an effect when setting a faceNormal to a ParticleEmitter
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9661 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
0ddc10a0c0
* Fixed minor javadoc issue
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9657 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
6f5d4ef943
* Added ViewPort.clearProcessors() to remove all processors from a viewport
...
* Make JmeSystem error message regarding delegate more readable (split to another line)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9656 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
f5f3a85042
* Added new ImageRaster thing, it can let you read and write pixels on jME3 images without caring about the underlying format. NOTE: None of the jME3 internal classes use it yet, the code has yet to be ported.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9655 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago