2325 Commits

Author SHA1 Message Date
bre..ns
64b736f2e9 fix a bug in terrain getHeight for some edge cases
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9275 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-03 15:13:31 +00:00
rem..om
e3ed779fc9 Committed iwgeric patch for native bullet PhysicCollisionEvent
http://jmonkeyengine.org/groups/android/forum/topic/null-objects-in-collision-callbacks-on-android-resolved/#post-169899

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9274 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-02 20:03:54 +00:00
rem..om
a8bfb54b02 Fixed the mix up in fromAngles method's javadoc in Quaternion, pitch is Attitude and roll is Bank
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9273 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-01 16:04:32 +00:00
rem..om
f156b31ce1 Spline now clones the control points to not keep a reference on the given vector.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9272 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-01 08:23:45 +00:00
rem..om
a4c1fd7670 Fixed naming of pitch, yaw, roll thing in rotation that was wrong. Now they are named xAngle, yAngle, zAngle in Spatial and Quaternion. Pitch , Yaw, Roll are just mentionned in the javadoc.
There has been several posts about that, the last in date is here http://jmonkeyengine.org/groups/general-2/forum/topic/confused-about-euler-axes-and-jme-axes/#post-169736

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-01 08:22:26 +00:00
bre..ns
3dc9a591b7 whoops, I blame jesus for not adding this class
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9270 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-31 06:18:10 +00:00
bre..ns
a1249b551d * refactored terrain lod to move most of the lod code to the control
* lodDistanceCalculator no longer queries the world transforms of the terrain on the background thread

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9269 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-30 04:16:55 +00:00
PSp..om
198979bf5a Removed setEnabled() and isEnabled() from the Control
interface since no engine uses of Control will ever call
these methods.  The functionality is still left in 
AbstractControl which makes more sense since it is up
to the control implementation to enable or disable itself
as it sees fit.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9268 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-29 18:49:22 +00:00
PSp..om
4e12127f27 Remove the fragile camNode.getControl(0).setEnabled()
and replaced it with camNode.setEnabled().
A) it is kind of scary to rely on the control index in
this case.
B) CameraNode.setEnabled() already calls setEnabled()
on the CameraControl.
An acceptable alternative would be:
camNode.getControl(CameraControl.class).setEnabled()
but I didn't see the point of it.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9267 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-29 18:45:47 +00:00
nor..67
0e315d57da SDK:
- make sure important files node closes AndroidManifest.xml

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9266 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-27 12:17:51 +00:00
nor..67
72c6689656 SDK:
- make android SDK tool refresh folder when creating the android project

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9265 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-26 23:01:44 +00:00
Sha..rd
828c8071f6 * Fix BufferUtils.destroyDirectBuffer() in OpenJDK7
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9264 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-25 19:28:05 +00:00
Sha..rd
8973175783 * Try to fix linkVertices in TangentBinormalGenerator (prevent assigning same tangent to verts with different texcoord)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9263 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-25 19:09:03 +00:00
Sha..rd
2cdeb6ebff * Fix animation blending from bind pose issue
* Fix look/cycle modes for animations to prevent result time from being out of range

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9262 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-25 18:41:38 +00:00
rem..om
203bc00a7d Lighting material now normalize normal value read from the normal map to avoid banding artifacts
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9261 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-25 12:36:27 +00:00
rem..om
fecf355de2 ChaseCam : changed all private attributes and methods to protected so people can extend the chaseCam behavior as they see fit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9260 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-24 09:05:08 +00:00
rem..om
cf93c2c6fc Fixed issue when the last waypoint of a motion path was not triggering listeners
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9259 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 10:50:36 +00:00
rem..om
7f6ce84ffd Implemented setSpeed for animationTrack as it needs special treatment
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9258 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 10:38:32 +00:00
rem..om
1945a0c1c0 BatchNode and GeometryBatchFactory now uses the material's isEqual method to gather the geometries to batch
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9257 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 10:00:49 +00:00
rem..om
55b8188d20 Material has now a isEqual method that compares materialDef, material params and material additional render state
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9256 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 09:46:52 +00:00
sky..ok
533fb86c50 Down to 260 Javadoc warnings from 324
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-22 00:22:09 +00:00
sky..ok
0af3e46a45 Added move speed and rotate speed getters in FlyByCamera
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9253 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-21 21:18:39 +00:00
bre..ns
ee69225ad0 fixed some normal calc issues in LODGeomap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9252 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-20 00:46:34 +00:00
nor..67
f06b1dfa4d - enter new wiki page in correct properties file
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9251 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-19 00:05:35 +00:00
roo..li
c046c740ee removed .html from toc item target name :D
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9250 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-18 14:24:32 +00:00
roo..li
3eac27b3df Added multi-media asset pipeline best practices to wiki-map and core-toc.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9249 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-18 14:23:46 +00:00
Sha..rd
940232406e * Fixed town.zip by getting it from googlecode downloads
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9248 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-14 04:16:04 +00:00
dan..om
9378179d94 - Fixed camera "twisting" when rotating up/down when zoomed-in. The min rotation is hard-coded to -90 degrees down (the up remain settable).
- Added flag to enable rotating down when zoomed out.
- Added getter/setter to enable/query if down rotation is only on "close view" (zoomed-in).
- Javadoc for certain method clearly explaining the "angles" are in radian.

Note:
To enable down rotation when zoomed out, you have to call setDownRotateOnCloseViewOnly with FALSE and also set a minimum radian with setMinVerticalRotation(radian) as it is by default to 0.

Ex:
chaseCam.setDownRotateOnCloseViewOnly(false);
chaseCam.setMinVerticalRotation(FastMath.DEG_TO_RAD * - 90);

This would enable rotation when zoomed-out down to -90 degrees, effectively having the camera looking up to its tied spatial.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9247 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-14 01:10:19 +00:00
rem..om
94e0937bb6 Fixed an ArrayIndexOutOfBound in animationFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9246 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-12 21:09:57 +00:00
rem..om
07e96d02eb Fixed an issue in AnimationTrack when time was skipped out of bounds of the animation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9245 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-12 20:43:07 +00:00
rem..om
8ab5a211e2 Removed previously committed System.out from AndroidAudioRenderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9244 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-11 23:05:33 +00:00
rem..om
218f082c8b Properly stopping and resetting Medialayer in AndroidAudioRenderer to be able to play an audio node more than once without failing.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9243 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-11 21:37:33 +00:00
Kae..pl
d6bf9372bf Fix to 3D material definition for blender loader.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9242 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-11 20:11:16 +00:00
rem..om
1a771236cf fix NPE in AndroidHarness when quitting (thanks iwgEric)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9241 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-11 08:33:51 +00:00
PSp..om
511a11fc7c Moved the creation of the guiFont into a separate
method that can be overridden by subclasses.
This isn't really complicated enough to move to
an app state and the fact that the field is 
exposed is already sort of "unclean" anyway.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9240 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-09 07:12:29 +00:00
rem..om
8eae2cfd8a Cinematic, fixed time seeking when having several SpatialAnimation with a speed > 1
fixed an issue in soundTrack crashing when time was < 0
properly implemented GuiTrack stop() method

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9239 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-08 17:10:47 +00:00
rem..om
191bd21b40 Removed AndroidHarness specific calls from the OGLESContext.
- The harness is now a system listener and dispatch the system events to the jme app
- Every Harness related code is now in the harness (exit hook dialog, and mapping addition, spash screen hiding,....)
- Added a handleExitHook flag to configure if the Harness should handle exit or not.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9238 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-07 19:22:41 +00:00
bre..ns
e769d453ec added recalculateAllNormals() to TerrainQuad
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9237 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-07 15:48:44 +00:00
bre..ns
122b4a9818 reverted change to build-impl.xml
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9236 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-07 05:10:05 +00:00
bre..ns
694b61cf58 improved terrain editor wizard
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9235 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-06 18:53:03 +00:00
rem..om
d2b727cfd8 Android : OGLESContext can now finish the activity when being destroyed, this way calling app.stop() from jME finished the associated activity.
This feature can be disabled by setting a flag in the MainActivity.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9234 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-05 22:25:42 +00:00
PSp..om
2bde71b08a Early out on initializePending and terminatePending
if the array is empty.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9233 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-05 19:22:33 +00:00
rem..om
654c44abdd Jme nifty render device optimization :
- Banished color buffer updating at render time (except for gradient quads that uses vertex color)
- fully transparent quads are not rendered anymore (that avoid rendering transparent layers allowing complex layout for free).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9232 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-04 14:08:15 +00:00
rem..om
6087a930df Formatted code of RenderDeviceJme before comming changes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9231 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-04 13:39:58 +00:00
rem..om
e275cfb7ee JME nifty's render device : fixed text positioning when autoScale is true
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9230 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-04 13:24:01 +00:00
rem..om
2d57665dfd JME nifty's render device now uses 2 separate shaders : one for images and texts and one for quads, this way there is no more branching in the frag shader greatly improving speed (specially on android)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9229 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-04 12:54:02 +00:00
Sha..om
b99e5a9bfb * Prevent exception when loading OBJ file without normals or texcoords
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9228 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-03 05:07:12 +00:00
rem..om
92b97d38d8 Committed a patch from iwgeric, to make nifty Textfield display the soft keyboard on tap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9227 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-02 10:23:22 +00:00
rem..om
859123673e Committed patch from iwgEric that fixes a couple of issues on android touchinput http://jmonkeyengine.org/groups/android/forum/topic/error-with-nifty-and-awt/?topic_page=2#post-165433
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9226 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-02 09:12:38 +00:00
Kae..pl
2bc7128eb6 Fix to loading meshes that contain many vertices.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9225 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-01 21:35:32 +00:00