78 Commits

Author SHA1 Message Date
rem..om
f0aff05d41 ShaderNodes : UnshadedNodes now supports hardware skinning, and discard threshold
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10807 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-29 12:36:37 +00:00
rem..om
f8be6cf686 One can now change the depth test function throught the additional renderstate of a material.
You can also do this for the alpha test function, but alpha test is deprecated in gl 3.0 and opengl es 2.0 so it's there only for compatibility and consistency reason.
This setting can be directly set in the j3m file in the RenderState statement.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10779 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-15 13:04:33 +00:00
sha..RD
f94bc8660c * Avoid FD leaking in binary importer/exporter
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10768 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 00:29:59 +00:00
rem..om
4f3319f049 ShaderNodes : generated shaders are now cached by the assetManager to avoid generating a new shader for already loaded materials. This saves memory and avoids a lot of shader switches at render time.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10575 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-25 21:01:26 +00:00
rem..om
f8faebb79e ShaderNodes : Array types are now properly supported and array size can be driven by an int constant or an int define
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10571 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-21 09:23:39 +00:00
rem..om
76b4306d10 ShaderNodesLoader : removed unused jogAmp dependency that slipped in....
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10480 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-09 22:40:55 +00:00
rem..om
6ab93d4007 ShaderNodesLoader : Better way to compute define conditions
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10479 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-09 22:39:13 +00:00
rem..om
55d065ab78 Shader Nodes implementation :
Core system

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10432 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-26 19:18:29 +00:00
nor..67
5e0fa6459c - avoid null node names in obj importer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10362 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-07 22:15:55 +00:00
nor..67
ea973c14c3 - change logging from logger.info() logger.fine and logger.warning()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10272 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-31 22:37:56 +00:00
nor..67
7ba657e430 - set logging from Level.INFO to Level.FINE for most logging
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-31 22:26:10 +00:00
sha..RD
fd0c0fc0a1 * Made all placeholder assets loaded have correct asset keys (based on the key that was used to load them)
* Also made the placeholder texture use repeat mode if the original was supposed to use it 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10207 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-27 22:27:15 +00:00
Sha..om
5a90cd7082 * Fixed issue where OBJ loader would fail to parse faces correctly if they had more than 1 space in them
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10046 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-28 03:07:25 +00:00
nor..67
a3cda69323 - move JmeCursor interface back to Core-Plugins due to dependencies in core :/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9928 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-31 01:37:48 +00:00
nor..67
cae51429ac - move cursor loader to desktop package due to awt dependence
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9925 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-31 01:28:18 +00:00
sky..ok
fa841874c6 Add missing licenses in Core, Core-Effects, Core-Plugins, and Desktop code groups
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9840 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 19:28:55 +00:00
sky..ok
28ce76245f Change all source licenses to say 2009-2012
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9838 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 17:01:57 +00:00
Sha..rd
243bba48ff * Improvements to GLSL loader handling of libraries. The order of #import is maintained, it is also possible to #import in the body of the shader (but it will not be included twice). Fixed issue 523.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9752 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-19 01:00:33 +00:00
rem..om
2915316e45 One can now have a block ForcedRenderState in a technique defnition. this renderstate if filled will be forced into the renderer when the technique is forced
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9749 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-17 21:32:48 +00:00
Sha..rd
1ddb7903db * OBJ loader now supports loading models that use negative indices in the face statement
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9724 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:21:21 +00:00
Sha..rd
e848c53ef4 * Add small work around in MTL loader: Do not accept "d 0" or "Tr 0" as they hide the model
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9723 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-14 05:20:34 +00:00
Sha..om
be1aa87f55 * Fixed issue 518 .. again
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9705 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-05 22:02:27 +00:00
Sha..om
c8b3ae7f64 * Fix issue 518
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9704 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-05 21:58:12 +00:00
Sha..rd
0a3f7903a4 * Added methods to BufferUtils to create Vector4f buffers or set them
* Start implementing issue 504 (capacity -> limit)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9556 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-11 00:39:25 +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
Sha..rd
050f630383 * Fix issue 514
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9541 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-08 19:39:18 +00:00
dan..om
0ade9ab80f - Removed a comment on a line that wasn't to be commented...
- Fixed import problem when RIFF header didn't have height/width (when it should). The loader will now use the first image's width/height. Since all images in an animation are supposed to be the same size this should not be a problem.
- Fixed import when an .ICO file contains more than one image (as it in in the case of "windows theme" files). The loader will default to a 32x32 icon in that list.
- Formatting.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9485 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-12 01:29:35 +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
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
Sha..rd
30dfa52f51 * TGA loader now supports loading colormapped (non-RLE only) images
* A non-supported format now yields correct message in TGA loader 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9379 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-12 19:19:26 +00:00
Sha..rd
bd4214f3bd * AssetCache is now an interface and can be extended by user. Moved to com.jme3.asset.cache package.
* Added 3 implementations of AssetCache: SimpleAssetCache, WeakRefAssetCache and WeakRefCloneAssetCache
 * Added AssetProcessor interface that handles cloning and post processing of assets after they are loaded
 * AssetKey can now configure which cache/processor to use for a particular asset type 
 * Added AssetManager unregisterLoader method
 * AssetManager now supports more than one AssetLoadListener 
 * Javadoc improvements in AssetManager 
 * Asset interface now renamed to CloneableSmartAsset (which more accurately describes its behavior and use case)
 * DesktopAssetManager now makes proper use of the new AssetProcessor/AssetCache classes when handling asset loading 
 * Added proper equals/hashCode methods to many AssetKey subclasses, which is required for the new system to work properly
 * All AssetKeys were rewritten to work with the new asset system 
 * loadAsset(AudioKey) now returns an AudioNode and not AudioData, similar to the behavior of loadAsset(TextureKey) returning a Texture and not an Image. Because of that, the key storage in AudioData has been removed. 
 * Texture, Spatial, and Material are all cloneable smart assets now and will be cleared from the cache when all instances become unreachable
 * Improved the existing TestAssetCache test to make sure the new system works 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9309 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 19:58:17 +00:00
sky..ok
533fb86c50 Down to 260 Javadoc warnings from 324
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-22 00:22:09 +00:00
Sha..om
b99e5a9bfb * Prevent exception when loading OBJ file without normals or texcoords
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9228 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-03 05:07:12 +00:00
Sha..rd
4721c944a2 * Minor warning fix in BoundingBox, BIHTree
* Fix BoundingSphere, calculation was bugged due to TempVars sharing 
 * Add BoundingSphere vs. Triangle collision
 * Delete Natives class from core as it was moved to desktop previously 
 * Parser classes now use whitespace instead of " " for splitting
 * Bone.getAttachmentsNode() no longer public due to misuse in user code

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9151 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-15 04:21:51 +00:00
Sha..om
eb9ef60d04 * Fix OBJ Loader exception
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9149 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-13 19:59:40 +00:00
Sha..rd
f357a7e89f * OBJ loader now supports multiple spaces or tabs in between vertex/face specifications
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9146 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-12 21:55:30 +00:00
Sha..rd
9dfe1b12f3 * New J3O format version: fixed incorrect serialization of savable versions for certain class hierarchies
* XML import/export now supports global format version 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9070 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 23:17:10 +00:00
nor..67
5ce347eec8 - use JmeSystem.getStorageFolder() for SaveGame util
- move SaveGame util to core plugins
- fix BinaryImporter accessing assetManager if null

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8872 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-06 19:19:04 +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
nor..67
9f16b989fe - add a way to add a classpath for loading in-asset classes to AssetManager, use in BinaryImporter
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8600 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-08 21:18:53 +00:00
sha..rd
66127db26d * Standardized handling for loading dependent assets for all loaders
If asset cannot be located, then the loader must replace the asset that 
was supposed to be used with a placeholder, and raise a WARNING in the log 
indicating that the asset cannot be located, containing both the name of the
dependent asset and the parent asset that is loading it

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8596 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-08 04:51:58 +00:00
sha..rd
f15dfe3011 * Fixed issue with an exception getting silenced when MTL was loaded for an OBJ file
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8582 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-06 03:19:15 +00:00
Sha..om
ec13fbce9a * Fix blender MTL export issue that causes overly shiny models
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8573 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-03 01:24:56 +00:00
sha..rd
31fe049a66 * Moved WAVLoader and GLSLLoader to Core-Plugins
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8557 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-31 00:04:33 +00:00
sha..rd
97a9b4ee00 * Fix MTL issue where "Tr 0" could cause model to be invisible even though illum index specifies that it shouldn't use transparency
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8327 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-02 05:40:19 +00:00
sha..rd
045e2a4317 * AssetManager.loadAsset() with null key will throw exception
* Make use of try/finally paradigm for all loaders

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8183 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-04 22:42:32 +00:00
sha..rd
8411ff22e2 * Fix incorrect warning message in OBJLoader
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8165 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-03 23:04:55 +00:00
rem..om
b86b658c93 Fixed material default value loading
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8045 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-20 14:10:18 +00:00