7011 Commits

Author SHA1 Message Date
Ali-RS
0bdb0159be Fixed an issue with AndroidNativeImageLoader which was opening stream twice. (#1338) 2020-04-18 22:18:24 -07:00
Stephen Gold
969e2808e4 correct some typographic errors in Billboard100.frag comments 2020-04-18 22:17:47 -07:00
Stephen Gold
a96dbe8604 elimiate incidental hard tabs from jme3-examples 2020-04-18 22:17:39 -07:00
Stephen Gold
efc9c443de elimiate incidental hard tabs from jme3-core 2020-04-18 22:17:25 -07:00
Jérôme
1acd1d299a Removes tabs 2020-04-18 22:16:54 -07:00
Jérôme
0e0c75c85c Migrate TestOgreComplexAnim to new anim system
Lots of code that did nothing in old test (on feet, hand). Only eft hand anim with the bone anim in simpleUpdate works. So I rework the test to do how actionSquence work and manipulate Armature and Joint with ArmatureMask apply.
So I think there is a bug in ArmatureDebugger when apply PointSize in material. In the render view all points on armature debug have same size.
2020-04-18 22:14:24 -07:00
Jérôme
61cbaa72ee Migrate TestBlenderObjectAnim to new anim system 2020-04-18 22:13:54 -07:00
Jérôme
821a18be21 Migrate TestCutomAnim to the new Animation system 2020-04-18 22:11:35 -07:00
Jérôme
68c6f71c73 Migrate TestSpatialAnim to the new Anim class
Remove all deprecated class and migrate to the new animation system.
2020-04-18 22:11:33 -07:00
Grabli66
21cbdb5da3 Fixes error of loading assets 2020-04-18 22:11:30 -07:00
MeFisto94
7e3ae5e8ca Fixes #1319 - LWJGL2: start(true) should not freeze when context could not be initialized 2020-04-18 22:06:43 -07:00
MeFisto94
828ca9212a UBO: Re-order the caps detection for a more clean code. 2020-04-18 22:06:10 -07:00
MeFisto94
5100d0b995 UBO: GL_INVALID_ENUM on Mesa 2020-04-18 22:06:06 -07:00
MeFisto94
66f316b3aa Fixes SSBO causing GL_INVALID_ENUM in Debug Mode 2020-04-18 22:06:03 -07:00
MeFisto94
f68d88937f GLSLCompat: The Matrix3 Sub-Constructor is called mat3_sub and defers to the builtin mat3 if available. 2020-04-18 22:05:29 -07:00
MeFisto94
728a07a25f 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
2020-04-18 22:05:24 -07:00
MeFisto94
4c2c3fa375 GLDebug: Throw an IllegalArgumentException instead of an IllegalStateException 2020-04-18 22:04:49 -07:00
MeFisto94
00281b21a1 GLDebug: Throw an unchecked exception instead of returning null to enforce a crash when glGetError is not present. 2020-04-18 22:04:45 -07:00
MeFisto94
b00c245e8e GLDebug: Use a method handle instead of a string comparison to increase the performance 2020-04-18 22:04:39 -07:00
Stephen Gold
9be8f5dd3a 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. 2020-04-18 22:04:13 -07:00
MeFisto94
9dfbcde88c Fixes #1304 - Don't use mat3() constructor to keep compatibility with GLSL110 2020-04-18 21:56:21 -07:00
Riccardo Balbo
391e0dc6d0 Update checkout action to v2 v3.3.0-stable 2020-03-30 04:27:29 -04:00
Toni Helenius
1e7e12ee69 Fix for resizing the window (issue 1191) (#1308)
* Listen for framebuffer size callbacks and set the resolution from that

* Also check the window size on the framebuffer size callback
v3.3.0-beta2
2020-03-24 04:48:25 -04:00
Stephen Gold
f0e09b2a9e main.yml: add Gradle-wrapper validation to several jobs 2020-03-24 04:47:32 -04:00
Toni Helenius
1198908555 Lwjgl3 restart input handle (#1268)
* Reinit inputs on context restart

* Added test issue from issue #1013

* Verify that the inputs are already initialized
2020-03-24 04:44:01 -04:00
Stephen Gold
fecd018fae BufferUtils: resolve issue #1288 (rewrite isDirect()) (#1299) 2020-03-24 04:42:02 -04:00
Stephen Gold
b102eabb56 Fixes issue #1286 2020-03-24 04:37:53 -04:00
Riccardo Balbo
836455826b Fix openal-soft dead link 2020-03-24 04:36:39 -04:00
Riccardo Balbo
3c93e50d99 Update link for stb_image.h 2020-03-24 04:36:08 -04:00
Ali-RS
78779ffe0a Removed extra PostShadow Technique from PBRLighting.j3md (#1273) 2020-03-24 04:33:19 -04:00
Toni Helenius
9002d088e7 Issue 801 (#1269)
* Test case for issue #801

* Reset the context with the initial values
2020-03-24 04:33:03 -04:00
Ryan McDonough
753c3cc173 PreShadow & PostShadow Support for PBRLighting.j3md (#1265)
* Update PBRLighting.j3md

* Create PreShadowPBR.frag

* Create PostShadowPBR.frag
2020-03-24 04:31:37 -04:00
MeFisto94
55a36abe9d Fixes #1261 - Clone the Terrain Picker, so that loading a terrain from file still works (after cloning, the picker would have the wrong terrain quad instance) 2020-03-24 04:29:34 -04:00
MeFisto94
17fbedd5fe Fixes Bullet-Native Artifacts not containing natives when not building from cpp source and not using the build target. 2020-03-24 04:26:30 -04:00
Riccardo Balbo
2e30b24438 Fix #1236 non-lvalue cannot be out parameter 2020-03-24 04:21:52 -04:00
Stephen Gold
bd1b6d284c com.jme3.scene.shape.Line: protect the no-argument constructor (#1234) v3.3.0-beta1 2019-12-21 08:48:51 -05:00
Stephen Gold
8a04afd7a1 AnimControl: correct javadoc for the no-arg constructor (#1233) 2019-12-21 08:48:43 -05:00
Stephen Gold
f9d2e03362 Mesh: avoid NPE in getMorphTargets() when there are no targets (#1231) 2019-12-21 08:48:25 -05:00
Paul Speed
8905b3d8f8 Refactored how versions are auto-built to provide more normal versions
when building locally.
Normal auto-detected versions will be based on the base version parsed
from the most recent tag on the branch with a -SNAPSHOT appended.  If
the current commit is the tagged commit then it is used directly to
preserve backwards compatibility... but really that should be a CI
only option for most use-cases.
A new includeBranchInVersion option was added to allow the old behavior
of including the branch name in a munged version string for those
wanting to keep their experimental branch builds separate from their
normal master/version-branch builds.
2019-12-21 08:43:59 -05:00
Riccardo Balbo
a2169999e5 Remove "v" from version tag to maintain consistency with old releases 2019-12-21 05:02:37 -05:00
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
2019-12-04 12:01:40 -08:00
Github Actions
584bb79392 [skip ci] update natives snapshot 2019-12-03 05:23:37 +00:00
Stephen Gold
75001d8abd
protect 52 no-arg constructors in the jme3-bullet/jme3-jbullet libraries (#1229) 2019-12-02 21:01:11 -08:00
Stephen Gold
9d2d393fc3
protect 47 no-arg constructors in the jme3-core library (#1228) 2019-12-01 14:35:52 -08:00
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.
2019-11-28 15:56:15 -05:00
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.
2019-11-26 04:08:16 -05:00
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.
2019-11-26 03:34:55 -05:00
Paul Speed
37bb494709 Fixing the default versioning to be compatible with continued development.
-SNAPSHOT releases should be based on real version numbers and not partial
prefixes or it makes it harder to continuing development on the branch.
2019-11-26 02:12:13 -05:00
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
2019-11-24 09:20:09 +03:30
Matthew Universe
48f28974f9 Closes #1210 Quaternion.lookAt now has a return value (#1223) 2019-11-23 10:43:00 -08:00