30 Commits

Author SHA1 Message Date
neph1
8700871e76 Fixed some merge issues (now it's working properly)
Added test case for IK
2014-07-04 17:59:09 +02:00
shadowislord
fa41da59a4 * Fix outstanding cloning related issues in InstancedNode
* Throw exception if the geometry's material does not support instancing
 * Test the cloning function in TestInstanceNode
2014-06-28 20:52:30 -04:00
shadowislord
564a08672f * Remove InstancedNode.setCullHint(CullHint.Never) from TestInstancedNode example as it is not neccessary 2014-06-28 19:34:53 -04:00
shadowislord
eee43b470e * Added InstancedNode: easy to use instancing with similar API to BatchNode. The underlying scene graph will be automatically optimized so instancing is used as much as possible, thus reducing number of draw calls and improving performance. Unlike BatchNode, it does not copy the geometry's mesh around, but only its transform. In order for it to work, it requires the Renderer to support the GeometryInstancing capability.
* Replaced existing instancing test with TestInstanceNode, which demostrates how to use the new InstancedNode by changing the transform, mesh, and material of every instance periodically.
 * The lower-level InstancedGeometry API rewritten: Users don't need to manage the number of instances they have and their indices. Instead, they can use addInstance() and removeInstance() to add and remove instances as desired. Unlike InstancedNode, InstancedGeometry requires all Geometries to have the same mesh and material, but they can have different transforms.
 * Instancing.glsllib now requires the InstanceData to have world transforms instead of world view transforms. As a consequence, users of instancing must specify in the material the world parameters ViewProjectionMatrix and ViewMatrix instead of ProjectionMatrix.
2014-06-28 19:27:26 -04:00
shadowislord
b090305865 * Make sure we load the auxilary jinput library as well (required on windows) 2014-06-07 17:29:13 -04:00
shadowislord
fd63fcedb9 * Don't use native bullet specific method in TestNativeLoader - fix compile error 2014-06-07 17:08:23 -04:00
Nehon
d8bbb4e9f9 Fixed an issue where you couldn't chain several shadow renderers. Thanks to Perjin for narrowing down the issue.
Now a shadow renderer properly cleanup the parameters set to a material when the post shadow pass in done
2014-06-07 21:27:10 +02:00
shadowislord
e637cd0b7a * NativeLibraryLoader: More hacks .. Use the proper loading method based on the library name.
* TestNativeLoader: More concrete test that uses a custom natives folder and ensures all natives load properly and prints their versions.
2014-06-07 14:09:42 -04:00
shadowislord
2e796444a5 * Enable mipmapping in TestTextureArray 2014-06-06 23:20:24 -04:00
shadowislord
36483c4b49 * Avoid conflicts when extracting both 64-bit and 32-bit libraries to the same folder .. This is mainly for the bulletjme library which doesn't specify "64" at the end of the filename 2014-06-06 21:18:50 -04:00
shadowislord
948fdb21eb * Add new flag to Platform enum which specifies if its 32-bit platform or 64-bit.
* Add new but currently unused native extraction engine which supports user-specified native libraries as well as deferred extraction of libraries.
2014-06-05 22:32:06 -04:00
shadowislord
52cd458601 * Added two missing 32-bit image formats to TestImageRaster: ARGB8 and BGRA8 2014-06-03 23:10:49 -04:00
shadowislord
65d83b37f0 * Deprecated LTC and LATC texture formats, OpenGL3+ does not support them. Instead RGTC / BC5 must be used.
* Add missing license to InstancedGeometry.
 * Minor cosmetic / doc changes.
2014-06-03 22:58:33 -04:00
shadowislord
7cdc473e14 * Fix broken generation of classpath for jMonkeyEngine3.jar 2014-06-01 14:01:24 -04:00
shadowislord
99af4d9bd5 * Deprecate usage of TextureKey.setAsCube() and TextureKey.setAsTexture3D() - this is now handled by the TextureKey.setTextureTypeHint() method instead 2014-05-31 18:39:44 -04:00
shadowislord
d694229335 * Make tone-mapping white-point adjustment logarithmic in the sample to have less sudden exposure transitions 2014-05-31 12:06:49 -04:00
shadowislord
c01cbdd5e0 * Add option to toggle instancing either on or off to see the difference (if any) 2014-05-31 11:59:32 -04:00
shadowislord
35cfae5ef0 * Merge revision 11058 from experimental branch
- Add instanced geometry support. This is performed by uploading 4 vertex buffers each containing 4 floats. The top 3 rows are the world matrix and the bottom row is a quaternion representing the normal matrix. Hence, both unshaded and lit geometries can be rendered through instancing.
See Instancing.glsllib for more information as well as the comment in LwjglRenderer.
2014-05-31 11:46:58 -04:00
shadowislord
3838216207 * Added tone mapping filter that does not rely on average luminance (unlike HDRProcessor). 2014-05-30 23:54:56 -04:00
Nehon
c09a4b208d Fixed ColorRGBA javadoc, made the clamp method use FastMath.clamp, integrated @kwando's pull request 131 2014-05-26 12:20:58 +02:00
Nehon
95f215c180 Adjusted TestPostWater to gamma correction 2014-05-26 12:19:20 +02:00
Nehon
8ff6f8df24 Introduced a new Enum ColorSpace.
One can now mark a texture param in a material definition as linear by using -Linear at the end of the parameter declaration (case insensitive).
An Image bound to a material texture param in a linear color space will have its ColorSpace set to linear when bound to the material by mat.setTexture("name", texture);
Added the -LINEAR flag to all texture param that needed it in stock materials (lighting.j3md, terrainLighting.j3md, different Filter materials).
2014-05-26 12:11:57 +02:00
Nehon
e4ba4e9e9e - Image loaders now assume ALL images are in sRGB space and set the flag accordingly
- All images constructors now take the isSrgb flag as a parameter, all engine classes has been changed to accommodate the change, old constructors has been deprecated for backward compatibility. One should always ask himself in which color space is an image if dealing with gamma correction
- Gamma correction has been defaulted to false in the appSettings
2014-05-26 12:11:56 +02:00
sgold@sonic.net
8d2b7a53e6 fix race in TestAwtPanels as discussed at http://hub.jmonkeyengine.org/forum/topic/fix-for-race-in-testawtpanels 2014-04-18 08:55:59 -07:00
Rémy Bouquet
ae0cd3d813 Merge pull request #117 from maany/issue#85
Issue#85 fix from maany
2014-04-03 07:38:29 +02:00
Mayank Sharma
4c320f686d issue#85 short approach - setDefaultCloseOperation 2014-03-31 16:15:54 +05:30
Mayank Sharma
5b84be227a end application when TestChooser dialog is closed
added a WindowListener in the constructor that overrides the windowsClosing method to dispose the TestChooser dialog. 
code tested with positive result for issue#85.
2014-03-29 16:40:12 +05:30
Normen Hansen
54c6aa5afc fix checks for SDK and native builds 2014-03-23 21:22:38 +01:00
Normen Hansen
d4546223fc - include SDK in gradle build
- add option to build natives / SDK to gradle properties
- update SDK properties file with jme version
2014-03-23 12:31:26 +01:00
Normen Hansen
a16857c8f4 switch to gradle layout 2014-03-21 02:32:11 +01:00