54 Commits

Author SHA1 Message Date
lex..82
d613ed7c84 FIXED: org.lwjgl.LWJGLException: X Error: BadWindow (invalid Window parameter) request_code: 2 minor_code: 0
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8148 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-02 16:59:25 +00:00
sha..rd
f6f378ec55 * Use the same pbuffer pixel format for everything. Provides better compatibility.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8025 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-17 03:34:11 +00:00
Sha..om
c77f1c6cfb * Fix for x window crash on Display.destroy() on linux
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8011 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-15 03:02:48 +00:00
sha..rd
73aa30785b * AssetPathURL now accepts non-relative asset paths
* ZipLocator will now crash if the specified zip file does not exist
 * Fixed crash when restarting context with pixel format changes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7914 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-25 14:51:33 +00:00
sha..rd
3bd4146f4b * Prevent shader leaks
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7891 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-21 15:23:16 +00:00
sha..rd
92a751893f * Disable point sprite if not rendering a point mesh. May prevent ATI driver crashes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7878 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-18 14:26:26 +00:00
sha..rd
6c12808493 * Another ATI driver hack, now for framebuffers. Based on http://www.opengl.org/wiki/Common_Mistakes#Automatic_mipmap_generation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7877 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-17 23:57:17 +00:00
sha..rd
88257bbb3e * Removed glTexEnv(GL_COORD_REPLACE, ...) call because it is not needed when using shader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7876 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-17 23:52:20 +00:00
sha..rd
d48b06c951 * Enable point sprite mode only for first texture unit. May prevent ATI driver crashes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7875 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-17 23:38:54 +00:00
sha..rd
7314c5f613 * Fix lighting "early cull" issue for terrain lighting shader as well
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7794 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-01 17:01:00 +00:00
sha..rd
a43e52a384 * XMLImporter can now read directly from file
* XML representation of savable now writes version (no reading yet)
 * Initial attempt of fixing "frozen after app restart" bug
 * Fixed NVIDIA shininess bug (!!!) - No longer need to set m_Shininess on materials!

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7734 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-25 23:26:48 +00:00
sha..rd
8c69c7d205 * Shader now has accelerated access to attribute by using IntMap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7671 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 19:14:27 +00:00
nor..67
93d968a12b - fix compile error in renderer (vb.getBufferType().name())
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7669 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 12:00:16 +00:00
sha..rd
c727d3e006 * Fixed crash in TestCinematic
* Fixed crash in LightList.sort()
 * Removed usage of Arrays.copyOf() in BitmapFont, so Android can run it
 * Formatted OGLESShaderRenderer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7668 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 00:23:19 +00:00
sha..rd
f9079171f1 * Optimization to prevent allocation of IntMap$Iterator in Renderer.renderMesh()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7661 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 17:09:11 +00:00
rem..om
978ee32a96 WateFilter depth write fix (yeah 'fix' Kirill). Issue was glClear(GL_DEPTH_BUFFER_BIT) seems to not work when glDepthMask is false
see http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=257223
Also there might be the same issue when copying frame buffers 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7628 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-14 17:10:21 +00:00
sha..rd
39a7c743af * Fix android runtime error due to BufferedImage being used in AppSettings
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7621 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-14 03:07:21 +00:00
sha..rd
a8533e5378 * Fixed crash in TestDepthOfField
* Moved Remy's render state hack to filter processor where it belongs

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7603 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-12 23:15:03 +00:00
sha..rd
d03683deca * SimpleTextured, SolidColor, VertexColor, and WireColor are now obsolete. Using those materials will crash your application.
* Additional javadocs for Material
 * Added TestMusicStreaming

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7591 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-12 02:35:19 +00:00
sha..rd
dce2dd2eb1 * Deleted StencilFunction and replaced it with TestFunction (in case it will be used in more than one place)
* RenderContext.reset() now properly resets stencil render state.
 * Added full javadoc to RenderState

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7581 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-11 17:56:53 +00:00
kim..ng
a697b6efa4 Android: getTouchInput() interface add
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7549 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-04 20:33:55 +00:00
rem..om
2d4896942d TranslucentBucket :
- Added a translucent bucket that is rendered after the processors (usefull for shadows)
- For filters, rendering this bucket is a bit particular, so you can use the TranslucentBucketFilter to render the translucent bucket in the middle of the fillter stack (doc is comming up in the wiki)
- renamed Filter's preRender method to postQueue for consistancy with processors
- added translucent objects in TestPostWater, added a fire (particles) in test transparent shadows

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7540 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-31 06:51:51 +00:00
Sha..rd
873c656e23 * Fixed crash when changing number of samples/bpp and then calling app.restart()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7518 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-22 17:02:46 +00:00
sha..rd
549d167635 * Let implementation choose appropriate pixel format for pbuffer.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7469 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-08 17:54:41 +00:00
nor..67
8406f0058e Kirill: Better fix for mac issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7448 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-05 01:35:38 +00:00
nor..67
8ace54916f Kirill: Fixed Mac issue where canvas wouldn't render anything when framebuffers were used
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7447 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-05 01:05:52 +00:00
sha..rd
0726ad61bf * Fix LwjglCanvas freezing on Windows XP
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7445 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 20:34:30 +00:00
sha..rd
11467977f0 * When using canvas, ensure that the same pixel format is used for all shared contexts, as recommended by Apple documentation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7444 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 19:07:10 +00:00
sha..rd
f004d23070 * LwjglCanvas now correctly resets the renderer state by calling renderer.invalidateState(). Doing renderer.resetGLObjects() is NOT sufficient in many cases ...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7443 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 18:58:22 +00:00
Sha..om
8b2b999bd0 * Added proper check for framebuffer textures when doing NPOT scaling.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7441 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 16:19:51 +00:00
sha..rd
1a3823b6aa * Set AppSettings.setRenderer() to LWJGL_OpenGL_ANY to choose renderer based on capabilities of video card.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7385 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-01 23:40:56 +00:00
sha..rd
cfb647f743 * Reduce input lag by polling after framerate syncing
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7382 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-01 19:02:36 +00:00
sha..rd
b5a8080f61 * Added checking for image format
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7376 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-01 04:41:00 +00:00
sha..rd
0d0454f248 * Canvas is now using pbuffer workaround, allowing renderer to acquire renderer capabilities even if the canvas is not visible yet.
* Handling of context destruction is now handled individually for displays and canvases.
For canvas, this allows it to destroy the pbuffer in addition to the display.
 * VertexBuffer now has better detection for data size changes, might prevent GL errors in certain cases. NOTE: VertexBuffer.updateData() is generally more stable than VertexBuffer.setUpdateNeeded(). Refrain from using setUpdateNeeded() .. its an internal call anyway. Using it directly could cause GL errors.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7374 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-30 23:10:25 +00:00
Sha..om
a4e0e634c1 * Fix NPE in LwjglCanvas.restoreCanvas()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7361 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-29 19:04:13 +00:00
sha..rd
e05c94564f * Uncaught exception handler now set only on render thread instead of entire VM
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7356 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-28 21:58:02 +00:00
sha..rd
6196de22f7 * Removed all deprecated classes, methods, and fields
* AudioNode now takes AudioRenderer in its constructor to allow audio.play() functionality

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7333 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-27 16:45:01 +00:00
sha..rd
33dac750d7 * Fix for jMonkeyPlatform "100% CPU usage" bug
* Deprecate Quaternion.normalize() as it does not follow naming convention


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7332 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-27 16:02:09 +00:00
sha..rd
4ff31a6fab * Changed depth function back to GL_LEQUAL
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7293 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 04:07:43 +00:00
jos..om
9cc223c507 RenderState support for two sided Stencil Buffer operations (in order to support Shadow Volumes in the future)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7286 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-22 21:10:27 +00:00
sha..rd
ed7789b7a6 * The OpenGL2 renderer now actually scales non-power-of-2 textures instead of throwing out a useless warning
* Nifty GUI now supports the rescaling of textures by storing the resolution beforehand

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7281 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 20:46:24 +00:00
sha..rd
7d6167c0dc * Added Renderer.invalidateState() to reset the render context
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7280 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 20:18:41 +00:00
sha..rd
8019ba2a53 * LwjglRenderer will throw an exception when attempting to set null shader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7279 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 18:56:18 +00:00
sha..rd
8fb97f1a3a * Call timer.reset() when gaining focus to fix "object speedup after alt-tab" issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7264 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 00:39:51 +00:00
sha..rd
d729da9e78 * @SuppressWarnings("fallthrough") to prevent warnings
* Fixed rest of the warnings

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7241 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-14 03:37:05 +00:00
sha..rd
7dd3d52e9e * Removed many deprecated methods and classes
* Fixed various small issues detected by code analyzer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7240 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-14 03:19:11 +00:00
sha..rd
0d8a4b8dd4 * Fixed some luminance/alpha formats failing due to missing break statement under switch
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7239 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-13 22:43:15 +00:00
sha..rd
7c7afb677f * Add check for GL_ARB_texture_multisample before setting up the texture to see if its supported
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7210 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-06 22:51:41 +00:00
sha..rd
3778400635 * More errors sent to Application.handleError()
* Application.handleError now stops by default to prevent process from lingering on
 * Made sleeps in LwjglCanvas slightly longer to prevent hogging 100% cpu
 * Renamed elephant skeletonxml to skeleton.xml
 * Compressed HoverTank textures and removed high-res versions
 * Compressed Tree textures

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7203 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-06 19:58:16 +00:00
sha..rd
90bf137894 * Added new renderer capability: NonPowerOfTwoTextures
* LwjglRenderer will show warnings when NPOT textures are used and the graphics card doesn't support them
 * LwjglGL1Renderer will scale textures to POT sizes if NPOT is not supported
 * Enable simple logging

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7177 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-03 21:45:29 +00:00