145 Commits

Author SHA1 Message Date
bre..ns
668eaf9cfb changed TerrainGrid methods to protected access
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7842 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-08 00:11:44 +00:00
bre..ns
a5511a19dc pulled ImageBasedHeightmap height color calculation out so it can be customized by subClasses
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7841 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-08 00:07:08 +00:00
ant..om
dde0c0a885 Fix: extended TerrainGridListener with ozonegrif's extension
this allows physics to be handled by the user rather than manipulating in the grid
see tests for details

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7840 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-07 21:29:45 +00:00
ant..om
07e096ae71 Fix: the new way to add physics to terrainGrid is to use the listener interface, see updated tests
new heightmaps are provided for TerrainGridTest

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7836 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-07 15:02:08 +00:00
bre..ns
4eeab63f9f fixed -1 offset in TerrainGrid
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7835 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-07 05:41:27 +00:00
bre..ns
1a08b7b0f6 * fixed lod bug in TerrainGrid
* flipped the grid orientation to match the Quad's orientation
* removed blocking call to loading thread

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7833 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-06 20:12:44 +00:00
bre..ns
08e5d1a68f fixed AbstractHeightMap bounds check, thanks ozonegrif
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7830 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-05 23:49:53 +00:00
bre..ns
bb718f942c * javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7826 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-05 19:42:37 +00:00
bre..ns
db83e48019 * fixed terrainGrid NPE on executor
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7825 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-05 16:28:12 +00:00
bre..ns
9407f4c3d0 * delayed creation of TerrainQuad executorService unless absolutely needed
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7823 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-05 15:56:32 +00:00
bre..ns
e3574d2fe7 part 2, renaming
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7820 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-04 23:55:45 +00:00
bre..ns
1a78dd200c removed unused geomap classes, replaced with single GeoMap class (part 1 of 2 part commit, blasted netbeans)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7819 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-04 23:40:38 +00:00
bre..ns
c5d0b7b8e8 removed redundant RawArrayHeightMap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7818 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-04 22:55:05 +00:00
bre..ns
8c7469d210 fixed a bug with normals in TerrainLighting material
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7796 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-01 17:53:21 +00:00
sha..rd
7314c5f613 * Fix lighting "early cull" issue for terrain lighting shader as well
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7794 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-01 17:01:00 +00:00
ant..om
9a3353698a RigiBodyControl is applied to subquads instead of the whole terrain
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7789 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-30 14:29:48 +00:00
bre..ns
1c4548123a variable assignment for RawArrayHeightMap serialization
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7787 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-30 01:03:32 +00:00
bre..ns
e6f6f94718 Added RawArrayHeightMap courtesy of OzoneGrif
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7786 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-29 22:09:29 +00:00
bre..ns
70f1a6f323 * Cleaned up and simplified the Terrain API.
* Removed dependence on TerrainQuad for TerrainLodControl
* Comments, general cleanup

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7783 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-29 21:56:20 +00:00
bre..ns
d9c3df086d increased terrain diffuse texture limit to 12, including normals
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7759 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-28 00:10:13 +00:00
ant..om
0604418b3c Fix: calculating localTranslation after gridChange
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7756 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-27 19:11:50 +00:00
ant..om
bcfeb06317 Fix: calculating localTranslation after gridChange
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7738 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-26 08:27:50 +00:00
ant..om
e4983751c7 fixed collisiongroup check on grid change
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7720 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-24 05:35:38 +00:00
ant..om
dfeff3c6af Fix major bug: TerrainGrid.getHeight returned always 0 after first grid change happened
minor bug: updateModelBound missed from TerrainGrid update call, added collisionGroup check to physics, and failing with exception if material is not set before initialize() call

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7691 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-22 19:25:50 +00:00
sha..rd
a6300ba55b * Initial docs for com.jme3.scene.debug, com.jme3.scene.shape, com.jme3.scene.control
* Javadocs for com.jme3.scene.mesh
 * Formatting for com.jme3.terrain classes
 * Terrain updating thread now called "jME3 Terrain Thread"

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7667 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 21:05:04 +00:00
bre..ns
2ded30739d * bumped up terrain material texture support
* updated the test case example

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7655 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 00:10:36 +00:00
bre..ns
4148e216b4 tweaks to getHeightmapHeight, removed old code
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7648 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-17 15:56:52 +00:00
bre..ns
993b220922 * performance improvements to terrain height modification
* api change to let you pass in many points to be adjusted in the terrain

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7643 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-16 23:57:44 +00:00
bre..ns
bd114ed3ac fixing whitespace
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7634 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-15 15:14:45 +00:00
ant..om
2073f58cf8 TerrainGridListener is extended to be able to change material of individual grid files.
Also added new grid test-data, cause it somehow disappeared

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7611 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-13 17:23:47 +00:00
sha..rd
d6d3894fff * New version of nifty * Added simple package.html for some of the jME3 packages
* Additional javadocs for com.jme3.renderer
 * Removed Camera.setDirection()
 * ImageBasedHeightMapGrid now uses AssetManager to find heightmaps


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7605 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-13 04:04:57 +00:00
ant..om
b8d1073014 Introduced a new Namer class, so the heightmap tiles' names can be generated independent from the terrain system.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7595 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-12 09:49:50 +00:00
sha..rd
8cbb0f210d * Small javadoc fixes
* Formatting for com.jme3.effect package
 * Formatting for blender importer and networking tests
 * All networking tests ported to new SpiderMonkey
 * Removed all mentions of java.util.Serializable
 * RMI now works under new SpiderMonkey

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7593 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-12 05:17:41 +00:00
ant..om
7d5adb24c3 bugfix: terrainQuads were translated using a constant 2, now it uses localScale isntead
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7576 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-11 06:34:45 +00:00
ant..om
83da85efd3 bugfix: heightmap.setHeightScale is set from grid's heightscale instead of constant 256f
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7570 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-10 21:21:21 +00:00
bre..ns
5a79adc4fe fixed bug in abstractHeightmap.smooth, thanks to ozonegrif
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7563 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-09 20:26:36 +00:00
bre..ns
9b614ee389 fixed a bug in AbstractHeightmap.flatten
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7560 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-08 22:55:24 +00:00
ant..om
0248e92e3c Added a terrain material that uses height and slope information to map textures instead of alphamap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7542 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-31 17:14:39 +00:00
ant..om
4fa5522c8e Added a terrain material that uses height and slope information to map textures instead of alphamap.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7530 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-29 09:30:47 +00:00
ant..om
58ede837c6 Added my own noise library as jar (noise-0.0.1-SNAPSHOT.jar), hope I didn't break any build stuff
TerrainGridTest is running smooth now using 257x257 sized TerrainQuads with fractal based heightmaps calculated on the fly.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7529 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-28 18:48:27 +00:00
ant..om
0bfd5aa2a3 fixed a bug calculating camera cell
Test is updated to not use LOD and physics for testing purposes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7488 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-12 18:20:23 +00:00
ant..om
34a47debb9 TerrainGrid added to terrain package, test included
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7483 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-11 04:42:57 +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
sha..rd
d96912e900 * Fix syntax error in TerrainLodControl
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7288 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 01:04:48 +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