46 Commits

Author SHA1 Message Date
Kirill Vainer
2ca55c8b3a LWJGL3 improvements
* Added key remapping for GLFW key constants
 * Rename AppSettings.getGammaCorrection() to isGammaCorrection()
 * Use LWJGL3 artifacts from maven
 * Minor compatibility changes for LWJGL 3.0.0b
 * Fixed some minor bugs in LwjglWindow
2015-12-29 00:00:39 -05:00
David Bernard
0f140370ed jogl: flip y for mouse click 2015-11-11 22:48:00 +01:00
David Bernard
3e71198610 jogl: use pixel unit for window's dimension (fix issue on MaxOS X) 2015-11-11 19:58:23 +01:00
David Bernard
836bf85630 jogl: some fixes about mouse handler
* Y hotspot is top in jogl, and bottom in jme
* in jme when mouse is invisible it should be confined into the window (on mac it could go out of the window)
* when window doesn't has the focus the mouse should not behave like when has the focus like 
  * trying to re-center
  * stay invisible
2015-11-07 15:22:04 +01:00
Julien Gouesse
ea28e8a449 First attempt to fix a bug reported by david_bernard_31, the size of the strings in the shader code was wrongly computed for the JOGL backend 2015-10-31 11:00:17 +01:00
Julien Gouesse
ce86a3e555 Allows to choose between the forward compatible profile and the backward compatible profile in the JOGL backend 2015-10-30 21:47:52 +01:00
Julien Gouesse
f38ea1e3e2 Displays the JOGL version instead of the NEWT version 2015-10-30 21:46:25 +01:00
Julien Gouesse
1559dacdca Updates JOGL (2.3.2) 2015-10-30 21:12:25 +01:00
Julien Gouesse
5f77ff021b Fixes the NullPointerException in the demos when using JoglNewtDisplay 2015-09-22 23:50:28 +02:00
Julien Gouesse
daa18429d1 Removes the old JOGL renderer and uses the new unified renderer as it works correctly now 2015-09-22 23:06:16 +02:00
Julien Gouesse
e3a45755c6 The JOGL backend doesn't need null-terminated strings for the attributes and the uniforms 2015-09-22 22:50:31 +02:00
Julien Gouesse
da01826e43 Temporarily disables the unified renderer in the JogAmp backend 2015-08-31 23:17:48 +02:00
Julien Gouesse
fcae2e64de Removes some useless code from the JogAmp backend 2015-08-31 23:15:09 +02:00
Julien Gouesse
7bd414665b Drives the display renderable earlier in order to fix the unified renderer of the JOGL backend 2015-08-30 21:47:39 +02:00
Julien Gouesse
fae50fd36e Fixes a compile error in the unified renderer of the JOGL backend, doesn't rely on the auto-boxing 2015-08-30 21:36:58 +02:00
Julien Gouesse
814fb2b3ff First implementation of the unified renderer for the JOGL backend, untested 2015-08-29 21:27:20 +02:00
Julien Gouesse
bbb15062af Adds the support of DebugGL for OpenGL ES 3 into the JOGL backend 2015-08-28 19:12:56 +02:00
Julien Gouesse
2e977f6535 Fixes a GLException caused by a regression on the management of the gamma correction in the JOGL backend 2015-08-28 19:09:52 +02:00
Julien Gouesse
5b56f1e513 Updates the JogAmp backend, uses JOGL 2.3.1 2015-04-04 16:37:36 +02:00
shadowislord
068047200e Threads: standardize names. Make sure they all start with "jME3". 2015-03-27 21:43:32 -04:00
iwgeric
4baceb6a08 fixed compilation issues in deprecated OGLESShaderRenderer, IGLESShaderRenderer, and JoglRenderer caused by earlier commit 2015-02-14 10:27:23 -05:00
shadowislord
6ca111b13d Refactor renderer system
* Support OpenGL ES 2 in GLRenderer (various error fixes)
 * Get rid of OpenGL 1 remenants
 * Other minor cleanups
2015-01-19 18:15:25 -05:00
Nehon
9f459af4e3 One can now call readFrameBuffer with a specific format, implementation has been done for the GLRenderer only.
For now only placeholders have been done for the renderers that are still not using URA (all except LWJGL).
2014-12-28 16:23:30 +01:00
shadowislord
ad26e916ee Update renderer capabilities
* Add capabilities not normally supported by GLES2 for unified renderer
 * Remove ARBProgram since it isn't used by jME3
2014-12-05 22:13:28 -05:00
shadowislord
5f33bdfa95 JOAL audio renderer to use the unified OpenAL backend as well 2014-11-15 16:36:24 -05:00
shadowislord
91715c4a48 Add support for URA, or Unified Renderer Architecture for audio
* Unified all renderers into common class 'ALAudioRenderer'
 * LWJGL and Android now implement the AL / ALC / EFX interfaces to provide a common OpenAL backend for jME
 * Added support for OpenAL Soft "Pause Device" extension, which allows the engine to pause the context while running in the background (currently requires OpenAL soft 1.16 and thus is Android only feature)
2014-11-15 15:15:50 -05:00
shadowislord
4717e7006f Goodbye, OpenGL1 2014-11-09 12:29:28 -05:00
shadowislord
1dfa4d4c0d Remove usage of deprected image formats (JOGL) 2014-11-09 11:53:12 -05:00
David Bernard
37da17e3eb add support of DepthStencil into *Renderer
+ a test app
- only tested on desktop with Lwjgl
2014-11-05 12:15:14 +01:00
saloisio
6dace77a7a Animator is stopped only if it is currently animating. 2014-09-22 09:36:37 -04:00
unknown
0644c286ef Updated JOGL canvas classes to fix shutdown bug. Also added frame rate
support.
2014-09-19 13:24:01 -04:00
pspeed42
5a482e2b98 Added another Photoshop tyle blend mode: Exclusion
Performs a sort of color XOR with source and destination.
Very useful for UI highlighting but is a bizarre (and
potentially useful) effect in 3D.
2014-09-10 14:00:27 -04:00
shadowislord
dbd9ed9d78 Merge pull request #126 from kwando/screen_blendmode
Add Screen blend mode.
2014-09-07 16:54:23 -04:00
Julien Gouesse
2bca84a43d Ports all changes done on the official renderer during several months to the JOGL renderer (I thank a lot the lazy developers) 2014-08-10 18:27:47 +02:00
Julien Gouesse
44f7e8bb84 Updates JOGL (2.2.0) 2014-08-10 15:30:01 +02:00
Hannes Nevalainen
09b4ef6d82 Screen blend mode for JOGL. 2014-07-01 19:22:13 +02:00
shadowislord
54ffe15dda * Switch to new native library loader
* Deprecate old library loader
 * Add warning when the requested number of antialiasing samples cannot be satisfied
 * Cleaned up LwjglContext.determineMaxSamples()
2014-06-06 20:39:37 -04:00
shadowislord
65094e9ca1 * Put the shader compile log on the next line so its slightly more readable 2014-06-05 23:28:28 -04:00
shadowislord
81498d6f79 * Introduce Image.isNPOT() which is now used to check if the image is non-power-of-2 in renderer implementations. 2014-05-31 12:27:31 -04:00
shadowislord
35cfae5ef0 * Merge revision 11058 from experimental branch
- Add instanced geometry support. This is performed by uploading 4 vertex buffers each containing 4 floats. The top 3 rows are the world matrix and the bottom row is a quaternion representing the normal matrix. Hence, both unshaded and lit geometries can be rendered through instancing.
See Instancing.glsllib for more information as well as the comment in LwjglRenderer.
2014-05-31 11:46:58 -04:00
Nehon
09e705dcc4 Introduced RGB10_A2 Image Format. It offers greater precision for RGB channels at the expense of precision for the alpha channel. This format is convenient for post processing, and especially when gamma correction is turned on. 2014-05-26 12:16:15 +02:00
Nehon
8ff6f8df24 Introduced a new Enum ColorSpace.
One can now mark a texture param in a material definition as linear by using -Linear at the end of the parameter declaration (case insensitive).
An Image bound to a material texture param in a linear color space will have its ColorSpace set to linear when bound to the material by mat.setTexture("name", texture);
Added the -LINEAR flag to all texture param that needed it in stock materials (lighting.j3md, terrainLighting.j3md, different Filter materials).
2014-05-26 12:11:57 +02:00
Nehon
e4ba4e9e9e - Image loaders now assume ALL images are in sRGB space and set the flag accordingly
- All images constructors now take the isSrgb flag as a parameter, all engine classes has been changed to accommodate the change, old constructors has been deprecated for backward compatibility. One should always ask himself in which color space is an image if dealing with gamma correction
- Gamma correction has been defaulted to false in the appSettings
2014-05-26 12:11:56 +02:00
Nehon
77a4002c3d Added support for hardware srgb output (gamma correction).
It can be toggled at render time.
Works with lwjgl
Couldn't test with Jogl and might be not working
Not supported by mobile renderers
2014-05-26 12:11:55 +02:00
Normen Hansen
b37a5357cf update jogl dependency to 2.1.4 2014-03-21 03:04:15 +01:00
Normen Hansen
a16857c8f4 switch to gradle layout 2014-03-21 02:32:11 +01:00