1074 Commits

Author SHA1 Message Date
Ali-RS
db1b8f9eb4 Removed unused imports. (#1020) 2019-03-17 15:06:02 -07:00
FennelFetish
a655134bb7 Added tests for traversal order when using SceneGraphVisitor. 2019-03-17 14:46:38 -07:00
FennelFetish
bee38da3b8 Fixes depth-first-traversal order in Node.
DFSMode needs to be passed to the recursive calls so the selected order is also applied further down the scenegraph.
2019-03-17 14:41:15 -07:00
Stephen Gold
a3f88aa164 fix issue #997 (cloning UpdateControl throws IllegalArgumentException) 2019-03-17 13:37:01 -07:00
TehLeo
61e19c6381 Added Texture Formats R16F, R32F, RG16F, RG32F. (#839) 2019-03-17 13:07:42 -07:00
MeFisto94
5068f1980d Fixes #961 - Remove unused + deprecated Exception 2018-12-21 21:59:12 -08:00
Paul Speed
6f6041f6ae Modified the J3M loader to be a little less like a 1980s text adventure.
Added a message to the exception thrown when using an invalid light mode.
Converted it to an IOException instead of the UnsupportedOperationException
(which is a runtime exception) so that the calling code will output a meaningful
error about which asset actually failed.
2018-12-21 21:56:42 -08:00
JESTERRRRRR
d0d67af395 Particle tile number/UV calculation change (#930)
* Update ParticlePointMesh.java

* Update ParticleTriMesh.java
2018-12-21 21:51:59 -08:00
Stephen Gold
f3351256cb correct a typographical error in JavaDoc 2018-12-21 20:21:36 -08:00
joliver82
f1d5032f7a Update GLImageFormats.java 2018-12-21 20:15:16 -08:00
Nehon
26644c89f5 Uses a HashSet for variable names in ShaderNodeLoaderDelegate instead of a String 2018-12-21 20:14:50 -08:00
b00nation
6d5758c914 Update MaterialDebugAppState.java
I was debugging my application to dig down the issue why the shaders are recognized of change but not actually reloaded. I came to this solution.
2018-12-21 20:13:38 -08:00
Christopher
9738fc0525 Updated deprecation documentation 2018-12-21 20:13:12 -08:00
grizeldi
1c8a8f2355 Fix a typo which made pbr shader fail to compile 2018-12-21 20:12:48 -08:00
Rémy Bouquet
e7845e37ea Fixes link to original paper in shadow renderer 2018-12-21 20:12:19 -08:00
Paul Speed
72eac2c738 Fixed an NPE in getNumElements() if the data field was null. 2018-12-21 20:11:29 -08:00
Stephen Gold
c09014dd1d correct 2 more typographical errors in comments 2018-12-21 20:09:52 -08:00
Stephen Gold
52bbb7ad8a follow JME's conventional approach to cloning a SpatialTrack 2018-12-21 20:09:03 -08:00
Stephen Gold
4b68a4c9dc implement JmeCloneable to simplify BoneTrack cloning, set a good example 2018-12-21 20:08:41 -08:00
Stephen Gold
8a3d628263 implement the JmeCloneable interface for CompactArray 2018-12-21 20:06:50 -08:00
Stephen Gold
e6b23342fb correct more grammar/spelling errors in comments 2018-12-21 13:09:09 -08:00
Stephen Gold
4f664f33cc correct more grammar/spelling errors in comments 2018-12-21 13:08:45 -08:00
Stephen Gold
5a1a5771ec correct more typographical errors in comments 2018-12-21 13:08:24 -08:00
Stephen Gold
f533e5003d address issue #825: SpatialTrack.clone() sets the trackSpatial to null 2018-12-21 13:06:09 -08:00
Stephen Gold
3122e8044d correct spelling errors in comments 2018-12-21 13:05:52 -08:00
Ali-RS
a17f0ad73b Fix an issue with Skeleton deserializing
Fix issue #371
2018-12-21 13:04:27 -08:00
Stephen Gold
ba37746c44 address issue #816: BoneTrack.setKeyframes() throws NPE in assertions 2018-12-21 13:02:21 -08:00
Stephen Gold
66e602c825 correct more typographical errors in comments 2018-12-21 13:02:04 -08:00
Stephen Gold
e38d70e7be correct typographical errors in comments 2018-12-21 13:01:26 -08:00
Nehon
69ca84d377 Properly cleanup the DetailedProfilerState when it's detached 2018-12-21 12:59:04 -08:00
Stephen Gold
739831142e more comment corrections in jme3-core: mostly spelling and grammar 2018-12-21 12:43:14 -08:00
Stephen Gold
81ba0d7249 comment corrections in jme3-core: mostly spelling and grammar 2018-12-21 12:41:40 -08:00
Yan
66a46920b9 Fix typo in logger
Fix typo in logger.
Change "WeakRefAssetCache" to "WeakRefCloneAssetCache"
2018-12-21 12:35:52 -08:00
Nehon
631794f7d6 Fixes mat param override reading null integenr params as 0 2018-05-19 00:22:47 +02:00
Yan
01d0725a78 [taken]Fix issue #764
Fix infinity loop in EmitterSphereShape. issue #764

I test on both method:

    public void getRandomPoint1(Vector3f store) {
        float l = FastMath.pow(FastMath.nextRandomFloat(), 1f / 3f);
        float u = FastMath.nextRandomFloat() * 2f - 1f;
        float o = FastMath.nextRandomFloat() * FastMath.TWO_PI;

        store.z = l * u;
        u = 1f / FastMath.fastInvSqrt(1f - u * u);
        store.x = l * u * FastMath.cos(o);
        store.y = l * u * FastMath.sin(o);
        store.multLocal(radius);
        store.addLocal(center);
    }

    public void getRandomPoint2(Vector3f store) {
        do {
            store.x = (FastMath.nextRandomFloat() * 2f - 1f);
            store.y = (FastMath.nextRandomFloat() * 2f - 1f);
            store.z = (FastMath.nextRandomFloat() * 2f - 1f);
        } while (store.lengthSquared() > 1);
        store.multLocal(radius);
        store.addLocal(center);
    }
    // Test
    public void testGetRandomPoint() {
        int n = 1000000;
        long start = System.nanoTime();
        for (int i = 0; i < n; i++) {
            getRandomPoint1(store);
        }
        long time1 = System.nanoTime() - start;

        start = System.nanoTime();
        for (int i = 0; i < n; i++) {
            getRandomPoint2(store);
        }
        long time2 = System.nanoTime() - start;

        System.out.println("t1:" + time1);
        System.out.println("t2:" + time2);
        System.out.println("t1/t2:" + (float) time1 / time2);
    }

Result:

    t1:352272158
    t2:94436324
    t1/t2:3.7302613

Method2 seems nearly 4 times faster than method1.
2018-01-21 09:58:32 +01:00
demoth
8ef1f2ef3b Fix #694 Reduce the logging level for OpenCLObjectManager 2018-01-21 09:57:24 +01:00
MeFisto94
5aef90da47 Fix Shadow Filters not having a default constructor and hence not being deserializable. 2018-01-21 09:57:06 +01:00
Domenic Cassisi
d36bbcf26c Adds missing key code for Print Screen (#682) (#806)
* Adds missing key code for Print Screen and update javadoc (#682)
2018-01-21 09:56:47 +01:00
Stephen Gold
8f1ee0ec9a initialize InputManager.cursorPos to fix issue #792 for LWJGL2 2018-01-21 09:53:06 +01:00
Ali-RS
e87eeb20a5 Fix javadoc for Quaternion.toAngles() method (#802)
* Fix javadoc for Quaternion toAngles and fromAngles

JME treats Z as the main direction or look direction so x is pitch, y is yaw, and z is roll,
2018-01-21 09:52:43 +01:00
Stephen Gold
ad2cb1a469 correct javadoc typo in AppSettings.java 2018-01-21 09:51:27 +01:00
Nehon
12004217d1 Ao map now only attenuates indirect lighting in PBR shader 2018-01-04 16:53:48 +01:00
Rémy Bouquet
a6b86ad24d Fixes Lightmap handling in PBR shader 2018-01-01 14:12:00 +01:00
Stephen Gold
950721f926 Uniform.java: avoid ClassCastException when overriding Vector4 params 2017-12-27 20:51:40 +01:00
Nehon
0d8b86b66f Add default config for glb loader 2017-12-24 22:16:18 +01:00
Nehon
fc8135412f Fixes normal lighting in world space for PBR 2017-12-18 17:43:57 +01:00
Nehon
435f2d4d05 Prevents NaN time when animation length is 0 (case of a pose) 2017-12-17 18:46:46 +01:00
Nehon
1b2cc6a63b SkeletonControl now falls back to software skinning when there are more than 255 bones instead of crashing when the shader compiles. 2017-12-10 19:56:32 +01:00
Remy Van Doosselaer
683bf632f6 add an empty constructor to Grid mesh (#747)
* add an empty constructor with logical values for serialization purposes. eg. the BinaryImporter has issues instantiating the Grid mesh.

* empty constructor for serialization purposes
2017-12-02 13:29:10 +01:00
Stephen Gold
e0230a4b12 roll back PR 746 (worldTransform to identity) in master branch 2017-12-02 09:04:06 +01:00