2659 Commits

Author SHA1 Message Date
sha..rd
17b949fea2 Blender Loader
* Enable mipmaps for packed and generated textures
 * Better handling of material flags for 2.58
 * Allow loading of meshes with no vertices instead of crashing

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8005 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-13 19:01:52 +00:00
rem..om
91477b73f5 Engine :
- Added Volume texture 3D loading support to the DDSLoader
- Added a test case for texture 3D loading
- fixes a minor log issue in Material.java

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8003 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-12 05:50:31 +00:00
rem..om
6c7082a7e3 engine : added texture3D support based on darkfalkon Texture3D code and Kaelthas testcase
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8002 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-11 09:33:38 +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
nor..67
ac8a9dc0ce - make AppSettings final
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7999 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-10 17:26:34 +00:00
nor..67
3081862ced - add support for material name mappings to MaterialExtensionLoader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7997 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-10 12:12:53 +00:00
nor..67
59d7bcdee6 - globally reduce asset paths in AssetKey constructor so that no key type can produce relative elements in the asset name
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7996 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-10 11:09:45 +00:00
rem..om
10366623f7 Added FXAA filter to the core thanks to phate666 for its implementation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7992 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-09 15:37:58 +00:00
rem..om
c6bd03eeab Added LinearExtrapolation to FastMath thanks to Wezrule http://jmonkeyengine.org/groups/features/forum/topic/2-requests-for-features/#post-138082
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7991 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-07 22:21:55 +00:00
sha..rd
77dd6761ee * Added fix for when an mesh xml animation has no tracks will no longer throw NPE
* FileLocator now supports "." as a path

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7990 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-07 20:36:43 +00:00
sha..rd
c5aba505fc * Fixed AssertionError in SceneLoader when loading multiple scenes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7989 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-07 19:15:29 +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
roo..li
59b00bbae9 Added CameraNode and new navigation to TestPhysicsCharacter.
Added a variant of createPhysicsTestWorld with more spheres.
Changed the size of golem in TestWalkingCharacter to fit step length.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7983 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-06 14:45:36 +00:00
roo..li
3a3a5de8c9 Added javadoc, fixed tiny typo, reformatted sample a bit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7982 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-06 09:42:51 +00:00
rem..om
20f5e9d200 Fixed vertex lighting broken since last spot light changes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7981 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-06 07:44:43 +00:00
sha..rd
2d2ce703d9 * Added AbstractControl.getSpatial() as otherwise AnimEventListener is kinda useless as it only gives the AnimControl as the reference and to get userdata you need the spatial itself
* World space particles are now influenced by rotation


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7980 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-06 03:55:56 +00:00
rem..om
5476be99f7 SpotLight : Applied the same changes to terrain lighting
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7979 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-05 17:37:29 +00:00
rem..om
9e5f9be5ec SpotLight : reduced the number of float varying by 5 in the shaders :
- computed the spotDirection in view space on the java side in Material and pass it as a uniform -> vec4 spotVec disapear
- this implies to decode the cos values for falloff in the frag shader instead of the vert shader, but allows to reduce light vec from vec4 to vec3

All in all it shouldn't be that much of a performance hit, since the matrix multiplication of spotVec occur once per geometry instead of once per vertex, we could go further and compute it once per frame.
On the other hand decoding of the cos values happens once for each pixel instead of once for each vertex ( a floor a mult and a fract). I guess this should be balanced in a rich scene.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7978 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-05 17:03:46 +00:00
PSp..om
d67adb8266 Pulled the ExecutorService stuff out and replaced it with a
plain single thread.  This gives more control over the queuing
behavior as with an ThreadPoolExecutor it is difficult to implement
blocking execute() behavior.  Also, this avoids creating an
extra object per-message.
Anyway, this code now implements a blocking queue instead of
a boundless queue.  It's set to 16,000 messages which should only
bottom out in the worst of cases.  I was seeing it in the throughput
tests where the sockets were backing up and the queues were 
consuming all of the heap until an out of memory error occurred.
Outbound messaging is only throttled this way on the client.
Servers typically wouldn't do this sort of spamming anyway.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7977 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-05 07:55:04 +00:00
PSp..om
d62c1311fb Fixed a long-standing but well hidden bug in message
protocol.  In the wild, I've only seen this crop up in
really really odd circumstances.  As it turns out, the 
throughput tests eventually trigger this when testing
TCP.  I've lost sleep over wondering when this was going
to bite for real so I'm glad to have what is essentially
the last known bug in message transfer fixed.
This change handles the case where so far only one
byte of the two byte message size has been read from
the network.  Rare, but it can happen.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7976 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-05 06:46:56 +00:00
Kae..pl
1f90dcb8ff Textures importing refactoring in blender loader.
Each generated texture has now its own generator class.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7975 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-04 21:39:35 +00:00
rem..om
d722c65280 CameraNode : created a simple testCase to demonstrate how easy it is to make a camera follow a spatial using a Camera Node.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7970 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-02 14:24:59 +00:00
sha..rd
2767600fe3 * Proper aging for particles emitted in a frame
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7958 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-31 20:51:05 +00:00
rem..om
6c24af2831 Particle Emitter : faceNormal is now correctly saved
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7955 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-31 08:45:35 +00:00
Kae..pl
1e7b7860fe Large blender importer refactoring:
- bleder features separated between different packages
- refactoring of modifier system (each modifier now in a separate class)
- refactoring of constraints system (each constraint now in a separate class)
- no converter interface
- every helper supports versions 2.49 and 2.5+.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7953 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-30 23:28:21 +00:00
Sha..om
a1e1057622 * Added javadoc for ParticleEmitter.setMeshType()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7951 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-30 18:37:11 +00:00
Kae..pl
a6700cc754 Minro javadoc update.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7950 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-30 14:43:10 +00:00
rem..om
f5dceb6c4d Particle Emitter :
- Added possibility to change the mesh type after initialization

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7947 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-30 12:29:26 +00:00
rem..om
865c380b4e Particle Emitter :
- Changed cloning method to clone(boolean cloneMaterial), and added a clone() method that calls clone(true). The missing clone(boolean) method was preventing the particle emitter to be correctly cloned when loading it from a j3o file yielding weird results.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7946 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 17:30:03 +00:00
Kae..pl
8de7a5755e Fix to mirror modifier loading (buffer bounds were exceeded in some cases).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7945 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 12:16:37 +00:00
Kae..pl
fbd1cb837b Ignoring textures that are defined but disabled in material.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7944 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 09:33:35 +00:00
Kae..pl
733195c33c Fix with reading the proper buffer.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7943 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 08:43:23 +00:00
rem..om
2b802d5272 Particle Emitter :
- fixed NPE when loading a ParticleEmitter from a j3o

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7942 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-29 07:12:19 +00:00
Kae..pl
821dc08553 Automatic generation of UV-coordinates (not the best solution yet, but working on it ;) )
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7941 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-28 21:09:56 +00:00
Kae..pl
c6aafbd0ef Bugfix: temp var was not released.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7940 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-28 19:21:03 +00:00
rem..om
8f59984d00 Particle Emitter :
- fixed setNumParticle method to correctly update the mesh buffers
- added a getMaxNumParticle that returns the max number of particles of the emitter
- changed testMovingParticles and testPointSprite to change the numParticle when hitting the space bar

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7939 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-28 17:08:59 +00:00
Kae..pl
cc403160be Texture key for generated textures added.
Normalmap is only calculated when generated texture is an input.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7927 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-27 12:52:27 +00:00
nor..67
5ec83b0f62 - fix small typo in BlenderLoader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7924 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-26 13:34:42 +00:00
Kae..pl
93530bc2d0 Fix to loading models with high number of vertices (greater than Shor.MAX_VALUE).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7923 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-26 11:41:10 +00:00
Kae..pl
04d3509c58 Improving image loading speed by using the BufferedInputStream.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7922 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-26 10:54:28 +00:00
Kae..pl
f4d900bc43 Fix to narmal map loading.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7921 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-26 10:46:11 +00:00
Kae..pl
0de5fe39a3 Fix to loading normal maps.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7918 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-25 20:50:52 +00:00
sha..rd
f15107da95 * All asset cache operations can now work on smart cache
* Added better test for asset cache

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7917 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-25 16:05:21 +00:00
rem..om
ae2fda8626 Spot light : fixed issue that was preventing point lights to work correctly when a spot light is in the scene
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7916 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-25 15:25:00 +00:00
sha..rd
73aa30785b * AssetPathURL now accepts non-relative asset paths
* ZipLocator will now crash if the specified zip file does not exist
 * Fixed crash when restarting context with pixel format changes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7914 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-25 14:51:33 +00:00
Kae..pl
99746c72ec Several changes to constraints (but may not working well yet).
Fix to Y-up axis issue when parent was present bu not loaded (in different layer for example).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7913 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-25 12:56:21 +00:00
sha..rd
f182b5d91b * Javadoc for some classes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7912 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-24 23:47:18 +00:00
ant..om
06e04c429c Fix: fixed exception when trying to jump with physics turned off
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7910 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-24 11:07:12 +00:00
sha..rd
7308cdfca6 * Fixed issue with spot light shader not taking into account alpha
* Reduced number of varyings by 2 in lighting shader 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7909 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-24 03:56:30 +00:00