73 Commits

Author SHA1 Message Date
rem..om
c9d5011555 used dynamicEqual instead of dynamicHashCode in BatchNode and GeometryBatchFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9362 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-08 19:10:50 +00:00
rem..om
d33cbce333 - Changed BatchNode and GeometryBatchFactory according to material recent changes.
- BatchNode now does incremental batch upon adding a new geom to the batch (was there before but didn't work properly).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9361 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-08 19:02:13 +00:00
nor..67
92e2e35aef - change Material.equals to Material.contentEquals
- update BatchNode, GeometryBatchFactory and Test

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9349 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-07 22:35:25 +00:00
Sha..rd
ad01d36915 * Added shader validation system. Requires either NVIDIA Cg or GPU Shader Analyser to be in the path. Run the ShaderCheck class to see which jME3 shaders fail validation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9316 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 20:22:13 +00:00
rem..om
544e1f6342 Shaders : The line numbers on error now correctly takes the version line added to the shader into account
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9295 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-14 11:13:34 +00:00
rem..om
3a0e1f50ac Shaders : The line number is now printed for each line of shader code in the standard error output when a shader fail to compile.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9294 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-12 20:08:38 +00:00
rem..om
91ea95328e Fixed isEqual to equals in GeometryBatchFactory and in TestMaterialCompare
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9291 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-11 22:30:29 +00:00
rem..om
1945a0c1c0 BatchNode and GeometryBatchFactory now uses the material's isEqual method to gather the geometries to batch
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9257 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-23 10:00:49 +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..rd
be7a22e3d5 * Remove most common usage of IntMap.iterator()
* Correct small typo in UniformBinding
 * Make IntMap.iterator() make new iterator each time 
 * Prevent TangentBinormalGenerator from crashing when it encounters some mesh without texcoord/normal buffers
 * AWTLoader now properly fails when AWT can't load the image instead of returning null 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9219 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-28 03:57:54 +00:00
Sha..rd
68da72cf66 * Actually fixed the issue with the tangents this time .. (TestTextureAtlas runs)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9206 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 21:25:22 +00:00
Sha..rd
c9046fa21c * Since number of tangent components in a tangent buffer can vary, GeometryBatchFactory now takes # of components into account preventing IndexOutOfBoundsException
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9205 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 19:52:31 +00:00
nor..67
965974c18d - javadoc html tag fix
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9118 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-28 14:25:59 +00:00
rem..om
26665e5df0 GeometryBatchFactory now correctly transforms tangents buffer (it was not taking the 4th component into account)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9108 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-22 11:00:54 +00:00
PSp..om
38f56d3f2e GeometryBatchFactory now bulk copies the untransformed
buffers instead of copying them one element at a time.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9101 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-19 06:22:09 +00:00
PSp..om
e6dc1b7183 Modified GeometryBatchFactory to be thread safe
from other readers of the meshes upon which it is
operating.  At least in theory.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9099 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-19 06:08:50 +00:00
nor..67
b51c736e80 - rephrase and clarify some TextureAtlas javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9063 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 19:54:14 +00:00
nor..67
3b91333636 - add ImageToAwt fallback (using reflection, no AWT dependency) to TextureAtlas conversion
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9062 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 19:33:27 +00:00
nor..67
8a08f8d505 - add grayscale (Luminance8/Luminance8Alpha8) texture support to TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9061 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 19:02:17 +00:00
nor..67
d918cefc17 - add more javadoc to TextureAtlas
- draw images used on multiple maps properly to secondary maps, print warning

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9059 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 17:20:41 +00:00
nor..67
d18460ae33 - small javadoc fixes for TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9058 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 15:33:03 +00:00
nor..67
64c5e75684 - add lots of javadoc with examples etc to TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9057 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 15:11:18 +00:00
nor..67
5a451b3aa6 - use assetKey.toString() in TextureAtlas to account for flipped textures
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9053 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 05:03:33 +00:00
nor..67
bfa0bf6a1e - some javadoc fixes in TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9052 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 04:54:30 +00:00
nor..67
d83815847a - add size warning to TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9051 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 04:38:52 +00:00
nor..67
1d742f1d07 - do not store useless reference to image in TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9050 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 04:30:20 +00:00
nor..67
3031875264 - TextureAtlas: move some things from static methods to object methods
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9047 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 03:59:24 +00:00
nor..67
14daceaabd - TextureAtlas javadoc fixes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9046 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 03:50:15 +00:00
nor..67
550499a0d6 - add some more static helper methods to TextureAtlas
- add functions to apply atlas coords to geometry to TextureAtlas

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9045 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 03:47:34 +00:00
nor..67
a265e72759 - move TextureAtlas methods out of GeometryBatchFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9044 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 02:43:09 +00:00
nor..67
f04654ee20 - fix inverted alpha for non-alpha textures
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9043 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 02:27:35 +00:00
nor..67
d5c766cc8b - make GeometryBatchFactory check for diffuse texture before applying normal textures
- make GeometryBatchFactory throw exception when atlas is full

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9042 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 02:12:42 +00:00
nor..67
48ce86e607 - throw exception on unsupported format in TextureAtlas
- remove clamp workaround in texture atlas


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9041 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 02:10:30 +00:00
nor..67
29b9a64e12 - add size check for normal etc. maps, have to fit to main texture size
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9040 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 01:50:15 +00:00
nor..67
c4b1205fda - remove tangent generation from batch factory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9039 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 01:44:36 +00:00
nor..67
a6154e2608 - fix texture atlas not cheking for existing textures anymore
- change atlas test to more approriate models

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9038 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 01:38:19 +00:00
nor..67
d3c92b586f - make TextureAtlas more strict
- make TextureAtlas only return false if atlas is full

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9037 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 00:39:07 +00:00
nor..67
99c7797ea5 - fix moved update calls
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9036 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 00:18:25 +00:00
nor..67
bb1ff2e9e5 - improve atlas test, display quad with atlas texture
- clamp texture coordinates to 0-1 for atlas textures to better see actual texture mapping

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9035 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 00:17:03 +00:00
nor..67
1aabed9bc5 - add normal and specular (lighting) support to TextureAtlas generation
- add more TextureAtlas javadoc

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9032 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 23:00:06 +00:00
nor..67
58a08eb570 - add test for TextureAtlas
- add GeometryBatchFactory method to create atlased/batched model

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9030 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 21:45:50 +00:00
nor..67
81b2e7ca51 - add more formats to TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9026 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 19:06:49 +00:00
nor..67
fddcbf6d6c - add texture coordinate buffer updating to TextureAtlas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9025 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 18:59:36 +00:00
nor..67
41d1b5996c - add multi-texture support to TextureAtlas
- fix drawing TextureAtlas (only works for ABGR and BGR)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9024 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 17:52:14 +00:00
nor..67
00454ed0f3 - add jme3 Texture compatible TextureAtlas class
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9023 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 13:13:54 +00:00
nor..67
fbf42ffbca - improve failsafeness of GeometryBatchFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8984 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-06 17:00:34 +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
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