28 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
sha..rd
31027a0b2c * Some javadoc for Mesh
* Added Mesh.getIndicesAsList() for easy access to triangle data
 * Added UserData.JME_PHYSICSIGNORE to indicate to physics engine that geometry should be excluded from collision shape generation
 * Physics engine now supports all possible mesh formats (non-indexed, triangle strip, etc)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7670 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 19:12:45 +00:00
sha..rd
37894d1698 * HttpZipLocator UTF8 decoder replaced with proper code
* Removed some redundant javadoc from SceneProcessor
 * Fixed bug where GeometryBatchFactory.optimize() wouldn't reset the transform on the argument node as would be expected since optimize() applies the world transform of the geometries automatically
 * Terrain grid tests now stream terrain data from googlecode servers instead of having the data bundled in the nightly builds

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7619 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-14 02:49:18 +00:00
rem..om
3f707fb44a GeometryBatchFactory now retain original Lod informations thanks to Rickard
see post : http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/lods-for-geometrybatchfactory/

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7579 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-11 08:49:37 +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
nor..67
dd749a699b - simplify GeometryBatchFactory.optimize() by expecting a Node as parameter
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7214 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-07 12:05:04 +00:00
nor..67
0dacbb77e1 - add JavaDoc to GeometryBatchFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7213 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-07 11:48:28 +00:00
nor..67
345986fb70 - make GeometryBatchFactory.optimize() replace the optimized spatial
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7212 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-07 11:41:59 +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