Stephen Gold
e99c8a74a3
improve formatting and rm trailing whitespace (16 files in jme3-core)
5 years ago
Stephen Gold
1c3ed5122f
suppress still more javac warnings about unchecked casts
5 years ago
Stephen Gold
70ae48af1e
avoid using raw types
5 years ago
Stephen Gold
822bcd1300
suppress more javac warnings about unchecked casts
5 years ago
Stephen Gold
297443ada4
suppress javac warnings about unchecked casts in read() and write()
5 years ago
Stephen Gold
60967b9f04
IndexBuffer: resolve a javadoc warning
5 years ago
ItsMike54
6c5611d3e2
Remove jogl ( #1339 )
...
* Remove JOGL
* Update build.gradle
* Update AppSettings.java
* Update settings.gradle
* Update TestMultipleApplications.java
* Update build.gradle
* Update JmeDesktopSystem.java
* Update AppSettings.java
* Update package-info.java
* Update TestApplet.java
* Update HelloOpenCL.java
* Update TestContextSwitching.java
* Update TestOpenCLLibraries.java
* Update TestVertexBufferSharing.java
* Update TestWriteToTexture.java
* Update TestMultiPostWater.java
Co-authored-by: Mike Burnett <mikejme4@gmail.com>
5 years ago
matthias plasser
89df7909d3
Fixes #1341 : AudioBuffer.updateData only allows direct buffers ( #1342 )
...
* only allowing direct buffers now, see: https://hub.jmonkeyengine.org/t/solved-playing-audio-from-audiobuffer-in-audionode-causes-jre-to-die/43091/12
* style correction
Co-authored-by: Stephen Gold <sgold@sonic.net>
5 years ago
rvandoosselaer
76210fe415
Add a check to see if the NB_PROBES identifier is defined. Fixes #1340
5 years ago
Riccardo Balbo
d109e4739e
Fix last query not closed in profiler
5 years ago
Stephen Gold
b8287a2d0d
correct some typographic errors in Billboard100.frag comments
5 years ago
Stephen Gold
51022fd521
elimiate incidental hard tabs from jme3-core
5 years ago
MeFisto94
0115616652
UBO: Re-order the caps detection for a more clean code.
5 years ago
MeFisto94
64797f9bff
UBO: GL_INVALID_ENUM on Mesa
5 years ago
MeFisto94
21b7a71cf8
Fixes SSBO causing GL_INVALID_ENUM in Debug Mode
5 years ago
MeFisto94
646e6741b9
GLSLCompat: The Matrix3 Sub-Constructor is called mat3_sub and defers to the builtin mat3 if available.
5 years ago
MeFisto94
2276197a2b
Fixing PBR on <= GLSL 130:
...
- GLSLCompat now implements mat3(mat4) and determinant() and inverse() for mat2 and mat3
- PBR.glslib uses this functions again instead of one-off workarounds
5 years ago
MeFisto94
df39677381
GLDebug: Throw an IllegalArgumentException instead of an IllegalStateException
5 years ago
MeFisto94
461227bdef
Fixes #1304 - Don't use mat3() constructor to keep compatibility with GLSL110
5 years ago
Riccardo Balbo
728a05c4f3
lambda 🎉
5 years ago
Ali-RS
0c6f240222
Check culling on the instanced geometries. ( #1315 )
5 years ago
MeFisto94
4d81d00f45
GLDebug: Throw an unchecked exception instead of returning null to enforce a crash when glGetError is not present.
5 years ago
MeFisto94
312fb5bb57
GLDebug: Use a method handle instead of a string comparison to increase the performance
5 years ago
Daniel Perano
0aa50a0f15
Expose ViewPorts
...
This commit allows EnvironmentCamera users to access the ViewPorts used
for rendering the snapshots. This allows incorporating screenspace and other
SceneProcessor-based effects into the snapshots as well as the scene geometry.
5 years ago
Lou Hamersly
c1d359ca59
Fix #1289 Matrix3f/Matrix4f equals() should require an exact class match ( #1302 )
5 years ago
Stephen Gold
8e334aa756
BufferUtils: resolve issue #1288 (rewrite isDirect()) ( #1299 )
5 years ago
Stephen Gold
f652591281
remove unnecessary casts and tests for null, discovered using NetBeans ( #1285 )
...
* remove unnecessary tests for null, discovered using NetBeans
* jme3-core: remove unnecessary casts
* jme3-examples: remove unnecessary casts
* jme3-vr: remove unnecessary casts
* jme-plugins: remove unnecessary casts
* jme3-terrain: remove unnecessary casts
* jme3-desktop: remove unnecessary casts
* jme3-android: remove unnecessary casts
* remove unnecessary casts, discovered using NetBeans
* TerrainQuad: back out one casting delta that's not a removal
* TerrainPatch: simplify generateLodEntropies() after removal of the cast
* TerrainPatch: simplify reIndexGeometry() after removal of the cast
5 years ago
MeFisto94
12481c08f6
Use a reflection-based approach to call checkError() after every call to the openGL API to reduce Code Duplication and increase Maintainability, while also fixing the regression caused by GLDebugDesktop extending from GLDebugES and thus making the Renderer think it is on mobile.
5 years ago
MeFisto94
ab96460853
Fix small things ( #1287 )
...
* JmeVersion: Don't throw a NullPointerException when version.properties can't be found.
* ImplHandler: Reduce Code-Duplication by using a multi-catch statement
5 years ago
Stephen Gold
f268d00222
Fixes issue #1286
5 years ago
MeFisto94
8219d7fc02
Add two convenience flags to AppSettings: GraphicsTrace and GraphicsTiming. ( #1279 )
5 years ago
Stephen Gold
dde0906963
re-assign Simsilica LLC copyrights with Paul's permission (issue #1001 )
5 years ago
Stephen Gold
0fd70b81c9
Add missing @Override annotations ( #1270 )
...
* jme3-core: add the missing @Override annotations
* jme3-desktop: add the missing @Override annotations
* jme3-bullet and jme3-jbullet: add the missing @Override annotations
* jme3-effects: add the missing @Override annotations
* jme3-terrain: add the missing @Override annotations
* jme3-examples: add the missing @Override annotations
* jme3-android: add the missing @Override annotations
* jme3-blender: add the missing @Override annotations
* jme3-ios: add the missing @Override annotations
* jme3-jogg and jme3-jogl: add the missing @Override annotations
* jme3-plugind: add the missing @Override annotations
* jme3-lwjgl and jme3-lwjgl3: add the missing @Override annotations
* jme3-networking: add the missing @Override annotations
* jme3-vr: add the missing @Override annotations
5 years ago
Ali-RS
2023440acf
Removed extra PostShadow Technique from PBRLighting.j3md ( #1273 )
5 years ago
Toni Helenius
867e46190e
Issue 801 ( #1269 )
...
* Test case for issue #801
* Reset the context with the initial values
5 years ago
MeFisto94
eee37022f2
Fixes #1241 - Add a convenient Graphics Debug Option for the AppSettings ( #1256 )
5 years ago
Ryan McDonough
233bc6f0da
PreShadow & PostShadow Support for PBRLighting.j3md ( #1265 )
...
* Update PBRLighting.j3md
* Create PreShadowPBR.frag
* Create PostShadowPBR.frag
5 years ago
MeFisto94
04e7bed5e7
Fixes #1251 - Support OpenGL3.1 on LWJGL2 and LWJGL3
5 years ago
Riccardo Balbo
b059c7c0dd
Fix #1236 non-lvalue cannot be out parameter
5 years ago
joliver82
68fb1afe5d
GLRenderer.modifyTexture on GLES fix ( #1235 )
...
* Update GLImageFormats.java
* First implementation to solve the glTexSubImage issue
* Setting proper format to the image
* Removed the Image.convertToFormat method and its usage from GLRenderer.modifyTexture. Added a warning instead for the potential failing cases
Fixing the issue in JmeBatchRenderBackend.loadImage transforming it to RGBA8 if required
5 years ago
Stephen Gold
cdcf0512d9
com.jme3.scene.shape.Line: protect the no-argument constructor ( #1234 )
5 years ago
Stephen Gold
6b7dd5b325
AnimControl: correct javadoc for the no-arg constructor ( #1233 )
5 years ago
Stephen Gold
8d9d091576
Mesh: avoid NPE in getMorphTargets() when there are no targets ( #1231 )
5 years ago
Stephen Gold
98f6d326e1
re-publicize InstancedGeometry no-arg constructor, correct erroneous javadoc ( #1230 )
...
* re-publicize 3 no-arg constructors, correct/remove erroneous javadoc
* re-protect 2 no-arg constructors, restore javadoc
5 years ago
Stephen Gold
9d2d393fc3
protect 47 no-arg constructors in the jme3-core library ( #1228 )
5 years ago
Paul Speed
c73fd99dd6
Fixed the null child check to throw IllegalArgumentException instead of NullPointerException
...
because user code should never throw NullPointerException.
Also made trying to add a child to itself an error instead of a no-op. Attempting
to do something like guiNode.attachChild(guiNode) will now throw an IllegalArgumentException.
5 years ago
Paul Speed
c23f28b51c
Modified Line to keep its own start/end instances. This is less of a surprise if
...
a user later chooses to call updatePoints() after having created the line with
JME constants... since updatePoints() would actually call set() instead of just
replacing the references. The constructor and updatePoints() should match and I chose
to err on the side of caution and make them both operate on local instances.
5 years ago
Paul Speed
45b1908906
Added an app state that will verify some of the JME constants (easy to expand later)
...
to see if they've changed in the current frame. SimpleApplication will configure
this by default to use asserts but the application is free to change it to throw
regular exceptions or just log the error as desired.
5 years ago
joliver82
30df2f1b87
Android morph fix ( #1221 )
...
* Fixed MorphAnim.glsllib to compile on android and avoid enabling GL_VERTEX_PROGRAM_POINT_SIZE in android as it's not supported
5 years ago
Matthew Universe
48f28974f9
Closes #1210 Quaternion.lookAt now has a return value ( #1223 )
5 years ago