Karan Nehra
dc4b71ce2b
Attempt to fixing 1074 ( #1093 )
...
* Attempt to fixing 1074
* Added method implementations in GlRenderer
* Added test.
* Added test to jme-examples
* Some changes to resolve merge conficts
* Fixes
* Indent-fixes
* Documented the class and added stop()
* Fixed a minor error
* Fixed build gradles
* Removed line ending
6 years ago
Remy Van Doosselaer
b1e7399d97
fixed wrong reference check
6 years ago
Riccardo Balbo
37ee57e845
j3md Fix for default textures ( #1052 )
6 years ago
James Adam
67b32790ee
Add tests for com.jme3/scene.mesh.VirtualIndexBuffer
6 years ago
Stephen Gold
088b48ec6b
Revert "Add tests for com.jme3.math.Vector3f"
...
This reverts commit 6689f86348
.
6 years ago
James Adam
6689f86348
Add tests for com.jme3.math.Vector3f
6 years ago
James Adam
56172a43f9
Add tests for com.jme3.math.FastMath
6 years ago
Stephen Gold
d180917af4
remove more unused imports
6 years ago
Stephen Gold
53eff66f9c
more corrections in diagnostic messages
6 years ago
Stephen Gold
7cf2023c35
more comment-only corrections
6 years ago
Stephen Gold
8a294f9892
one more jme3-core JavaDoc correction (comments only)
6 years ago
Stephen Gold
92e923df20
spelling corrections in diagnostic messages
6 years ago
Stephen Gold
0ca9205bab
jme3-desktop/jme3-effects JavaDoc corrections (comments only)
6 years ago
Stephen Gold
4f085c6254
jme3-core JavaDoc corrections (comments only)
6 years ago
Ali-RS
db1b8f9eb4
Removed unused imports. ( #1020 )
6 years ago
FennelFetish
a655134bb7
Added tests for traversal order when using SceneGraphVisitor.
6 years ago
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.
6 years ago
Stephen Gold
a3f88aa164
fix issue #997 (cloning UpdateControl throws IllegalArgumentException)
6 years ago
TehLeo
61e19c6381
Added Texture Formats R16F, R32F, RG16F, RG32F. ( #839 )
6 years ago
MeFisto94
5068f1980d
Fixes #961 - Remove unused + deprecated Exception
6 years ago
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.
6 years ago
JESTERRRRRR
d0d67af395
Particle tile number/UV calculation change ( #930 )
...
* Update ParticlePointMesh.java
* Update ParticleTriMesh.java
6 years ago
Stephen Gold
f3351256cb
correct a typographical error in JavaDoc
6 years ago
joliver82
f1d5032f7a
Update GLImageFormats.java
6 years ago
Nehon
26644c89f5
Uses a HashSet for variable names in ShaderNodeLoaderDelegate instead of a String
6 years ago
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.
6 years ago
Christopher
9738fc0525
Updated deprecation documentation
6 years ago
grizeldi
1c8a8f2355
Fix a typo which made pbr shader fail to compile
6 years ago
Rémy Bouquet
e7845e37ea
Fixes link to original paper in shadow renderer
6 years ago
Paul Speed
72eac2c738
Fixed an NPE in getNumElements() if the data field was null.
6 years ago
Stephen Gold
c09014dd1d
correct 2 more typographical errors in comments
6 years ago
Stephen Gold
52bbb7ad8a
follow JME's conventional approach to cloning a SpatialTrack
6 years ago
Stephen Gold
4b68a4c9dc
implement JmeCloneable to simplify BoneTrack cloning, set a good example
6 years ago
Stephen Gold
8a3d628263
implement the JmeCloneable interface for CompactArray
6 years ago
Stephen Gold
e6b23342fb
correct more grammar/spelling errors in comments
6 years ago
Stephen Gold
4f664f33cc
correct more grammar/spelling errors in comments
6 years ago
Stephen Gold
5a1a5771ec
correct more typographical errors in comments
6 years ago
Stephen Gold
f533e5003d
address issue #825 : SpatialTrack.clone() sets the trackSpatial to null
6 years ago
Stephen Gold
3122e8044d
correct spelling errors in comments
6 years ago
Ali-RS
a17f0ad73b
Fix an issue with Skeleton deserializing
...
Fix issue #371
6 years ago
Stephen Gold
ba37746c44
address issue #816 : BoneTrack.setKeyframes() throws NPE in assertions
6 years ago
Stephen Gold
66e602c825
correct more typographical errors in comments
6 years ago
Stephen Gold
e38d70e7be
correct typographical errors in comments
6 years ago
Nehon
69ca84d377
Properly cleanup the DetailedProfilerState when it's detached
6 years ago
Stephen Gold
739831142e
more comment corrections in jme3-core: mostly spelling and grammar
6 years ago
Stephen Gold
81ba0d7249
comment corrections in jme3-core: mostly spelling and grammar
6 years ago
Yan
66a46920b9
Fix typo in logger
...
Fix typo in logger.
Change "WeakRefAssetCache" to "WeakRefCloneAssetCache"
6 years ago
Nehon
631794f7d6
Fixes mat param override reading null integenr params as 0
7 years ago
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.
7 years ago
demoth
8ef1f2ef3b
Fix #694 Reduce the logging level for OpenCLObjectManager
7 years ago