2528 Commits

Author SHA1 Message Date
rem..om
8ffd1363b5 Fixed Fxaa, I broke it with change 10750
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10781 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-15 16:21:26 +00:00
rem..om
f3165b632f Fix to water filter where there was a remaining "m_" in a paremeter set
Thanks to maximusgrey 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10780 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-15 13:08:09 +00:00
rem..om
f8be6cf686 One can now change the depth test function throught the additional renderstate of a material.
You can also do this for the alpha test function, but alpha test is deprecated in gl 3.0 and opengl es 2.0 so it's there only for compatibility and consistency reason.
This setting can be directly set in the j3m file in the RenderState statement.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10779 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-15 13:04:33 +00:00
PSp..om
c69756acbc Let the comparator be reset without having to create
a whole new list.  And some whitespace changes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10777 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-15 05:32:20 +00:00
iwg..ic
1e3e14ba75 Update cursorPos for TouchEvents so InputManager.getCursorPosition() returns the last touch location.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10776 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 16:52:30 +00:00
iwg..ic
123ccabaff Android: Don't render mesh if vertex count == 0
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10775 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 16:49:51 +00:00
sha..RD
610d6e47fc * Avoid leaking FD in Natives.computeNativesHash()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10774 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 01:16:45 +00:00
Sha..om
e66abb780d * Respect the JmeContext.Type for OffscreenSurface value when the JmeSystem gets a request for a context
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10773 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 01:15:25 +00:00
Sha..om
55ab8f5d30 * Add convenience methods clearUniformsSetByCurrentFlag() and resetUniformsNotSetByCurrent() to Shader (normally this is performed by Material)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10772 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 00:59:37 +00:00
sha..RD
67ce41ee57 * Make sure to reset planeState and viewportChanged values in when cloning cameras
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10771 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 00:48:47 +00:00
sha..RD
228a8e2ebd * VertexBuffer.invariant() - check that buffer position is zero and limit is non zero
* Remove unneeded null check when binding uniforms to uniform bindings 
 * Added Uniform.deleteNativeBuffers() to delete any buffers the uniform might be using (currently independent of Shader disposal)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10770 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 00:42:36 +00:00
sha..RD
d048d5d6c1 * Avoid FD leaking in AbstractHeightMap save
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10769 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 00:35:03 +00:00
sha..RD
f94bc8660c * Avoid FD leaking in binary importer/exporter
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10768 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 00:29:59 +00:00
Kae..pl
d6a1b63206 Bugfix: fix to specular light loading. Taking intensity into consideration. Fix given by: pfannenwender.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10767 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-04 20:20:30 +00:00
Kae..pl
1b17c4fd04 Bugfix: fixes to specular shininess loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10763 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-02 21:04:03 +00:00
Kae..pl
b4dfd528ee Bugfix: fixes to scale/rotation setting and reading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10762 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-02 20:46:03 +00:00
rem..om
b20905f08d WaterFilter now use the built in global uniform ViewProjectionMatrixInverse instead of a custome material parameter
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10751 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-26 16:34:07 +00:00
rem..om
afa9376b26 - FilterPostProcessor no longer use a different camera to render the fulscreen quad. This greatly simplify the multiviewport filtering handling and global uniform matrix will now be usable in fliter's shaders, because it uses the same cam as the back buffer scene.
- Changed the post.vert and post15.vert to do a very basic projection to screen, saves a 16 float uniform and replace 4 matrices multiplication with 4 MAD operations per filter.
- Used ResolutionInverse instead of Resolution in FXAA to multiply instead of dividing once per pixel
- Same in CartoonEdge
- LightScattering now uses the standard post.vert and post15.vert
- Various cleanups in SSAO


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10750 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-26 16:17:48 +00:00
Kae..pl
0bb9822322 Bugfix: fixed an issue that caused repeated meshes to be populated in the wrong direction when Y axis was set as up axis.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10748 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-12 14:55:02 +00:00
jul..se
92757f8a9d Sends all key events (including repeat events) in the JOGL NEWT backend
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10744 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-04 08:36:06 +00:00
jul..se
166373230c Possible fix for the bug on compressed DDS textures in the JOGL backend
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10743 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-04 08:09:56 +00:00
jul..se
b7042af8ce Switches to JOGL 2.0.2, reverts my mistake
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10742 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-03 09:10:54 +00:00
jul..se
e877d1f8c9 Switches to JOGL 2.0.2
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-08-01 20:08:45 +00:00
rem..om
07477b0be8 cloneForSpatial in LodControl now properly calls super.cloneForSpatial
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-28 19:22:16 +00:00
rem..om
b61192d71e Formated LodControl before fixing a cloning issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10739 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-28 19:21:13 +00:00
Kae..pl
bf4447bc46 Feature: loading separate UV sets defined by user and loading LightMap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10737 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-25 10:19:34 +00:00
rem..om
b577a6c336 Fixed an issue with multiple shadow renderers.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10735 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-23 18:56:48 +00:00
rem..om
55b2afde82 Made the DebugKeysAppState output something that you just have to copy paste into your code when outputing the position and rotation of the camera.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10733 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-18 20:41:21 +00:00
iwg..ic
a1316b4514 Android: Fix issue with AndroidHarness trying to pause audio after app.stop() closed down the audio renderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-17 02:25:13 +00:00
rem..om
9f6c42f568 fixed imports in HelloTerrain, and made the same changes as in HelloCollision in HelloTerrainCollision
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10726 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 11:47:07 +00:00
rem..om
5962b6cc39 Removes the use of the deprecated Box contructor with the mesh origin in HelloPicking, made the crosshair properly centered. Also updated the wiki
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10725 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 11:41:44 +00:00
roo..li
2224767cbe Removed depricated material example in hellomaterial, refactored some object names
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10724 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 11:28:20 +00:00
rem..om
e36241e74b Removes the use of the deprecated Box contructor with the mesh origin in HelloPhysics. Also updated the wiki
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10720 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 10:04:59 +00:00
rem..om
b01ac95cfc Removes the use of the deprecated Box contructor with the mesh origin in HelloNode. also updated the wiki and made the screenshot up to date to what the tutorial produces
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10719 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 10:01:51 +00:00
rem..om
191e619bcc Removes the use of the deprecated Box contructor with the mesh origin in HelloLoop. also updated the wiki and made the screenshot up to date to what the tutorial produces
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10718 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 09:55:35 +00:00
rem..om
c576d47c15 Removes the use of the deprecated Box contructor with the mesh origin in HelloLoop. also updated the wiki
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10717 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 09:30:24 +00:00
rem..om
e530cf9ad6 Removes the use of the deprecated Box contructor with the mesh origin in HelloJME3. also updated the wiki
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10716 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 09:27:13 +00:00
rem..om
97ccd701fe Used var-args to register input listeners to the inpurManager in HelloInput instead of creating a string arrays. Also updated the wiki
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10715 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 09:24:01 +00:00
rem..om
01d8f36a52 Changed the way the walkDirection is computed in HelloCollision to avoid instatiating vector3f on each update. Also updated the wiki to reflect the change
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10714 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 09:18:33 +00:00
rem..om
7c5571070c fixed Hello Audio tutorial, also updated the wiki, and added an important note about positional audio
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10713 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 09:11:03 +00:00
roo..li
82324a385e replaced a thrown exception with a logger warning
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10712 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-14 08:40:26 +00:00
rem..om
b143904913 Android renderer : fixed issue where parsing opengl es version was failing on some device and causing a crash
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10711 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-13 19:35:51 +00:00
rem..om
aa325fc854 Fixed an issue with where one couldn't have several Shadow renderers in the same scene
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10710 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-13 13:42:20 +00:00
roo..li
a457d2d922 helloworld: updated depricated Box() constructor and object names
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10709 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-13 13:37:08 +00:00
rem..om
aa55fb6c61 Removed asserts from LodGenerator.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10706 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-13 12:41:24 +00:00
iwg..ic
20d5565cb7 Added a little offset to the physics ray to correct detecting onGround
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10705 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-13 02:59:16 +00:00
rem..om
cb90159e81 - TangentBinormalGenerator : not joining the similar vertices for computing tangents when not splitting mirrored vertices seems to yeild worse artifacts than before.
I reintroduced the joining. That produces wrong lighting anyway, but at least it's consistent with what we had before.
after 3.0, I'll default the split mirrored vertice behaviour.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10700 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-08 08:30:47 +00:00
rem..om
e373d160d9 - put back previous API for TangentBinormalGenerator generate method
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10699 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-08 05:37:23 +00:00
rem..om
a1533a407b - TangentBinormalGenerator now splits vertices with mirrored uvs. This is an optional operation.
It fixes the issue in this thread : http://hub.jmonkeyengine.org/forum/topic/normalmapslighting-issue/
Next step is to split vertices that have triangles with heavily rotated tangent spaces.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10698 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-07 21:24:02 +00:00
rem..om
93aa3cd37b - Fixed issue introduced in last change of Mesh write method. Hardware Skinning buffers were not properly ignored at save time in some rare cases, and were causing a crash
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10697 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-07-07 21:17:30 +00:00