From 7b93faa8e12f8ffa1a5303ec99859f8a5c1d5fae Mon Sep 17 00:00:00 2001 From: "bre..ns" Date: Fri, 8 Jul 2011 15:10:25 +0000 Subject: [PATCH] fixed but with normals not updating in terrain git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7844 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../terrain/com/jme3/terrain/geomipmap/TerrainQuad.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java index 26ad92ca4..41b80fbe1 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java @@ -32,8 +32,6 @@ package com.jme3.terrain.geomipmap; -import com.jme3.scene.control.UpdateControl; -import com.jme3.app.AppTask; import com.jme3.material.Material; import java.io.IOException; import java.util.HashMap; @@ -69,9 +67,6 @@ import com.jme3.util.TangentBinormalGenerator; import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.concurrent.Callable; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.Future; /** * A terrain quad is a node in the quad tree of the terrain system. @@ -143,7 +138,9 @@ public class TerrainQuad extends Node implements Terrain { public TerrainQuad(String name, int patchSize, int size, Vector3f scale, float[] heightMap, LodCalculatorFactory lodCalculatorFactory) { this(name, patchSize, size, scale, heightMap, size, new Vector2f(), 0, lodCalculatorFactory); - + affectedAreaBBox = new BoundingBox(new Vector3f(0,0,0), size, Float.MAX_VALUE, size); + fixNormalEdges(affectedAreaBBox); + addControl(new NormalRecalcControl(this)); } protected TerrainQuad(String name, int patchSize, int size,