29 Commits

Author SHA1 Message Date
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
PSp..om
3fe5911b66 Adding a comment hinting at maybe why jme nifty text
used to work better and then broke at some point.
The older previously commented out code provided a
better text width value than BitmapFont did before
the recent fixes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6986 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-14 23:48:26 +00:00
PSp..om
d159c5e8c3 Throw a more meaningful exception for a missing font
than the NPE that's about to happen otherwise.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6982 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-14 19:45:35 +00:00
nor..67
9e53abbb7a move jme3 to trunk
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6971 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-14 12:55:32 +00:00