181 Commits

Author SHA1 Message Date
bre..om
ac51e1d885 Allow a custom Executor to be passed to the TerrainLodControl
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10880 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-08 17:43:50 +00:00
bre..om
fe1f90dbf6 Added a method to manually clean up any Terrain lod control threads.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10877 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-11-07 21:18:39 +00:00
sha..RD
d048d5d6c1 * Avoid FD leaking in AbstractHeightMap save
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10769 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-09-13 00:35:03 +00:00
bre..om
7c966572f1 add check in lod control for camera existence when it can be empty in the sdk
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10591 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-05-04 00:33:46 +00:00
sha..RD
199378ca2f * Fix PerspectiveLodCalculator by not caching entropies in object (since they vary per block)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10573 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-25 00:40:25 +00:00
bre..om
ff4c38e20a TerrainLodControl now refreshes when first added to the scene
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10557 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-04-18 15:19:43 +00:00
Zer..om
87172ad7eb Removed wierd import of org.bushe.swing.event.Logger; that was causing my build to fail locally and wasn't used anywhere.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10501 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-03-24 23:08:52 +00:00
bre..om
7360c789fa fixed typo in MultiTerrainLodControl causing terrains not to be removed
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10425 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-23 16:21:46 +00:00
bre..om
13758bd985 terrain will clear any caches it has now when detached from the scene graph
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10424 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-02-22 21:14:08 +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
bre..om
4bbbf7dbe8 changed terrain to use a ShortBuffer if the index count is less than 65535 so it can work on more android devices
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10065 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2013-01-13 16:21:52 +00:00
rem..om
8a4b204154 fixed issue 461
http://code.google.com/p/jmonkeyengine/issues/detail?id=461&can=5&q=label%3AProduct-jME3&sort=priority&colspec=ID%20Type%20Status%20Component%20Priority%20Difficulty%20Product%20Milestone%20Owner%20Summary

BatchNode now use an instanceof Geometry statement to know if the spatial can be batched. It Then check the BatchHint on this spatial.
ParticleEmitter, BitmapTextPage and TerrainPatch extends Geometry and should not be batched so their batchHint has been defaulted to Never.
Image also extend Geomety but it may be useful to batch images.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10040 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-22 15:20:26 +00:00
bre..om
fdf238cc08 moved player location in HelloTerrainCollision. Set a backwards compatibility scale for ImageBasedHeightmap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10028 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-14 15:37:21 +00:00
bre..om
c6fe6a2064 Changed ImageBasedHeightMap to use ImageRaster.create() instead of JmeSystem
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10026 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-12 22:56:49 +00:00
bre..om
636e309098 changed ImageBasedHeightMap to use JmeSystem to get ImageRaster
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10024 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-12 17:46:59 +00:00
bre..om
d81b46c2fb adding imageRaster to ImageBasedHeightMap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10023 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-12-12 17:22:58 +00:00
bre..om
d68fba1fef fixed TerrainGrid.getTerrainAtCell() and TerrainGrid.getTerrainAt(), updated TerrainGridTileLoaderTest
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9982 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-10 20:34:35 +00:00
bre..om
c405f09391 added toCellSpace() and toWorldSpace() utility methods to TerrainGrid
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9954 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-05 15:31:13 +00:00
bre..om
fa29b95c39 added TerrainGrid.getTerrainAtCell(Vector3f cellCoordinate) to get the terrain tile from cell coordinates
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9953 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-05 15:25:14 +00:00
bre..om
9c2a897bfb removed deprecated methods from TerrainGrid, added in getTerrainAt(Vector3f worldLocation), more docs on TerrainGrid
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9952 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-11-05 15:18:47 +00:00
bre..om
1843916822 added more javadocs to TerrainQuad
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9877 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-23 21:21:03 +00:00
sky..ok
5da8dd1e3d Terrain package license maintenance
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9843 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 21:59:05 +00:00
sky..ok
01f1c8ff27 Replace NetBeans file templates with jME licenses
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 17:22:45 +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
sky..ok
751cb9e20a Javadoc cleanup
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9837 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 16:44:26 +00:00
nor..67
c328f5ab9a - more effective null check for TerrainLodControl
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9822 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-03 03:26:22 +00:00
nor..67
2f7f270d6f - add null check to TerrainLodControl
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9821 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-03 03:17:13 +00:00
bre..om
77a1ec09f8 moved terrainGrid normal recalculations out of the tile loading loop to run after all tiles have loaded
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9788 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-30 23:41:57 +00:00
bre..om
7f740a0cd4 TerrainGrid executor now prints out any exceptions from the threads
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9776 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 18:51:54 +00:00
bre..om
c4574bff13 fixed an issue with TerrainGrid not having a large enough cache of tiles. Properly hooked in the tileDetached event
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9772 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-25 04:32:25 +00:00
bre..om
bd7c10ba80 Added more comments to the TerrainLighting test. Made the TerrainLighting material more forgiving if normal maps aren't set
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9751 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-09-18 22:24:04 +00:00
bre..ns
05f5473505 cleaned up some terrain code and deprecated a few constructors
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9674 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-08-21 15:40:26 +00:00
bre..ns
f5cd1e97c4 fixed the terrain normal calc for the edges
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9584 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-25 13:34:31 +00:00
bre..ns
b59ec271ca terrain now checks the ray's limit when colliding
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9583 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-25 00:03:01 +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
7825249952 * Made some classes pretty, hope you like it
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9547 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-07-10 04:00:03 +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
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