69 Commits

Author SHA1 Message Date
sky..ok
84116c85f8 Created clickable links out of http mentions in all jME3 Javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8465 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-19 20:23:39 +00:00
nor..67
a71340c196 - disable "smoothing" of jme framerate by deafult
- move smoothing timer to LwjglSmoothingTimer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8454 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-18 22:21:38 +00:00
sha..rd
107380afc1 * Moved GLObjectManager to util, it is now NativeObjectManager and can be used to manage collection of any native object
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8422 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 01:26:31 +00:00
sha..rd
0372a5ed6d * Add lighting support to OpenGL1 renderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8387 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-13 04:04:33 +00:00
sha..rd
e3bff6d62a * Moved checkFrameBufferError() to part that sets up framebuffer. Can prevent odd crashes on some systems before any framebuffer is active.
* AWT Panels
    - Added automatic throttling to update loop if none of the panels are visible to the user (e.g. covered by another tab)
    - Fixed NPE that could occur when an AwtPanel becomes invisible
    - Called reshape() on all viewports to which an AwtPanel is attached when the panel is resized
    - Fixed inverted mouse coordinates

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8344 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-04 04:30:48 +00:00
sha..rd
a5be89598f * Always close InputStream in WAVLoader
* Fix use of deprecated classes/methods in android tests
 * Fix bugs with joysticks often generating events for both the negative and positive side of axis
 * Camera.clone() properly clones the gui bounding
 * Camera.setParallelProjection() updates the camera's projection matrix instead of keeping old values
 * LwjglOffscreenBuffer obeys by framerate setting and sets renderable property as needed

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8283 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-24 00:50:13 +00:00
sha..rd
64c61c86e4 * Fix syntax errors due to JmeSystem/Platform changes
* Prevent stream closed exception when playing OGG music
 * Prevent UnsatisfiedLinkError when using audio effects on Mac
 * Add BitmapText caching to Nifty GUI. May improve FPS in guis with lots of text elements

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8237 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-11 02:02:29 +00:00
sha..rd
6d728615a3 * Ogre3D mesh.xml loader is now more resilient to certain models exported using blender2ogre
* Ogre3D dotScene loader can now load spot lights
 * Added some better debugging to FBO errors
 * Fix weird explosion in TestWalkingChar
 * Added additional "canvas torture methods" in TestCanvas 
 * Several fixes to canvas:
   - Issue when size becomes 0, 0
   - Freeze if no framerate limit is imposed and canvas is closed

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8210 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-07 02:46:40 +00:00
rem..om
9bd19338e3 Renderer : fixed clear color buffer when color write is disabled
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8192 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-05 19:13:06 +00:00
sha..rd
2f41dcfd48 * More checkFrameBufferError() only when setting an FBO, and not when setting main FB
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8184 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-04 23:22:38 +00:00
sha..rd
71cb644853 * Tried to fix canvas + multisampling bug by creating 1 sample pbuffer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8167 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-04 03:30:26 +00:00
sha..rd
2d1b2b7948 * Fixed "jME3 ate my mouse" Linux bug when an exception occurs
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8161 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-03 19:44:45 +00:00
sha..rd
2d93b713f3 * Reapplied r8158
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8160 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-03 18:57:38 +00:00
sha..rd
5a3f191135 * Reverted r8152, r8157 and r8158
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8159 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-03 18:52:56 +00:00
dan..om
df7d2684fd Added the shader's sources to the Logger's Info. It is a bit more verbose, but should help identify where it's coming from. Whereas before you were only getting the "Uniform"'s name that it couldn't find, now it'll tell you in which shader it is.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8158 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-03 10:30:21 +00:00
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