1670 Commits

Author SHA1 Message Date
dan..om
5ac9953f62 Implemented the ability to change the mouse cursor.
The way to do this is by calling inputManager.setMouseCursor("path/to/cursor/in/assets/cursor.ani").

NOTE: Supported formats are  "RIFF-wrapped" .ani, .cur and .ico. Those can be found everywhere on the web and are the majority of icons found. If the file format is unrecognized the loader will crash with an appropriate message (hopefully).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9484 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-11 21:18:52 +00:00
Kae..pl
624125aadc Added images types support in PixelIOFactory.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9466 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-10 21:51:15 +00:00
Kae..pl
84404cfb5f Fix for animations tracks loading. If rotations were not set up by user then the model might have been disappearing because of (0, 0, 0, 0) rotation quaternion. (0, 0, 0, 1) quaternion is set in that case.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9463 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-09 15:04:43 +00:00
rem..om
b97f8c1271 BatchNode : fixed an issue when a geometry was not unbatched when removed with sometihing else than removeFromParent
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-08 20:22:36 +00:00
rem..om
855676173a Re fixed material contentEquals crash when technique is null...but better
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9459 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-07 22:04:50 +00:00
rem..om
3e35e32b2d Fixed material contentEquals crash when technique is null.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9458 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-07 21:59:31 +00:00
PSp..om
476120616c Modified the Serializer registration of DisconnectMessage
and ClientRegistrationMessage so that they have fixed IDs
and registration-independent implementations.  This means
that no matter how much the internal auto-registration list
changes that a game can still manage the protocol version
in a graceful way.
Prior to this change, removal of a class registration from
Serializers auto-registered list meant that a client->server
version mismatch was impossible to detect and handle gracefully.

Also, now that it was safe to do so, I removed the auto
registration of some odd Java beans classes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9457 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-06 05:31:16 +00:00
PSp..om
516e3065dc Moved the string read/write to static methods to
make it easier to reuse in classes that want to
read/write strings the same way without using
Serializer directly.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9456 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-06 04:52:58 +00:00
PSp..om
819407cf79 Starting to reorganize serializer a bit to later add
some features that will make it slightly less fragile.
The code that registers a serializer for an ID has
been centralized.
A method was added to hand out new IDs and it now
skips IDs that are already in use.  This will allow
certain serializers to be fixed against specific IDs
to maintain backwards and forwards compatability even
as the automatically registered list of serializers
changes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9455 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-06 03:26:26 +00:00
nor..67
ea0be5cf9f - fix imports across engine
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9451 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-03 13:10:26 +00:00
nor..67
83f56bda4e - add updated osx bullet natives
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9450 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-03 01:28:52 +00:00
nor..67
a1dd0f9061 - fix bullet ghost overlap, thanks to @iwgeric
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9449 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-03 01:08:10 +00:00
nor..67
3450b171c2 - change TestSweepTest to apply the location to the spatial before adding the physics control to avoid having the obstacle at 0/0/0 in the first frame
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9448 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-02 22:40:43 +00:00
Sha..rd
1ef93999a3 * Fix issue 391
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9447 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 22:37:02 +00:00
rem..om
e574e73b68 - Nifty : fixed gradient material
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9446 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 21:41:07 +00:00
Sha..om
2f2c44d6b1 * TangentBinormalGenerator will replace the tangent buffer if it already exists on the mesh, instead of crashing
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9445 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 20:44:23 +00:00
Sha..om
68551c8c17 * Fix issue 490
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9444 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 04:16:13 +00:00
Sha..om
59336dee4d * Fix issue 464
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9443 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 04:09:27 +00:00
Sha..om
3cdeb6ed4d * Fix issue 476
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9442 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 04:05:37 +00:00
Sha..rd
4ee09fa52e * Ogre3D models exported from blender2ogre / Blender 2.63 now work by avoiding submeshname DTD violation
* Small grammer fix in FileLocator exception

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9441 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-01 03:09:50 +00:00
nor..67
95fb3eabbd - revert genfiles for jme project as the project uses the netbeans 7.0.1 ant build files and would not be updated in a newer version if only this file was updated in the project
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9440 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-31 11:14:49 +00:00
Sha..rd
fedcc577a2 * The javadoc will have the protected fields now
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9439 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-31 00:35:24 +00:00
rem..om
cd64f74898 - ANDROID fixed multitouch move taht was not sending additional pointers event. thanks to iwgeric
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9438 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-30 19:40:24 +00:00
rem..om
d76d58c0e9 - ANDROID audio renderer : added a state check on the MediaPlayer to prenvent it to throw errors
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9437 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-29 14:52:23 +00:00
rem..om
0fe3b69f7d - ANDROID Reverted a change in resolution setting, as it apparently has bad side effects on GUI
- Android texture util ENABLE_COMPRESSION is now public to be able to change it. Accessing it through the appSettings would be better.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9436 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-29 14:50:18 +00:00
nor..67
9292ac9898 - add Tests for physics raytest and sweeptest (thanks to @wezrule)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9435 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-28 16:52:56 +00:00
bre..ns
33a69d4536 Softened terrain API to allow for different tiling implementations. Added MultiTerrainLodControl
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9434 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-28 15:32:30 +00:00
Kae..pl
dc646e048e Fixes to luminance textures IO operations.
Added support for IO operations for RGB images (all except RGB10 and RGB9E5 formats).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9431 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-26 19:12:20 +00:00
Kae..pl
a2b2a85cce Extending TexturePixel functionality.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9430 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-25 12:34:03 +00:00
nor..67
a00c8231c6 - update engine copylibs jar
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9429 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-25 11:55:56 +00:00
Sha..rd
1009cd18b0 * Running jME3-android in emulator with GPU emulation now supported but sometimes there are opengl errors (?)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9428 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-25 04:25:44 +00:00
Sha..rd
e18d1c261c * Prevent ActionListener.onAction( ... , true ) from being called repeatedly when using AWT panels
* Formatting in AwtMouseInput

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9426 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-25 00:29:35 +00:00
Kae..pl
7ff1261d79 Adding uncommited methods (sorry for breaking the build).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9417 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-24 10:39:37 +00:00
sky..ok
1c1a6a0421 Javadoc fixes from wezrule: http://jmonkeyengine.org/groups/documentation-jme3/forum/topic/diff-for-quaternion-few-spelling-mistakes-and-inconsistencies/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9414 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-23 11:14:20 +00:00
Kae..pl
027d448b7d Added support for the following texture types import:
- Luminance8Alpha8
- Luminance16
- Luminance16Alpha16
- Luminance16F
- Luminance16FAlpha16A
- Luminance32F

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9413 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-23 08:48:05 +00:00
nor..67
4a39f5f37a - remove setting of bounding box from CollisionShapeFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9412 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-21 23:54:52 +00:00
rem..om
4adaf86db9 fixed simple batch node : The SimpleBatchNode must NOT sets the refresh flag on its children when it is transformed. That's the very purpose of the SimpleBatchNode
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9411 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 22:20:33 +00:00
Sha..rd
c34189dfe5 * Removed all "verbose logging" parts of OGLESShaderRenderer, as it made the code hard to read. This sort of logging functionality should be done in a "GL Wrapper" sort of class instead.
* The AndroidImageInfo.notifyBitmapUploaded() method is now called at the end of the upload as expected 
 * Huge overhaul of TextureUtil. It automatically compresses textures to ETC1 if selected by user. In addition, it will use hardware mipmap generation if possible, and fallback to software if not (e.g. for compressed textures)
 * Add support for DXT1 format (usually supported on NVIDIA Tegra devices). The BrightSky.dds skybox now works on Android if the device supports it.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9410 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 22:11:59 +00:00
Sha..rd
4be1d2be1e * AndroidImageInfo now supports getting notification when the bitmap has been successfully uploaded to GL
* AndroidAudioRenderer no longer prints silly debug messages

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9409 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:56:39 +00:00
Sha..rd
8b5f4cba36 * BufferUtils.destroyDirectBuffer() now works on Android
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9408 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:54:58 +00:00
Sha..rd
29b2596359 * Removed various misc handling code from AndroidHarness to OGLESContext/JmeAndroidSystem to ease using jME3 outside of AndroidHarness
* Misc formatting changes in AndroidConfigChooser
 * AndroidLogHandler now takes parameters into account
 * Added additional settings in AppSettings to configure mouse emulation
 * JmeSystem will now automatically try to load JmeAndroidSystem if it fails to load JmeDesktopSystem

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9407 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:53:13 +00:00
Sha..rd
05d5c611e1 * AndroidAssetManager no longer fails on missing plugin classes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9406 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:49:36 +00:00
Sha..rd
e71f33ef7a * Removed Geometry.setTransformRefresh() which was identical to Spatial.setTransformRefresh()
* SimpleBatchNode now calls setTransformRefresh() directly instead of duplicating the code

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9405 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:47:51 +00:00
Sha..rd
45534ab0b8 * FlyByCamera now uses Quaternion.normalizeLocal()
* Quaternion.normalize() which was deprecated has now been removed
 * Quaternion.normalizeLocal() now returns "this" object

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9404 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:42:30 +00:00
Kae..pl
e2652851c5 Issue 429: Blender loader doesn't specify that meshes are non-animated (fix)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9403 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 19:07:17 +00:00
Kae..pl
9e2f6b88ef Support for multilayered textures and textures with mipmaps.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9402 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-20 17:14:58 +00:00
Sha..rd
0090d4eaad * Fix spelling/grammer errors in BatchNode javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9401 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-19 21:40:50 +00:00
Sha..rd
a99d94c263 * Fix bug where animation loop mode "Cycle" would start at the end of the animation at each cycle causing discontinuities in the animation
* Fix bug where blending between the animations of a bone that did not have keyframes on the 2nd animation would fail and cause snapping / incorrect blending

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9400 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-19 20:57:08 +00:00
roo..li
4dd46f4c5b jme3tests: Updated HUD code to use setDisplayStatView(false) instead of guideNode.detachAll(). Recentered crosshairs.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9399 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-19 16:53:26 +00:00
roo..li
9264e0ea32 reverting unnecessarily broken committed test to working original. ;-)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9398 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-19 16:49:54 +00:00