114 Commits

Author SHA1 Message Date
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
Sha..rd
cc3577acdc * Android renderer now supports configuration changes (see: http://jmonkeyengine.org/groups/android/forum/topic/supporting-device-configuration-changes/#post-181170)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9543 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 03:46:44 +00:00
rem..om
4e987ae63e Android : Pixel Format again. Transparent or Translucent pixel format should not be the deault setting as they drain a substential amount of fps and that most of the games will have an opaque background.
There is now a new ogles configType called BEST_TRANSLUCENT if users really want a transparent background.
The BEST or FASTEST confing are now both OPAQUE, this gives a nice boost to the BEST configuration.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9508 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-17 15:23:49 +00:00
rem..om
67712589e2 Android : changed the way the glsurface's pixel format was chosen, allowing the surface to have a translucent background
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9507 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-17 08:43:09 +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
3cdeb6ed4d * Fix issue 476
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9442 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 04:05:37 +00:00
rem..om
cd64f74898 - ANDROID fixed multitouch move taht was not sending additional pointers event. thanks to iwgeric
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9438 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-30 19:40:24 +00:00
rem..om
d76d58c0e9 - ANDROID audio renderer : added a state check on the MediaPlayer to prenvent it to throw errors
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9437 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-29 14:52:23 +00:00
rem..om
0fe3b69f7d - ANDROID Reverted a change in resolution setting, as it apparently has bad side effects on GUI
- Android texture util ENABLE_COMPRESSION is now public to be able to change it. Accessing it through the appSettings would be better.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9436 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-29 14:50:18 +00:00
Sha..rd
1009cd18b0 * Running jME3-android in emulator with GPU emulation now supported but sometimes there are opengl errors (?)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9428 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-25 04:25:44 +00:00
Sha..rd
c34189dfe5 * Removed all "verbose logging" parts of OGLESShaderRenderer, as it made the code hard to read. This sort of logging functionality should be done in a "GL Wrapper" sort of class instead.
* The AndroidImageInfo.notifyBitmapUploaded() method is now called at the end of the upload as expected 
 * Huge overhaul of TextureUtil. It automatically compresses textures to ETC1 if selected by user. In addition, it will use hardware mipmap generation if possible, and fallback to software if not (e.g. for compressed textures)
 * Add support for DXT1 format (usually supported on NVIDIA Tegra devices). The BrightSky.dds skybox now works on Android if the device supports it.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9410 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 22:11:59 +00:00
Sha..rd
4be1d2be1e * AndroidImageInfo now supports getting notification when the bitmap has been successfully uploaded to GL
* AndroidAudioRenderer no longer prints silly debug messages

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9409 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:56:39 +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
05d5c611e1 * AndroidAssetManager no longer fails on missing plugin classes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9406 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:49:36 +00:00
sky..ok
a625e8ae2a Javadoc fixes R PHUN
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9358 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-08 15:11:38 +00:00
rem..om
1c92f500eb AndroidAudioRenderer : propperly set the looping value on media player
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9323 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-19 16:09:18 +00:00
Sha..rd
f68475319a * Added new image format: Depth24Stencil8, for framebuffers and textures that need stencil data
* Renderer now uses getArray() to access mesh's buffers
 * GL image format data now stored in a special data structure for easier management (instead of huge switch/case statement)
 * Android texture loading: If the format is not supported by GLES spec, the texture upload will fail

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9298 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:26:22 +00:00
Sha..rd
cf9d5b5ebc * Remove some useless files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9297 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:21:41 +00:00
rem..om
2966b6a7b0 AndroidAudioRenderer : better mediaplayer life cycle handling
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9296 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 13:15:39 +00:00
rem..om
544e1f6342 Shaders : The line numbers on error now correctly takes the version line added to the shader into account
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9295 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 11:13:34 +00:00
rem..om
3a0e1f50ac Shaders : The line number is now printed for each line of shader code in the standard error output when a shader fail to compile.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9294 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-12 20:08:38 +00:00
sky..ok
533fb86c50 Down to 260 Javadoc warnings from 324
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-22 00:22:09 +00:00
rem..om
8ab5a211e2 Removed previously committed System.out from AndroidAudioRenderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9244 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-11 23:05:33 +00:00
rem..om
218f082c8b Properly stopping and resetting Medialayer in AndroidAudioRenderer to be able to play an audio node more than once without failing.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9243 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-11 21:37:33 +00:00
rem..om
1a771236cf fix NPE in AndroidHarness when quitting (thanks iwgEric)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9241 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-11 08:33:51 +00:00
rem..om
191bd21b40 Removed AndroidHarness specific calls from the OGLESContext.
- The harness is now a system listener and dispatch the system events to the jme app
- Every Harness related code is now in the harness (exit hook dialog, and mapping addition, spash screen hiding,....)
- Added a handleExitHook flag to configure if the Harness should handle exit or not.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9238 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-07 19:22:41 +00:00
rem..om
d2b727cfd8 Android : OGLESContext can now finish the activity when being destroyed, this way calling app.stop() from jME finished the associated activity.
This feature can be disabled by setting a flag in the MainActivity.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9234 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-05 22:25:42 +00:00
rem..om
92b97d38d8 Committed a patch from iwgeric, to make nifty Textfield display the soft keyboard on tap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9227 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-02 10:23:22 +00:00
rem..om
859123673e Committed patch from iwgEric that fixes a couple of issues on android touchinput http://jmonkeyengine.org/groups/android/forum/topic/error-with-nifty-and-awt/?topic_page=2#post-165433
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9226 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-02 09:12:38 +00:00
Sha..rd
491d514c0f * BorderClamp and Clamp texture wrap modes now become EdgeClamp on Android
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9221 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-29 01:22:15 +00:00
Sha..rd
df212d358f * AndroidAssetManager will avoid registering loaders if the class isn't in the classpath similar to DesktopAssetManager
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9203 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 19:49:56 +00:00
Sha..rd
1aed2068be * Formatted many android classes and files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9202 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 19:49:15 +00:00
Sha..om
b12285b8a4 * Make AndroidImageInfo extensible, add javadoc explanation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9187 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-23 14:14:59 +00:00
rem..om
446c03935e Fixed NPE in AndroidAudioRenderer when soundPool is not initialized
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9175 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-18 08:44:51 +00:00
rem..om
bb9b2ea5ce Changes to AndroidInput to properly handle multipoint touch events with proper ids (thanks to techsonic)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9172 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 13:27:02 +00:00
rem..om
a3497ca8b2 Null check on audio renderer in the onPause and onResume of the android Harness. The audio renderer appears to be null (wich is another issue)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9171 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 13:04:53 +00:00
rem..om
afc2710626 Removed the call to glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT as it generates an INVALID_ENUM error.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9170 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 13:03:44 +00:00
PSp..om
07d5451a31 Removed the direct accessing of the seconds counter
so that I don't break the build with my next changes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9156 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 00:07:45 +00:00
Sha..rd
b89b2428af * Applied audio fix patch (thanks prich)
- Pause audio when jME3 app is paused
   - Add WAV to supported formats 
   - Add Android audio test 
 * Minor javadoc fixes in AndroidHarness
 * Made jme3tools.android.Fixed class deprecated

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9152 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-15 04:30:35 +00:00
Sha..rd
4aa00107e2 * Added missing AndroidImageInfo
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9148 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-12 22:16:27 +00:00
Sha..rd
381a3365ef * Applied android audio renderer patch (thanks to prich on the forum)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9147 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-12 22:14:03 +00:00
Sha..rd
a64db6fc7b * Andrid - AndroidLocator now follows spec when regards to multiple call support with AssetInfo.openStream()
* Android - fix exception with recycled bitmaps that occurs when jME3 application is restored/maximized after pause

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9144 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-11 06:42:19 +00:00
Sha..rd
3fa629053a * Deleted AndroidApplication and AndroidSkyFactory due to deprecation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9143 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-11 06:10:35 +00:00
Sha..rd
8652b1f759 Android
* Enable checking of errors per frame (if checkErrors is disabled)
 * Formatting and javadoc fixes in AndroidHarness
 * AndroidHarness.reportError() rewritten to for clarity
 * OGLESContext will report OpenGL2 failure directly to app through handleError instead of continuing execution 
 * OGLESContext will register uncaught exception handler only for current thread 
 * Formatting and javadoc fixes in OGLESContext

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9142 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-11 06:08:49 +00:00
Sha..rd
65c27304be * Android - disable GL error check by default
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9141 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-11 05:35:29 +00:00
Sha..rd
b75a3415c5 * Android - fix shader compile error on PowerVR GPUs
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9140 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-11 05:32:24 +00:00
rem..om
82b1e94953 Added SpashScreen support for android thanks to iwgeric
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9106 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-21 09:59:10 +00:00
Sha..rd
b38e545036 * Fix Android 2.2 - 3.2 crash
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9081 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-17 02:13:17 +00:00
nor..67
60f7963cf4 - add storage folder support to android renderer, thanks @iwgeric
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9064 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 20:36:50 +00:00
Sha..rd
9c6ca69b34 * Fixed GLSL version parsing issue on Android 4.0
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9020 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 04:49:28 +00:00