143 Commits

Author SHA1 Message Date
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
bre..ns
33a69d4536 Softened terrain API to allow for different tiling implementations. Added MultiTerrainLodControl
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9434 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-28 15:32:30 +00:00
bre..ns
f654109aa4 added in a NeighbourFinder interface to TerrainQuad so it can be used for tiling outside of TerrainGrid
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9385 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-05-14 17:33:20 +00:00
bre..ns
f669290a3a updated terrainLighting.frag's shininess to match more of Lighting.frag
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9328 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-25 21:02:56 +00:00
bre..ns
a0af5de41e whoopsie, sorry TerrainGrid
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9327 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-24 20:27:41 +00:00
bre..ns
5dbde4ad06 TerrainQuad documentation patch thanks @slyh
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9326 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-24 20:17:25 +00:00
bre..ns
eac143830f TerrainGrid documentation patch thanks @slyh
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9325 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-24 20:14:19 +00:00
Sha..rd
60e0e46344 * Remove usage of "SimpleTextured" shaders from other materials
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9320 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-15 21:20:37 +00:00
bre..ns
64b736f2e9 fix a bug in terrain getHeight for some edge cases
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9275 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-04-03 15:13:31 +00:00
bre..ns
3dc9a591b7 whoops, I blame jesus for not adding this class
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9270 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-31 06:18:10 +00:00
bre..ns
a1249b551d * refactored terrain lod to move most of the lod code to the control
* lodDistanceCalculator no longer queries the world transforms of the terrain on the background thread

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9269 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-30 04:16:55 +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
bre..ns
ee69225ad0 fixed some normal calc issues in LODGeomap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9252 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-20 00:46:34 +00:00
bre..ns
e769d453ec added recalculateAllNormals() to TerrainQuad
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9237 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-03-07 15:48:44 +00:00
bre..ns
8d9895036b more terrain normal code clean up
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9201 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 18:37:54 +00:00
bre..ns
3420ec2881 simplified terrain tangent generation, cleaned up code
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9200 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 15:59:22 +00:00
bre..ns
230398c45b removed some debug code
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9128 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-02 02:21:25 +00:00
bre..ns
a59339054a moved some of the terrain utils into tool options in the scene explorer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9080 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-17 01:36:13 +00:00
bre..ns
d28b580640 fixed bug in terrainQuad, uses worldTranslation for coordinate offset now for height adjustment
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9079 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-16 17:17:05 +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
sky..om
b66984f8f5 Added javadoc for TerrainQuad heightMap parameters
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8978 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-03 04:42:54 +00:00
sky..om
baba9d6b47 Fix to TerrainGrid: only clone the grid's material to child quad if it doesn't have a material of its own
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8970 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-31 00:26:42 +00:00
bre..ns
8a9ec04e35 moved noise library into jme3/terrain
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8959 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-27 23:51:32 +00:00
bre..ns
5d6fa1fc0b fixed a normal seaming artifact in terrain
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8952 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-22 23:02:23 +00:00
bre..ns
817591076e removed the remaining awt dependencies from terrain grid and its utils
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8939 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-16 17:29:15 +00:00
bre..ns
356c3b55cc deprecating and removing most AWT dependencies from heightmaps and TerrainGrid, still some more to do
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8930 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-14 20:56:28 +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
bre..ns
7f1fff1538 fixed some terrain edge tangents
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8835 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-01 03:56:32 +00:00
nor..67
212b57ecc6 - add some equals() methods where compareTo is used
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8820 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-27 13:46:20 +00:00
bre..ns
9da184fcd7 cleaned up geomap code
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8808 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-26 21:47:04 +00:00
bre..ns
36453a919c TerrainGrid no longer needs initialize() called, handled automatically now.
TG normal seams fixed

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8807 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-26 18:38:46 +00:00
bre..ns
b736768b2d fixed terrain normals
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8806 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-26 18:22:24 +00:00
Sha..rd
e57637f307 * Set default shininess value to 1 for TerrainLighting.j3md, it has to be this way to avoid an NVIDIA bug. Please don't change it back but fix the shader instead
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8800 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-25 19:41:43 +00:00
bre..ns
5bc91e15b1 updated defaults in TerrainLodControl constructor
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8775 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-22 23:30:53 +00:00
bre..ns
ad98c62321 fixed terrain normals
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8761 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-21 23:26:29 +00:00
bre..ns
08cb3182bd * set terrainLighting mat default shininess to 0
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8747 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-21 17:29:33 +00:00
nor..67
8d3aa7bad9 - fix in GeoMap constructor
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8743 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-20 21:40:34 +00:00
nor..67
ca69ef57b7 - don't use floatBuffer.array() in terrain for deprecated methods
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8742 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-20 20:55:41 +00:00
nor..67
1e100399f1 - another fix in terrain deserialization for old files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-20 20:35:45 +00:00
nor..67
8b60ba35b2 - fix terrain deserialization for old files
- fix GeomMap / LODGeomap signature to be backwards compatible

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-20 13:59:22 +00:00
nor..om
197bba7fe8 - fix TerrainPatch method signature to not break old projects, deprecate getHeightmap, add new getHeightMap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8737 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-20 12:09:21 +00:00
sha..rd
268a464191 * Make Geomap and LODGeomap use a float[] heightmap internally instead of FloatBuffer
* Remove normal map buffer from Geomap, not needed since its generated procedurally 
 * Optimized LODGeomap normal buffer generation to create less garbage

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8734 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-20 00:24:13 +00:00
sha..rd
b192166072 * Improve speed of TerrainLighting shader so no ALU is done per normal map but at the end only
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8733 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-20 00:18:44 +00:00
bre..ns
2253690024 normen made me do it!
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8712 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-17 19:03:36 +00:00
bre..ns
4e34217111 * Terrain API changes to better support TG in SDK terrain editor
* Refactored TG slightly.
* Updated TG tests
* new TG alphamap test data

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8711 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-17 18:38:41 +00:00
bre..ns
de5591053d terrain javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8703 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-16 16:30:36 +00:00
nor..67
344c0f11c9 - add some getters to TerrainGrid and AssetTileLoader, fix method name updateChildrens->updateChildren (added deprecated redirect of old method)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8702 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-16 16:03:48 +00:00
nor..67
49d64f3423 - fix FractalTileLoader using patchSize instead of quadSize
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8701 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-16 14:21:17 +00:00
nor..67
9a5bb23687 - fix FractalTileLoader not implementing TerrainGridTileLoader
- change TerrainGrid tests to use new TileLoader classes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8700 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-11-16 14:18:03 +00:00