2676 Commits

Author SHA1 Message Date
Kae..pl
daa86cfec7 Disabling loading all assets by default. Now unlinked assets or those being on inactive layers will not be loaded if they are not requested to.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8042 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-20 10:20:46 +00:00
roo..li
b3a37f93b7 Dome.java: Renamed accessor for inverted boolean.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8041 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-20 06:03:16 +00:00
roo..li
3877740cd8 Dome.java: Updated javadoc to explain effect of parameters and to distinguish between use as SkyDome, pyramid, or cone. Renamed inverted boolean.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8040 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-20 05:52:29 +00:00
Kae..pl
d6574a8cc7 Importing generated textures as 3D textures.
UV coordinates generator added (will handle different UV coordinates generation methods in the future).
MaterialHelper refactoring.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8039 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-19 23:16:32 +00:00
Kae..pl
ab26912f60 Adding changes pointed out by madlion.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8036 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-18 11:41:51 +00:00
rem..om
36dd462c4f Test rundown part 1 :
- fixed NPE in FilterPostProcessor
- fixed compilation error in terrain lighting

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8028 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-17 16:01:31 +00:00
sha..rd
f6f378ec55 * Use the same pbuffer pixel format for everything. Provides better compatibility.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8025 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-17 03:34:11 +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
rem..om
0316bec713 SkyFactory : you can now specify the sky sphere radius when creating a sky to avoid near plane clipping when it's set too close to the radius value.
see this post http://jmonkeyengine.org/groups/graphics/forum/topic/why-is-the-skybox-culling-when-i-adjust-my-camera-frustum/#post-139378

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8023 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-16 19:08:57 +00:00
bre..ns
9bd9e1dc08 fixed add terrain bug, now they all use the same action
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8022 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-16 16:14:46 +00:00
rem..om
70af91d981 Engine : added texture type hint to the texture key
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8012 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-15 09:38:57 +00:00
Sha..om
c77f1c6cfb * Fix for x window crash on Display.destroy() on linux
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8011 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-15 03:02:48 +00:00
sha..rd
2636343ac7 * Fix hard edge bug for spot lights on NVIDIA cards
* Fix bump mapping issue that was there since the beginning of time ... flipping normal.y only worked for pond_normal.png texture and IS NOT CORRECT in most cases. Now the texture itself has been adjusted to be correct while the flipping of normal.y removed
 * Fix crash when playing sound in simpleInitApp()
 * Fix issue where Spatial.setModelBound() would do absolutely nothing
 * Skies created via SkyFactory now don't suffer from "premature culling" bug

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8010 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-14 18:36:59 +00:00
sky..ok
6c2332d833 Javadoc fixes and links for the com.jme3.animation package; Added missing license header
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8009 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-14 15:47:40 +00:00
PSp..om
b3e488ff76 Fixed to properly update the buffer when the extents
are changed.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8008 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-14 10:46:54 +00:00
sha..rd
2ddc537ddc * Forgot to commit proper exception for generated textures in MatParams
* OBJ/MTL loaders now use logger instead of System.out for warnings

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8007 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-13 19:04:02 +00:00
sha..rd
e5be9cef83 Lighting material
* Hopefully fix incorrect parallax map 
 * Multiply specular by diffuse factor to prevent physically impossible shininess (compare TestNormalMapping to understand the difference)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8006 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-13 19:02:29 +00:00
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