From bdd1e2410ae5bfb90a4bbbe7c01c6002d166c3ae Mon Sep 17 00:00:00 2001 From: Leonardo Date: Mon, 19 Jul 2021 11:47:26 +0200 Subject: [PATCH] Updated the guide --- .../java/com/seibel/lod/objects/QuadTreeImage.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/seibel/lod/objects/QuadTreeImage.java b/src/main/java/com/seibel/lod/objects/QuadTreeImage.java index 122035198..928cbd329 100644 --- a/src/main/java/com/seibel/lod/objects/QuadTreeImage.java +++ b/src/main/java/com/seibel/lod/objects/QuadTreeImage.java @@ -122,9 +122,9 @@ public class QuadTreeImage extends JPanel { List posXs = new ArrayList<>(); List posZs = new ArrayList<>(); - posXs.add(Math.floorDiv(centerX-1, otherWidth)); + posXs.add(Math.floorDiv(startX, otherWidth)); posXs.add(Math.floorDiv(centerX, otherWidth)); - posZs.add(Math.floorDiv(centerZ-1, otherWidth)); + posZs.add(Math.floorDiv(startZ, otherWidth)); posZs.add(Math.floorDiv(centerZ, otherWidth)); for (Integer posXI : posXs) { @@ -148,18 +148,18 @@ public class QuadTreeImage extends JPanel { Set complexityMask = LodQuadTreeDimension.FULL_COMPLEXITY_MASK; -/* List lodList = new ArrayList<>(); //The min and max distances should increase quadratically int[] distances2 = {100000, 8000, 4000, 2000, 1000, 500, 250, 0}; for (int h = 0; h <= (9 - 3); h++) { lodList.addAll(dim.getNodeToRender(playerX, playerZ, (byte) (9-h), complexityMask, distances2[h], distances2[h+1])); } - System.out.println(lodList.size()); -*/ + System.out.println("Number of node to render "lodList.size()); +/* List lodList = dim.getNodes(complexityMask, false, false); //USE THIS TO SEE AL THE LODS listOfList.add(lodList); + */ } } @@ -278,8 +278,8 @@ class MyDrawable { g2.setColor(color); - //g2.fill(shape); - g2.setStroke(stroke); + g2.fill(shape); + //g2.setStroke(stroke); g2.draw(shape); g2.setColor(oldColor);