53 Commits

Author SHA1 Message Date
pot..om
16851eb1d8 Removing Android Sensor Support (undo r9610). Preparing for new way of implementing sensor support on Android.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9646 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-12 01:35:56 +00:00
Sha..rd
2ab5e4abbe * Nifty GUI now uses Unshaded.j3md for rendering which is cleaner
* Nifty GUI performance much faster, but global font text isn't taken into account in OGL1 mode (fix TBD)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9624 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-05 23:50:54 +00:00
Sha..rd
be58274ab8 * Fix issue 520 again: pressing mouse over jme and releasing over nifty did not tell jme about the release.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9615 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-04 20:39:15 +00:00
Sha..rd
f82be26af8 * Fix issue 520
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9614 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-04 20:34:16 +00:00
pot..om
bb631ab13a Adding support for defining external (or internal in Android's case) sensors. This is still a work in progress. Major task yet to complete is defining the coordinate system to return the sensor data. 3 sensor types are defined: Magnetic, Accelerometer, Orientation. Right now the sensor data is returned in device coordinates for Magnetic and Acceleration, and World (Earth) coordinates for Orientation. Sensors use the Input Manager to define triggers and listeners like all other input types. Only Android has an implementation for SensorInput at this time. See forum post http://jmonkeyengine.org/groups/android/forum/topic/creating-engine-support-for-android-sensor-input/ for details of the operation and current status.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9610 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-04 01:55:37 +00:00
Sha..rd
7825249952 * Made some classes pretty, hope you like it
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9547 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 04:00:03 +00:00
Sha..rd
27e97c34da * 'FixedFunc' technique were wiped out entirely. Not useful since now we choose default technique based on caps anyway.
^ Make sure to fix your materials by removing the 'FixedFunc' name from your fixed pipeline techniques! Or remove then entirely if the material doesn't support OpenGL1 ...

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9546 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 03:56:51 +00:00
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
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
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
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
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
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
Sha..om
0f41e1fee1 * nifty - fix incorrect conditional in InputSystemJme.onMouseButtonEvent()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9097 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-19 00:00:40 +00:00
sky..om
8e721f5c93 Brought the number of Javadoc workings down to 322 from 391; Updated year to 2012 in license header of affected files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8980 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-03 06:54:07 +00:00
rem..om
950276679e Nifty : applied patch posted by iwgeric in this thread http://jmonkeyengine.org/groups/android/forum/topic/error-with-nifty-and-awt/?topic_page=2&num=15#post-147332
fixes nifty interaction on touch event on android.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8971 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-02 09:11:13 +00:00
voi..om
fe521c76ea update to latest Nifty 1.3.1-SNAPSHOT build especially because of consolidation of resource loading (the ResourceLoader inside of Nifty is now a part of the Nifty instance and not static anymore, see 1001faad0c for details)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8928 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-14 13:26:52 +00:00
rem..om
08af19ec5b Cinematics :
- One can now shift time forward an backward in a cinematic with the setTime(float) method, all sub cinematic events support it except soundtrack (has to be implemented)
- Enhanced MotionPath calculation to allow time shifting, and made speed more constant
- changed test cases accordingly
- some more javadoc
- fixed some problems in GUITrack


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8913 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-09 21:23:35 +00:00
nor..67
3cdaf0e051 jme3:
- fix imports in all classes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8843 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 14:06:48 +00:00
nor..67
c906508e62 - big refactoring of engine build and cleaning of sources, totally breaking SDK build for now
- separate jar files for engine components
- resolve dependencies between code parts
- remove Nifty dependency from Cinematics
- remove Physics dependency from TerrainGrid
- add public accessors to Natives Extraction
- remove RenderHint serialization from networking

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 01:22:42 +00:00
rem..om
630b594158 Proper implementation of renderFont in nifty RenderDeviceJme, the last 2 floats are scaleX and scaleY. changed the method accordingly.
Old method is now deprecated and redirect to the new method

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8566 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-01 17:56:56 +00:00
rem..om
4c0f7b06ca - Fixed nifty RenderDeviceJme compilation issue, a new float param has been added to the renderFont method in nifty's RenderDevice interface, it's called "f1" so it's kinda hard to tell what it stands for. For now it's not used in jme's renderFont method.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8565 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-01 09:47:47 +00:00
sha..rd
130283914e * Fix nifty border rendering gradient
* Fix nifty text black borders or not getting rendered

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8469 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 00:46:56 +00:00
voi..om
a824f45efb optimize GC performance while creating keys for the BitmapText cache
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8459 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-19 01:10:49 +00:00
voi..om
52d1aaaaf2 Nifty RenderDeviceJme Bugfix: When we cache BitmapText instances to speed up text rendering we need to make sure that we take the font and the color into account as well! When we cache BitmapText instances only using the actual "text" it is possible that the exact same text - when it is rendered in different fonts - will be used from the cache (and then using the wrong font!) This has now been fixed.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8386 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-12 22:23:48 +00:00
sha..rd
a236c7d03b * Fix compile error
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8357 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-05 01:51:04 +00:00
sha..rd
64c61c86e4 * Fix syntax errors due to JmeSystem/Platform changes
* Prevent stream closed exception when playing OGG music
 * Prevent UnsatisfiedLinkError when using audio effects on Mac
 * Add BitmapText caching to Nifty GUI. May improve FPS in guis with lots of text elements

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8237 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-11 02:02:29 +00:00
sha..rd
f421e2a876 * Removed shiny check in Lighting.frag (for ATI Radeon X1600 and similar)
* Applying default values for materials inside old J3O files
 * Default shininess in TerrainLighting

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8163 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-03 22:39:02 +00:00
sha..rd
db0a4f23a8 * New block language parser
* Rewrote J3M loader
 * AssetManager.unregisterLocator() must be implemented
 * Added support for material default vars
 * Apply NVIDIA spot light fix for TerrainLighting

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8024 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-17 03:25:48 +00:00
nor..67
c26e4d8e42 - revert previous change as wrong image paths might result
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8001 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-10 18:57:56 +00:00
nor..67
65c228ff15 - fix NiftyJmeDisplay so that other locators can be registered for NiftyGUI
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8000 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-10 18:54:15 +00:00
sha..rd
984721cc75 * AnimControl now supports abstract animation (doesn't have to be BoneAnimation)
* Misc javadocs
 * Fix for SoundHandleJme.stop()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7988 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-07 00:08:22 +00:00
sha..rd
c727d3e006 * Fixed crash in TestCinematic
* Fixed crash in LightList.sort()
 * Removed usage of Arrays.copyOf() in BitmapFont, so Android can run it
 * Formatted OGLESShaderRenderer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7668 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 00:23:19 +00:00
sha..rd
11a8c132fc * Nifty Gui dynamic resolution changing is now supported
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7632 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-14 23:20:19 +00:00
kim..ng
384cdcff85 Android: getTouchInput() interface add
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7550 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-04 20:34:20 +00:00
nor..67
068ee238a3 - fix NiftyJmeDisplay in jMP
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7394 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-02 18:48:14 +00:00
sha..rd
f72d5c20fd * Nifty Gui now uses jME3 AssetManager to find XML files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7378 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-01 05:00:04 +00:00
sha..rd
dcf3f3c061 * Fixed bug in RenderImageJme Texture constructor that would not take into account width/height
* MatParam toString() method will now display value

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7368 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-29 23:52:11 +00:00
sha..rd
6196de22f7 * Removed all deprecated classes, methods, and fields
* AudioNode now takes AudioRenderer in its constructor to allow audio.play() functionality

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7333 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-27 16:45:01 +00:00
sha..rd
ed7789b7a6 * The OpenGL2 renderer now actually scales non-power-of-2 textures instead of throwing out a useless warning
* Nifty GUI now supports the rescaling of textures by storing the resolution beforehand

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7281 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 20:46:24 +00:00
sha..rd
9b9fb940a6 * Fixed compile error in nifty
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 16:06:54 +00:00
sha..rd
efb9792c95 * Better toString() methods for Image and Texture
* OGGLoader no longer fails if file length less than number of expected samples

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7237 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-13 04:55:43 +00:00
sha..rd
e15b26b0ed * Fixed issue where Nifty GUI would consume all mouse button events
* Made video player deprecated


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7129 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-27 19:44:51 +00:00
rac..om
5ae44319ea Turns out I did things a bit wrong with respect to the new nifty mouse even queue....
I called stuff that was meant to be internal to nifty. That's fixed now. Also had to replace the nifty examples jar with a new version. This version os BIG (15Mb). Void is working on a smaller one, but at least with this big one, things work as expected.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7117 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-25 23:56:43 +00:00
rac..om
76ff6bb99f Mouse wheel and the other two mouse buttons should now also be fixed. Since this is not tested in the NiftyGUI test there's no real of know till a test has been created though. To fix it I just tweaked the appropriate if statements a bit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7115 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-25 22:56:51 +00:00
rac..om
8cdef21af6 upgraded nifty and nifty-default-controls to nightly build of 2011-03-24. Also fixed the AwtMouseInput and removed some ununsed imports. The com.jme3.niftygui.InputSystem has been changed as well to correspond with the new Nifty way of working with mouse events. It now uses the new MouseInputEventQueue and the new NiftyMouseInputEvent.
There is still an issue with the mouse buttons besides the first mouse button. These should be picked up by nifty, but for some reason are not triggering a MouseButtonEvent. This is something Kirril will need to take a look at.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7114 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-25 21:59:52 +00:00