1235 Commits

Author SHA1 Message Date
Kirill Vainer
7393f79165 AudioSource: add method to get playback time
As was requested on the forum, getting playback time / position is needed to perform proper audio / video synchronization.
2015-04-29 23:58:34 -04:00
Kirill Vainer
ab7a45f66c GLRenderer: forget an end parenthesis 2015-04-27 11:20:01 -04:00
Kirill Vainer
ba3e6917c6 GLRenderer: fix modern extension retrieval method
GL_NUM_EXTENSIONS and glGetStringi is only available in OpenGL3.0+. The gl3 != null check will always be true for LWJGL backend.
2015-04-27 11:00:33 -04:00
Kirill Vainer
1fec72605f SPLighting.frag: fix syntax error with vertex lighting enabled 2015-04-25 23:13:20 -04:00
Kirill Vainer
0c846eaf6a SPLighting: fix syntax errors with vertex lighting + color ramp 2015-04-25 23:11:10 -04:00
Kirill Vainer
0a3e9a434e Image: treat setMipMapSizes as a request to generate mips 2015-04-25 23:09:11 -04:00
Kirill Vainer
10cde0a4b2 DXTFlipper: fix incorrect flipping of DXT5 images of size 2x2
For DXT1/3 images, the format for color and alpha blocks is the same,
so the bug would not appear. For DXT5 images, the alpha block is formatted
differently. The issue is that it flips the color block and then the alpha
block for 2x2 images, but the correct order is alpha block then color block.
2015-04-25 22:42:20 -04:00
Kirill Vainer
aba48495e1 J3MLoader: enforce MaterialKey requirements based on extension 2015-04-25 18:25:07 -04:00
Kirill Vainer
ed4b70bcad GLTiming: new GL wrapper to profile GL calls 2015-04-25 17:41:50 -04:00
Kirill Vainer
a6c71c4f50 Fix missing glPatchParameter and another syntax error 2015-04-25 17:34:29 -04:00
Kirill Vainer
5b95f8a4b0 GLRenderer: Improve compatibility with OpenGL 3.2 core profile
* Separate GLFbo and GLExt implementations. GLFbo can now be implemented either via vanilla OpenGL3 calls or GL_EXT_framebuffer_*** extensions (OpenGL2.1- only).
 * Use modern way of getting supported extensions in core profile.
 * Luminance and Alpha formats are not available when running in core profile.
 * Bind a dummy vertex array object (VAO) when running in core profile.
 * Point sprite mode is always enabled. Since both OpenGL ES 2.0 and OpenGL 3.2 core require it, jME3 is no longer capable of rendering regular points.
2015-04-25 16:57:24 -04:00
Kirill Vainer
73f53931f0 Image: fix mipmap generation flags not properly being updated 2015-04-24 23:35:30 -04:00
Kirill Vainer
9ba04bed8f GLRenderer: Merge Color and Screen BlendModes as they are they same 2015-04-24 23:31:52 -04:00
Nehon
7e78651ed4 Shader Nodes : fixed an issue in the shader generator that was caussing an error when there was a "//" comment in the declarative section of a node glsl code 2015-04-22 20:57:33 +02:00
Kirill Vainer
aeb1b547ce FBX: fix build errors (missing functions that need to be added) 2015-04-19 21:03:51 -04:00
iwgeric
fecfa8ccd0 Android: add joystick compatibility mapping for XBOX 360 controller connected to Android device using USB dongle 2015-04-19 12:38:43 -04:00
Nehon
8e9148f95f Fix for previous too optimistic merge 2015-04-11 16:14:54 +02:00
Nehon
e1d0e06c59 Merge branch 'master' into PBRisComing
Conflicts:
	jme3-core/src/main/java/com/jme3/material/TechniqueDef.java
2015-04-11 16:01:01 +02:00
Nehon
81c995edc4 PBR shader and PBR test case with custom model 2015-04-11 15:37:05 +02:00
shadowislord
36493353c9 TechniqueDef: fix caps loading for shader language versions 2015-03-29 11:47:58 -04:00
Nehon
3135f2f4bf Added utilities class to compute the Irradiance Map, and Prefiltered Environment Map needed for PBR indirect lighting. 2015-03-28 15:30:08 +01:00
shadowislord
414e1b3fff Lighting.glsllib: Use quadratic spotlight falloff in SRGB mode 2015-03-27 23:34:53 -04:00
shadowislord
26109fcbac (SP)Lighting.vert: clarify comment regarding material colors 2015-03-27 22:19:02 -04:00
shadowislord
6252258c98 TechniqueDef: remove useless usesShaders variable 2015-03-27 21:55:32 -04:00
shadowislord
fa324cad8f Dome: fix crash when center = null 2015-03-27 21:49:59 -04:00
shadowislord
26f702cc91 GLTracer: add more no-enum methods 2015-03-27 21:49:33 -04:00
shadowislord
a3467def1e WeakRefCloneAssetCache: remove useless "synchronized" (the map is already thread-safe) 2015-03-27 21:48:24 -04:00
shadowislord
06408410cf CollisionResult: add hashCode() - required if we have equals() 2015-03-27 21:47:54 -04:00
shadowislord
305e56a921 ShaderNode: remove incorrect attribution 2015-03-27 21:47:21 -04:00
shadowislord
068047200e Threads: standardize names. Make sure they all start with "jME3". 2015-03-27 21:43:32 -04:00
shadowislord
a683fbb16c Texture: allow setting aniso = 0, since that's the default anyway 2015-03-27 21:39:27 -04:00
shadowislord
fdf050c13d J3MLoader: set texture name in addition to key when loading it 2015-03-27 21:38:56 -04:00
shadowislord
f0fbdffb85 BoundingSphere: remove useless null check 2015-03-27 21:38:14 -04:00
shadowislord
4f15fa3147 AnimChannel: remove useless println 2015-03-27 21:37:50 -04:00
shadowislord
400c09a633 jme3-core: fix minor issues pointed in static analysis 2015-03-27 21:33:29 -04:00
Kirill Vainer
1076b489ab GLRenderer: remove check FB error calls as it causes GPU stall 2015-03-26 17:03:04 -04:00
Nehon
8a96772ae3 KTX file loading and writing support 2015-03-25 23:18:19 +01:00
jmekaelthas
eb767e7580 Feature: added support for loading assets linked from external blender
files.
2015-03-23 20:09:45 +01:00
Nehon
cecf355c70 SinglePass now uses the TechniqueDef LightSpace.
The single pass material definition LightSpace has been set to View until we implement it in world space.
2015-03-21 12:10:43 +01:00
Nehon
d662eadce9 LightSpace is now defaulted to World for SinglePass 2015-03-21 12:09:06 +01:00
Nehon
7ab9798ad7 J3MLoader can now read the LightSpace attribute 2015-03-21 12:08:07 +01:00
Nehon
01ed6db77c Introduced a LightSpace attribute in the TechniqueDef to define in what space LightData should be sent to the shader. Used it for the multipass lighting 2015-03-21 10:36:00 +01:00
shadowislord
a37f38a412 Build: fix build failure if not building from git repo 2015-03-20 23:51:15 -04:00
shadowislord
a157e83815 GLRenderer: always use glGenerateMipmap if we have FBO support 2015-03-18 23:21:25 -04:00
shadowislord
3a83ab4c69 GLRenderer: applied 080255f51860d6803b88c0c91206a0c6c42da5f4 to FrameBuffer textures as well 2015-03-18 23:19:43 -04:00
shadowislord
d6a19c4c66 Lighting.j3md: remove fixed function bindings 2015-03-18 23:16:48 -04:00
shadowislord
c0e85b3255 MaterialDebug: remove DesktopAssetManager dependency 2015-03-18 23:15:57 -04:00
shadowislord
784cfddb21 Filter: minor javadoc mistake 2015-03-18 23:14:01 -04:00
shadowislord
c34fcce7a2 MatParamTexture: remove useless constructor 2015-03-18 23:13:09 -04:00
shadowislord
6d7da0cc4e AssetManager: use right exception class if no loaders registered 2015-03-18 23:11:39 -04:00