From 6ed65dcb597fb2153cef75bf1845978f1115658c Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Fri, 14 Dec 2018 22:53:55 -0500 Subject: [PATCH] Repair shadow, normal push + attractor mesh. --- BoundaryRep.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/BoundaryRep.java b/BoundaryRep.java index 9cf899c..d786a91 100644 --- a/BoundaryRep.java +++ b/BoundaryRep.java @@ -4932,7 +4932,7 @@ //colors[i3 + 1] = cp.vertexOcclusion.g; //colors[i3 + 2] = cp.vertexOcclusion.b; - if ((i % 1000) == 0 && i != 0) + if ((i % 100) == 0 && i != 0) { CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR)); //System.out.println("Color = " + cp.vertexOcclusion.r + ", " + cp.vertexOcclusion.g + ", " + cp.vertexOcclusion.b + "; " + (int)(100.0*i/(positions.length/3)) + "% done"); @@ -4948,7 +4948,7 @@ { Vertex v = GetVertex(i); - if (v.norm.x == 0 && v.norm.y == 0 && v.norm.z == 0) + if (v.norm == null || v.norm.x == 0 && v.norm.y == 0 && v.norm.z == 0) continue; from.set(v.x, v.y, v.z); @@ -4964,7 +4964,7 @@ v.AO = cp.vertexOcclusion.r; - if ((i % 1000) == 0 && i != 0) + if ((i % 100) == 0 && i != 0) { CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR)); //System.out.println("Color = " + cp.vertexOcclusion.r + ", " + cp.vertexOcclusion.g + ", " + cp.vertexOcclusion.b + "; " + (int)(100.0*i/(positions.length/3)) + "% done"); @@ -7230,7 +7230,8 @@ { if (f3.p == f0.p) { - assert(false); +// assert(false); + new Exception().printStackTrace(); f0.r = f3.q; } else -- Gitblit v1.6.2