6607 Commits

Author SHA1 Message Date
Stephen Gold
72a097682e correct spelling errors in comments 2018-02-06 18:24:44 -08:00
Alexandr Brui
a8c7a85fc1 Implementing value mappings for shader nodes. (#786)
* implemented value mappings for shader nodes.
2018-02-06 19:36:14 +01:00
Ali-RS
7e66911901 Fix an issue with Skeleton deserializing
Fix issue #371
2018-02-06 19:34:42 +01:00
Stephen Gold
72698d7082 address issue #816: BoneTrack.setKeyframes() throws NPE in assertions 2018-02-06 19:31:01 +01:00
Alexandr Brui
ec9bb24807 fixed 2 parameters of shadow renderer. (#819) 2018-02-06 18:30:30 +01:00
Stephen Gold
bc624f1f73 correct more typographical errors in comments 2018-02-01 23:39:31 -08:00
Stephen Gold
c87af1c2aa correct more typographical errors in comments 2018-02-01 19:16:05 -08:00
Stephen Gold
32e3cb658f correct typographical errors in comments 2018-02-01 18:16:32 -08:00
Stephen Gold
bc1af00a32 correct typographic errors in comments 2018-02-01 12:23:34 -08:00
Nehon
9dadc29986 Properly cleanup the DetailedProfilerState when it's detached 2018-01-31 08:15:46 +01:00
Stephen Gold
7ed644f442 add getters to shadow renderers/filters for number of maps and sizes 2018-01-29 00:17:57 -08:00
Yan
1b2c84da2e [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:37:49 +01:00
Yan
1f4365a1f4 [taken]Fix issue #783
Fix issue #783
2018-01-21 09:37:49 +01:00
Stephen Gold
9675d52745 resolve deprecation warnings in jme3-niftygui 2018-01-18 14:46:09 +01:00
mitm001
d61dbf1349 Added link to the wiki readme. 2018-01-18 14:45:06 +01:00
Stephen Gold
b159c847cc comment corrections: mostly spelling and grammar 2018-01-16 18:35:07 -08:00
Stephen Gold
d8fb815fa9 Merge remote-tracking branch 'refs/remotes/origin/master' 2018-01-16 18:21:02 -08:00
Stephen Gold
d17049e8ac comment corrections in jme3-vr: mostly spelling and grammar 2018-01-16 18:05:34 -08:00
Stephen Gold
21425f81ef more comment corrections in jme3-core: mostly spelling and grammar 2018-01-16 18:03:05 -08:00
demoth
3594a87134 Fix #694 Reduce the logging level for OpenCLObjectManager 2018-01-16 08:20:32 +01:00
MeFisto94
7bcd11e921 Fix Shadow Filters not having a default constructor and hence not being deserializable. 2018-01-16 08:19:39 +01:00
Domenic Cassisi
f61267e803 Adds missing key code for Print Screen (#682) (#806)
* Adds missing key code for Print Screen and update javadoc (#682)
2018-01-16 08:17:57 +01:00
Stephen Gold
74d70c4ee0 comment corrections in jme3-core: mostly spelling and grammar 2018-01-15 22:01:33 -08:00
ThoCed
4f6bfa36b6 Ogre importer ignores receive_shadows issue #647 2018-01-15 20:06:45 +01:00
mitm001
4d67cfedf5 Updated version. 2018-01-15 20:03:11 +01:00
Stephen Gold
26ae3ec806 initialize InputManager.cursorPos to fix issue #792 for LWJGL2 2018-01-14 17:19:20 +01:00
Ali-RS
75aa147eec 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-14 17:18:26 +01:00
Domenic
c4b635bb6f Fixed typo in assert described in issue #538 2018-01-13 20:01:29 +01:00
empirephoenix
76028201bf
Merge pull request #799 from jmecn/master
Fix typo in logger of WeakRefCloneAssetCache
2018-01-12 11:12:22 +01:00
Yan
319656a056
Fix typo in logger
Fix typo in logger.
Change "WeakRefAssetCache" to "WeakRefCloneAssetCache"
2018-01-12 13:12:11 +08:00
Yan
189c8a5a6f
Merge pull request #2 from jMonkeyEngine/master
update fork from jMonkeyEngine to jmecn
2018-01-12 13:08:17 +08:00
Stephen Gold
a3cce29b69 correct javadoc typo in AppSettings.java 2018-01-09 09:37:58 -08:00
Nehon
96b95b9a1e Fixes issues in the gltf loader when there are several skins 2018-01-07 15:34:01 +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
Stephen Gold
edba4b9844 test override of ColorRGBA mat param with a Vector4f or Quaternion value 2017-12-27 20:51:40 +01:00
Nehon
0d8b86b66f Add default config for glb loader 2017-12-24 22:16:18 +01:00
MeFisto94
11a647a3d4 Blender TextureHelper: Make use of ImageLoader's new loadTexture capability 2017-12-20 23:28:17 +01:00
MeFisto94
3cd96b2053 Blender ImageLoader: Support Loading of HDR Files and many other 2017-12-20 23:28:17 +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
Stephen Gold
247d5d9324 package protect the MovingAverage class instead of deprecating it 2017-12-17 15:17:10 +01:00
Stephen Gold
f27f568556 remove deprecated shadow renderers from 3 physics tests 2017-12-17 15:17:10 +01:00
Stephen Gold
99f4f20c75 remove deprecated BasicShadowRenderer from TestFancyCar 2017-12-17 15:17:10 +01:00
Stephen Gold
990791b21c remove setFlushQueues(), which is deprecated and has no effect 2017-12-17 15:17:10 +01:00
Stephen Gold
d3f0c2002a in examples, replace deprecated methods and classes 2017-12-17 15:17:10 +01:00
Stephen Gold
e536699d9e remove 3 examples whose purpose was to test deprecated classes 2017-12-17 15:17:10 +01:00
Nehon
8a8d381c0e glTF: Fixes models orientations issues 2017-12-10 22:50:05 +01:00
Nehon
a741dc66f4 glTF: fixed crashes with some models structure 2017-12-10 20:12:50 +01:00