Normand Briere
2019-05-13 f924d3e00db476c06f55f3d5aaef307e17575340
Object3D.java
....@@ -797,7 +797,7 @@
797797
798798 if (marked && Globals.isLIVE() && live &&
799799 //TEMP21aug2018
800
- Globals.DrawMode() == iCameraPane.SHADOW &&
800
+ (Globals.DrawMode() == iCameraPane.SHADOW || !Globals.RENDERSHADOW) &&
801801 currentframe != Globals.framecount)
802802 {
803803 currentframe = Globals.framecount;
....@@ -912,6 +912,11 @@
912912 fromParent = null; // LA.newMatrix();
913913 bRep = null; // new BoundaryRep();
914914
915
+ if (oname != null && oname.equals("LeftHand"))
916
+ {
917
+ name = oname;
918
+ }
919
+
915920 /*
916921 float hue = (float)Math.random();
917922 Color col;
....@@ -1470,7 +1475,7 @@
14701475 BoundaryRep.SEUIL = other.material.cameralight;
14711476
14721477 // Set default to 0.1
1473
- BoundaryRep.SEUIL /= 2;
1478
+ BoundaryRep.SEUIL /= 4; // 2;
14741479 System.out.println("SEUIL = " + BoundaryRep.SEUIL);
14751480 }
14761481
....@@ -2983,6 +2988,31 @@
29832988 blockloop = false;
29842989 }
29852990
2991
+ void TransformChildren()
2992
+ {
2993
+ if (toParent != null)
2994
+ {
2995
+ for (int i=Size(); --i>=0;)
2996
+ {
2997
+ Object3D v = get(i);
2998
+
2999
+ if (v.toParent == null)
3000
+ {
3001
+ v.toParent = LA.newMatrix();
3002
+ v.fromParent = LA.newMatrix();
3003
+ }
3004
+
3005
+ LA.matConcat(v.toParent, toParent, v.toParent);
3006
+ LA.matConcat(fromParent, v.fromParent, v.fromParent);
3007
+ }
3008
+
3009
+ toParent = null; // LA.matIdentity(toParent);
3010
+ fromParent = null; // LA.matIdentity(fromParent);
3011
+
3012
+ Touch();
3013
+ }
3014
+ }
3015
+
29863016 void TransformGeometry()
29873017 {
29883018 Object3D obj = this;
....@@ -5379,7 +5409,7 @@
53795409 return
53805410 CameraPane.SUPPORT && !CameraPane.movingcamera && link2master && /*live &&*/ support != null
53815411 // PROBLEM with CROWD!!
5382
- && (Globals.DrawMode() == iCameraPane.SHADOW || Globals.CROWD);
5412
+ && (Globals.DrawMode() == iCameraPane.SHADOW || !Globals.RENDERSHADOW || Globals.CROWD);
53835413 }
53845414
53855415 static boolean DEBUG_SELECTION = false;
....@@ -7368,14 +7398,22 @@
73687398 //return super.toString() + " (id=" + list + ")" + " (brep=" + bRep + ")";
73697399 //return name + " (id=" + list + ")" + " (brep=" + bRep + ") " + super.toString();
73707400 //return name + " (#tri = " + (bRep==null?0:bRep.VertexCount()) + ") " + super.toString();
7401
+
7402
+ String objname;
7403
+
73717404 if (false) //parent != null)
73727405 {
7373
- return name + " " + System.identityHashCode(this) + " (" + parent.name + " " + System.identityHashCode(parent) + ")";
7406
+ objname = name + " " + System.identityHashCode(this) + " (" + parent.name + " " + System.identityHashCode(parent) + ")";
73747407 } else
73757408 {
7376
- return GetName() + (Math.abs(count) == 1000 ? (count == 1000 ? " " : " * ") : (" (" + (count /*- 1*/) + ") ")) + /*(IsSelected()?"(selected) ":"") + (touched?"(touched) ":"") */ +System.identityHashCode(this);
7409
+ objname = GetName() + (Math.abs(count) == 1000 ? (count == 1000 ? " " : " * ") : (" (" + (count /*- 1*/) + ")")) + /*(IsSelected()?"(selected) ":"") + (touched?"(touched) ":"") */ "";
73777410 } // + super.toString();
73787411 //return name + " (" + (SizeOf.deepSizeOf(this)/1024) + "K) " + this.getClass().getName();
7412
+
7413
+ if (!Globals.ADVANCED)
7414
+ return objname;
7415
+
7416
+ return objname + " " + System.identityHashCode(this);
73797417 }
73807418
73817419 public int hashCode()