2462 Commits

Author SHA1 Message Date
sha..RD
a725516f00 * Fine, Eric.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10527 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-08 02:12:33 +00:00
sha..RD
cb0a2ed1cd * Throw UnsupportedOperationException if multiple FBO color attachments are used on Android (only a single attachment, GL_COLOR_ATTACHMENT0, is supported)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10526 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-08 01:06:19 +00:00
sha..RD
27bf244729 * Added glGetError() checks after every GL call (its ugly, I know, but it helps with debugging). Added option to disable it with constant on RendererUtil.ENABLE_ERROR_CHECKING.
* Set lastFb in OGLESShaderRenderer when context is reset, this is needed otherwise the state tracker would not work correctly.
 * Fix issue with Mesh.Mode.Hybrid that wasn't rendering triangle fans correctly (was rendering them as triangle strips instead).
 * Remove call to glPointSize in OGLESShaderRenderer (it would most likely crash anyway, since GLES10 calls can't be used in a GLES20 context)
 * TestCustomMesh now uses shorts instead of ints for the index buffer. 32-bit indices are not supported on Android and are slower on Desktop, don't use them if you can avoid it.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10525 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-08 01:01:24 +00:00
sha..RD
9f4f321098 * Semi-colon.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10524 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 19:16:44 +00:00
sha..RD
30c7347cdf * If the render buffer storage format is 0 (not supported), throw exception instead of passing invalid enum to a GL call
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10523 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 19:05:34 +00:00
sha..RD
bcf3b7e7b6 * Added proper checks for RGBA8 support. All formats now specify the renderBufferInternalFormat
* Added support for depth24 and depth24stencil8 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10522 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 19:01:04 +00:00
rem..om
01e2403f6c Changed TestBatchNodeTower so that it doesn't use deprecated stuff anymore
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10521 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 10:27:10 +00:00
rem..om
ecc35e84c5 Shadows, enhanced TestShadowsPerf
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10520 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 10:05:27 +00:00
rem..om
74a91559aa Shadows Fixed issue where the new stabilization code was making black bandings when no object was in a split.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10519 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 10:04:46 +00:00
rem..om
85b4605229 Shadows Fixed issue where Edge filtereing was not properly initialized and was causing a crash when compiling the shader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10518 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 09:34:26 +00:00
iwg..om
ba8f8db23c Android:
Add support for OGLES20 extension "GL_IMG_texture_npot" in addition to the currently used extension "GL_OES_texture_npot" to detect NPOT support.
Added additional Renderbufferstorage formats for RGB8 and RGBA8 image formats


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10517 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-07 01:17:56 +00:00
Zer..om
9c91d8c8e1 Fixed a bug where if you started a new animation from the animation complete callback of another animation no event was triggered at the end of the new animation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10516 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 16:31:19 +00:00
rem..om
b5014c5fbc Implemented stable shadows for DirectionalLightShadowRenderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10515 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 09:21:11 +00:00
iwg..om
107b3f2b88 Modify normal map to use png instead of dds to enable running on Android
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10514 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 04:20:00 +00:00
iwg..om
e26c86c794 Android: Initial commit to support FrameBuffers. This is still a work in progress. FilterPostProcessors currently don't work on Android devices that do not support NPOT.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10513 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-06 04:18:43 +00:00
Kae..pl
a1fd0272d4 Bugfix: only rotation is used to transform node to its parent armature transformation when computing bone positions.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10512 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-05 13:07:59 +00:00
Kae..pl
06f5cab5ba Bugfix: fixed an issue with skeleton loading when the armature was not a parent of an object it should animate.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10511 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-04 19:00:21 +00:00
rem..om
33ad135b28 added back the light in testenvmap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10510 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-04 18:43:42 +00:00
Zer..om
4d16f05f23 Fixed a bug in AnimChannel which would cause it to keep repeatedly issuing Animation Complete callbacks every frame once the animation did complete rather than issueing one once each time the animation completed.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10509 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-02 13:35:16 +00:00
rem..om
85b3e7e8c5 Made soft particles work with MS anti aliasing
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10508 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-01 21:09:23 +00:00
PSp..om
a62a2d0299 Added some methods for bulk-attaching a bunch
of app states at once.  This is useful when
attaching several app states from a different
thread because there is a guarantee that they
all get initialized together before any of their
update() methods are called.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10504 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-28 10:44:02 +00:00
rem..om
c689ba4e9b Fixed remaining black artifacts with post waters when using the 1.5 shader and also clamped refraction tex coordinates for under water in both shader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10503 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-27 19:39:41 +00:00
voi..om
6f54913af3 Nifty-1.3.3-SNAPSHOT (build 2013-03-26): new method markBatchRenderImageAsUnloaded() available at NiftyImage class
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10502 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-26 00:43:09 +00:00
Zer..om
87172ad7eb Removed wierd import of org.bushe.swing.event.Logger; that was causing my build to fail locally and wasn't used anywhere.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10501 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-24 23:08:52 +00:00
Zer..om
ce07608e5c Added error logging to SettingsDialogue as requested by toolforger.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10500 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-24 21:48:44 +00:00
Zer..om
ceba00624a Changed node to spatial in the getChild javadoc to be more correct.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10499 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-22 22:51:20 +00:00
Zer..om
75d861eae1 Added javadoc to getChild to explain that its really getDescendant
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10498 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-22 22:49:23 +00:00
rem..om
723e3c0e30 Commit patch from abies that drastically reduce the garbage creation when switching techniques. It also reduce grabage collection for the AbdtractShadowRenderer.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10497 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-21 19:09:52 +00:00
rem..om
0186a20983 Fixed issue where the BAtchNode was throwing an ArrayIndexOutOfBound exception when batch was called twice in a row
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10496 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-20 20:38:14 +00:00
rem..om
05e080100e Added support for int arrays uniforms. thanks to abies.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10495 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-20 17:53:50 +00:00
rem..om
3d76821f02 WaterFilter fixed refraction map artifact that was producing black "waves" on the screen borders.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10494 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-19 21:30:32 +00:00
PSp..om
0998f47847 Enabled/disable statistics with the view. This
prevents stats from being collected unless they
are viewed.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10493 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-17 06:28:26 +00:00
PSp..om
ff5d121038 Allow the Statistics collection to be enabled and
disabled.  It turns out that this generates a measurable
amount of garbage per frame... partially due to a change
I made elsewhere.  It used to be that the frame values
were never cleared unless the stats were displayed...
thus the HashSets were always populated with the old
frames' values.  When I added a default app state to
clear them every frame the hashsets regrow every time
and generate ~1 meg of garbage every 15 seconds.  Not
a lot but unnecessary.
I think this way is more explicit and we no longer
rely on a side-effect.
A related change will be checked in for the StatsView
to properly enable/disable collection.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10492 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-17 06:26:31 +00:00
rem..om
e92172d2b7 Fixed issue in BufferUtils where quaternion and verctor4f were initialized with 3 zeros in the buffer instead of 4.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10491 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-16 12:04:04 +00:00
rem..om
cffb44f3d0 Fixed zoomSensitivity in chaseCamera, removed the zoomSpeed.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10490 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 22:04:27 +00:00
rem..om
995763d114 Fixed an issue in android config chooser. Some device seems to not have a rgb8 opaque config (BEST). In this case the config chooser will attempt to find a rgba8 config (BEST_TRANSLUSCENT) before falling back to fastest.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10489 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 21:56:59 +00:00
rem..om
4d91089b3a Android texture util now supports uploading a sub texture to the GPU, even as a bitmap.
This makes Nifty batch rendering work on android.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10488 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 20:45:36 +00:00
iwg..om
a53c052f74 Fix issue with how Android logging is handled.
- Replaced standard Android logging Handler to avoid Android issue with only logging Level.INFO -> Level.SEVERE log records.  
- Moved logging Handler initialization to AndroidHarness instead of in JmeSystem so logging in AndroidHarness and app startup could be logged.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10485 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-15 01:28:07 +00:00
rem..om
5fd4687080 Cinematics : GuiTrack is now deprecated in favor of GuiEvent
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10482 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-10 12:56:56 +00:00
jul..om
586ea98f00 Removes useless debug logs from NewtKeyInput
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10481 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-10 09:25:03 +00:00
rem..om
76b4306d10 ShaderNodesLoader : removed unused jogAmp dependency that slipped in....
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10480 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-09 22:40:55 +00:00
rem..om
6ab93d4007 ShaderNodesLoader : Better way to compute define conditions
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10479 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-09 22:39:13 +00:00
voi..om
75569f4c04 Nifty-1.3.3-SNAPSHOT (build 2013-03-09) added + first Nifty batched renderer integration (optional)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10478 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-09 20:32:01 +00:00
rem..om
f773bbdd38 DefaultImageRaster : attempt to fix NPE when the raster is initialized with an Image that has not been rendered yet.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10477 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-09 09:13:39 +00:00
rem..om
c591260ab5 WaterFilter : the size of the reflection map can now be changed at run time.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10476 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-09 08:54:10 +00:00
nor..67
c1efd70e3d - fix newt display dependency
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10475 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-08 22:45:40 +00:00
jul..om
32e6516a47 Fixes the debug pipeline which was only working with GL4bc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10472 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-05 21:14:49 +00:00
jul..om
974b09c47b Adds a field for the JoyInput implementation into JoglContext
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10471 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-05 21:08:18 +00:00
jul..om
44f7c81567 Fixes a bug in the support of vertical synchronization
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10470 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-05 21:06:24 +00:00
rem..om
a5c19f54c3 Android : Added a FINE log of all the display configurations available on the device when the context starts.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10469 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-05 19:03:32 +00:00