.. | .. |
---|
5 | 5 | import java.util.Vector; |
---|
6 | 6 | |
---|
7 | 7 | import javax.media.j3d.Transform3D; |
---|
| 8 | +import javax.media.opengl.GL; |
---|
8 | 9 | import javax.vecmath.Vector3d; |
---|
9 | 10 | |
---|
10 | 11 | import javax.imageio.ImageIO; |
---|
.. | .. |
---|
430 | 431 | { |
---|
431 | 432 | Object3D copy = this; |
---|
432 | 433 | |
---|
433 | | - Camera parentcam = CameraPane.theRenderer.ManipCamera(); |
---|
| 434 | + Camera parentcam = Globals.theRenderer.ManipCamera(); |
---|
434 | 435 | |
---|
435 | | - if (CameraPane.theRenderer.ManipCamera() == CameraPane.theRenderer.Cameras()[0]) |
---|
| 436 | + if (Globals.theRenderer.ManipCamera() == Globals.theRenderer.Cameras()[0]) |
---|
436 | 437 | { |
---|
437 | | - parentcam = CameraPane.theRenderer.Cameras()[1]; |
---|
| 438 | + parentcam = Globals.theRenderer.Cameras()[1]; |
---|
438 | 439 | } |
---|
439 | 440 | |
---|
440 | | - if (CameraPane.theRenderer.ManipCamera() == CameraPane.theRenderer.Cameras()[1]) |
---|
| 441 | + if (Globals.theRenderer.ManipCamera() == Globals.theRenderer.Cameras()[1]) |
---|
441 | 442 | { |
---|
442 | | - parentcam = CameraPane.theRenderer.Cameras()[0]; |
---|
| 443 | + parentcam = Globals.theRenderer.Cameras()[0]; |
---|
443 | 444 | } |
---|
444 | 445 | |
---|
445 | 446 | if (this == parentcam) |
---|
.. | .. |
---|
447 | 448 | //assert(this instanceof Camera); |
---|
448 | 449 | |
---|
449 | 450 | for (int count = parentcam.GetTransformCount(); --count>=0;) |
---|
450 | | - LA.xformPos(CameraPane.theRenderer.TargetLookAt(), parentcam.toParent, CameraPane.theRenderer.TargetLookAt()); |
---|
| 451 | + LA.xformPos(Globals.theRenderer.TargetLookAt(), parentcam.toParent, Globals.theRenderer.TargetLookAt()); |
---|
451 | 452 | } |
---|
452 | 453 | |
---|
453 | 454 | copy.marked ^= true; |
---|
.. | .. |
---|
467 | 468 | //assert(this instanceof Camera); |
---|
468 | 469 | |
---|
469 | 470 | for (int count = parentcam.GetTransformCount(); --count>=0;) |
---|
470 | | - LA.xformPos(CameraPane.theRenderer.TargetLookAt(), parentcam.fromParent, CameraPane.theRenderer.TargetLookAt()); |
---|
| 471 | + LA.xformPos(Globals.theRenderer.TargetLookAt(), parentcam.fromParent, Globals.theRenderer.TargetLookAt()); |
---|
471 | 472 | } |
---|
472 | 473 | |
---|
473 | 474 | copy.Touch(); // display list issue |
---|
.. | .. |
---|
2905 | 2906 | { |
---|
2906 | 2907 | if (bRep != null) |
---|
2907 | 2908 | { |
---|
2908 | | - bRep.GenUV(); |
---|
| 2909 | + bRep.GenUV(); //1); |
---|
| 2910 | + //bRep.UnfoldUV(); |
---|
2909 | 2911 | Touch(); |
---|
2910 | 2912 | } |
---|
2911 | 2913 | } |
---|
.. | .. |
---|
5371 | 5373 | return; |
---|
5372 | 5374 | } |
---|
5373 | 5375 | |
---|
5374 | | - javax.media.opengl.GL gl = display.GetGL(); |
---|
| 5376 | + //javax.media.opengl.GL gl = display.GetGL(); |
---|
5375 | 5377 | |
---|
5376 | 5378 | /* |
---|
5377 | 5379 | if (touched) |
---|
.. | .. |
---|
5423 | 5425 | //if (displaylist == -1 && usecalllists) |
---|
5424 | 5426 | if ((bRep != null && bRep.displaylist <= 0) && usecalllists) // june 2013 |
---|
5425 | 5427 | { |
---|
5426 | | - bRep.displaylist = gl.glGenLists(1); |
---|
| 5428 | + bRep.displaylist = display.GenList(); |
---|
5427 | 5429 | assert(bRep.displaylist != 0); |
---|
5428 | 5430 | // System.err.println("glGenLists: " + bRep.displaylist + " for " + this); |
---|
5429 | 5431 | //System.out.println("\tgen list " + list); |
---|
.. | .. |
---|
5435 | 5437 | if (usecalllists) |
---|
5436 | 5438 | { |
---|
5437 | 5439 | // System.err.println("new list " + bRep.displaylist + " for " + this); |
---|
5438 | | - gl.glNewList(bRep.displaylist, gl.GL_COMPILE); //_AND_EXECUTE); |
---|
| 5440 | + display.NewList(bRep.displaylist); |
---|
5439 | 5441 | } |
---|
| 5442 | + |
---|
5440 | 5443 | CallList(display, root, selected, blocked); |
---|
| 5444 | + |
---|
5441 | 5445 | // compiled = true; |
---|
5442 | 5446 | if (usecalllists) |
---|
5443 | 5447 | { |
---|
5444 | 5448 | // System.err.println("end list " + bRep.displaylist + " for " + this); |
---|
5445 | | - gl.glEndList(); |
---|
| 5449 | + display.EndList(); |
---|
5446 | 5450 | } |
---|
5447 | 5451 | //gl.glDrawBuffer(gl.GL_BACK); |
---|
5448 | 5452 | // XXX touched = false; |
---|
.. | .. |
---|
5490 | 5494 | if (display.DrawMode() == iCameraPane.SHADOW) |
---|
5491 | 5495 | { |
---|
5492 | 5496 | if (!link2master // tricky to cull in shadow mode. |
---|
5493 | | - && GetBRep().FrustumCull(this, gl, display.LightCamera(), true)) |
---|
| 5497 | + && GetBRep().FrustumCull(this, null, display.LightCamera(), true)) |
---|
5494 | 5498 | { |
---|
5495 | 5499 | //System.out.print("CULLED"); |
---|
5496 | 5500 | culled = true; |
---|
.. | .. |
---|
5498 | 5502 | } |
---|
5499 | 5503 | else |
---|
5500 | 5504 | //GetBRep().getBounds(v0, v1, this); |
---|
5501 | | - if (GetBRep().FrustumCull(this, gl, display.RenderCamera(), false)) |
---|
| 5505 | + if (GetBRep().FrustumCull(this, null, display.RenderCamera(), false)) |
---|
5502 | 5506 | culled = true; |
---|
5503 | 5507 | |
---|
5504 | 5508 | // LA.xformPos(v0, display.renderCamera.toScreen, v0); |
---|
.. | .. |
---|
5538 | 5542 | { |
---|
5539 | 5543 | if (GetBRep() != null) |
---|
5540 | 5544 | { |
---|
5541 | | - CameraPane.NextIndex(this, gl); |
---|
| 5545 | + display.NextIndex(); |
---|
5542 | 5546 | // vertex color conflict : gl.glCallList(list); |
---|
5543 | 5547 | DrawNode(display, root, selected); |
---|
5544 | 5548 | if (this instanceof BezierPatch) |
---|
.. | .. |
---|
5595 | 5599 | |
---|
5596 | 5600 | // System.err.println("glCallList: " + bRep.displaylist + " for " + this); |
---|
5597 | 5601 | assert(bRep.displaylist != 0); |
---|
5598 | | - gl.glCallList(bRep.displaylist); |
---|
| 5602 | + display.CallList(bRep.displaylist); |
---|
5599 | 5603 | // june 2013 drawSelf(display, root, selected); |
---|
5600 | 5604 | } |
---|
5601 | 5605 | } |
---|
.. | .. |
---|
5895 | 5899 | return; |
---|
5896 | 5900 | } |
---|
5897 | 5901 | |
---|
| 5902 | + //bRep.GenUV(1/material.diffuseness); |
---|
5898 | 5903 | // bRep.lock = true; |
---|
5899 | 5904 | |
---|
5900 | | - javax.media.opengl.GL gl = display.GetGL(); |
---|
| 5905 | + //javax.media.opengl.GL gl = display.GetGL(); |
---|
5901 | 5906 | |
---|
5902 | 5907 | if (CameraPane.BOXMODE && !selected) // || CameraPane.movingcamera) |
---|
5903 | 5908 | { |
---|
.. | .. |
---|
5914 | 5919 | |
---|
5915 | 5920 | bRep.getMinMax(min, max, 100); |
---|
5916 | 5921 | |
---|
5917 | | - gl.glBegin(gl.GL_LINES); |
---|
5918 | | - |
---|
5919 | | - gl.glVertex3d(min.x, min.y, min.z); |
---|
5920 | | - gl.glVertex3d(min.x, min.y, max.z); |
---|
5921 | | - gl.glVertex3d(min.x, min.y, min.z); |
---|
5922 | | - gl.glVertex3d(min.x, max.y, min.z); |
---|
5923 | | - gl.glVertex3d(min.x, min.y, min.z); |
---|
5924 | | - gl.glVertex3d(max.x, min.y, min.z); |
---|
5925 | | - |
---|
5926 | | - gl.glVertex3d(max.x, max.y, max.z); |
---|
5927 | | - gl.glVertex3d(min.x, max.y, max.z); |
---|
5928 | | - gl.glVertex3d(max.x, max.y, max.z); |
---|
5929 | | - gl.glVertex3d(max.x, min.y, max.z); |
---|
5930 | | - gl.glVertex3d(max.x, max.y, max.z); |
---|
5931 | | - gl.glVertex3d(max.x, max.y, min.z); |
---|
5932 | | - |
---|
5933 | | - gl.glEnd(); |
---|
| 5922 | + display.DrawBox(min, max); |
---|
5934 | 5923 | |
---|
5935 | 5924 | return; |
---|
5936 | 5925 | } |
---|
.. | .. |
---|
5984 | 5973 | new Exception().printStackTrace(); |
---|
5985 | 5974 | return; |
---|
5986 | 5975 | } |
---|
5987 | | - |
---|
5988 | | - // TRIANGLE STRIP ARRAY |
---|
5989 | | - if (bRep.trimmed) |
---|
5990 | | - { |
---|
5991 | | - float[] v = bRep.getRawVertices(); |
---|
5992 | | - float[] n = bRep.getRawNormals(); |
---|
5993 | | - float[] c = bRep.getRawColors(); |
---|
5994 | | - float[] uv = bRep.getRawUVMap(); |
---|
5995 | | - |
---|
5996 | | - int count2 = 0; |
---|
5997 | | - int count3 = 0; |
---|
5998 | | - |
---|
5999 | | - if (n.length > 0) |
---|
6000 | | - { |
---|
6001 | | - for (int i = 0; i < strips.length; i++) |
---|
6002 | | - { |
---|
6003 | | - gl.glBegin(gl.GL_TRIANGLE_STRIP); |
---|
6004 | | - |
---|
6005 | | - /* |
---|
6006 | | - boolean locked = false; |
---|
6007 | | - float eps = 0.1f; |
---|
6008 | | - boolean wrap = CameraPane.UVWRAP; // true; // UV WRAP TEXTURE ISSUE: true = artifacts, false = nice |
---|
6009 | | - |
---|
6010 | | - int dot = 0; |
---|
6011 | | - |
---|
6012 | | - if ((dot&1) == 0) |
---|
6013 | | - dot |= (Math.abs(qv.s - pv.s) < eps && Math.abs(qv.t - pv.t) < eps) ? 3 : 1; |
---|
6014 | | - |
---|
6015 | | - if (wrap || (dot&2) != 0) // Math.abs(qv.s - pv.s) < eps && Math.abs(qv.t - pv.t) < eps) |
---|
6016 | | - gl.glTexCoord2f((float) qv.s, (float) qv.t); |
---|
6017 | | - else |
---|
6018 | | - { |
---|
6019 | | - locked = true; |
---|
6020 | | - gl.glTexCoord2f((float) pv.s, (float) pv.t); |
---|
6021 | | - } |
---|
6022 | | - //System.out.println("vertexq = " + qv.x + ", " + qv.y + ", " + qv.z); |
---|
6023 | | - gl.glVertex3f((float) qv.x, (float) qv.y, (float) qv.z); |
---|
6024 | | - if (hasnorm) |
---|
6025 | | - { |
---|
6026 | | - //System.out.println("normalr = " + rv.norm.x + ", " + rv.norm.y + ", " + rv.norm.z); |
---|
6027 | | - gl.glNormal3f((float) rv.norm.x, (float) rv.norm.y, (float) rv.norm.z); |
---|
6028 | | - } |
---|
6029 | | - |
---|
6030 | | - if ((dot&4) == 0) |
---|
6031 | | - dot |= (Math.abs(rv.s - pv.s) < eps && Math.abs(rv.t - pv.t) < eps) ? 12 : 4; |
---|
6032 | | - |
---|
6033 | | - if (wrap || !locked && (dot&8) != 0) |
---|
6034 | | - gl.glTexCoord2f((float) rv.s, (float) rv.t); |
---|
6035 | | - else |
---|
6036 | | - gl.glTexCoord2f((float) pv.s, (float) pv.t); |
---|
6037 | | - |
---|
6038 | | - f.dot = dot; |
---|
6039 | | - */ |
---|
6040 | | - |
---|
6041 | | - if (!selectmode) |
---|
6042 | | - { |
---|
6043 | | - if (n[count3] != 0 || n[count3 + 1] != 0 || n[count3 + 2] != 0) |
---|
6044 | | - { |
---|
6045 | | - gl.glNormal3f(n[count3], n[count3 + 1], n[count3 + 2]); |
---|
6046 | | - } else |
---|
6047 | | - { |
---|
6048 | | - gl.glNormal3f(0, 0, 1); |
---|
6049 | | - } |
---|
6050 | | - |
---|
6051 | | - if (c != null) |
---|
6052 | | - //System.out.println("glcolor = " + c[count3] + ", " + c[count3+1] + ", " + c[count3+2]); |
---|
6053 | | - { |
---|
6054 | | - gl.glColor4f(c[count3/3], c[count3/3 /* + 1*/], c[count3/3 /* + 2*/], 1); |
---|
6055 | | - } |
---|
6056 | | - } |
---|
6057 | | - if (flipV) |
---|
6058 | | - gl.glTexCoord2f(uv[count2], 1-uv[count2 + 1]); |
---|
6059 | | - else |
---|
6060 | | - gl.glTexCoord2f(uv[count2], uv[count2 + 1]); |
---|
6061 | | - //System.out.println("vertex1 = " + v[count3] + ", " + v[count3+1] + ", " + v[count3+2]); |
---|
6062 | | - gl.glVertex3f(v[count3], v[count3 + 1], v[count3 + 2]); |
---|
6063 | | - |
---|
6064 | | - count2 += 2; |
---|
6065 | | - count3 += 3; |
---|
6066 | | - if (!selectmode) |
---|
6067 | | - { |
---|
6068 | | - if (n[count3] != 0 || n[count3 + 1] != 0 || n[count3 + 2] != 0) |
---|
6069 | | - { |
---|
6070 | | - gl.glNormal3f(n[count3], n[count3 + 1], n[count3 + 2]); |
---|
6071 | | - } else |
---|
6072 | | - { |
---|
6073 | | - gl.glNormal3f(0, 0, 1); |
---|
6074 | | - } |
---|
6075 | | - if (c != null) |
---|
6076 | | - { |
---|
6077 | | - gl.glColor4f(c[count3/3], c[count3/3 /* + 1*/], c[count3/3 /* + 2*/], 1); |
---|
6078 | | - } |
---|
6079 | | - } |
---|
6080 | | - if (flipV) |
---|
6081 | | - gl.glTexCoord2f(uv[count2], 1-uv[count2 + 1]); |
---|
6082 | | - else |
---|
6083 | | - gl.glTexCoord2f(uv[count2], uv[count2 + 1]); |
---|
6084 | | - //System.out.println("vertex2 = " + v[count3] + ", " + v[count3+1] + ", " + v[count3+2]); |
---|
6085 | | - gl.glVertex3f(v[count3], v[count3 + 1], v[count3 + 2]); |
---|
6086 | | - |
---|
6087 | | - count2 += 2; |
---|
6088 | | - count3 += 3; |
---|
6089 | | - for (int j = 0; j < strips[i] - 2; j++) |
---|
6090 | | - { |
---|
6091 | | - //gl.glTexCoord2d(...); |
---|
6092 | | - if (!selectmode) |
---|
6093 | | - { |
---|
6094 | | - if (n[count3] != 0 || n[count3 + 1] != 0 || n[count3 + 2] != 0) |
---|
6095 | | - { |
---|
6096 | | - gl.glNormal3f(n[count3], n[count3 + 1], n[count3 + 2]); |
---|
6097 | | - } else |
---|
6098 | | - { |
---|
6099 | | - gl.glNormal3f(0, 0, 1); |
---|
6100 | | - } |
---|
6101 | | - if (c != null) |
---|
6102 | | - { |
---|
6103 | | - gl.glColor4f(c[count3/3], c[count3/3 /* + 1*/], c[count3/3 /* + 2*/], 1); |
---|
6104 | | - } |
---|
6105 | | - } |
---|
6106 | | - |
---|
6107 | | - if (flipV) |
---|
6108 | | - gl.glTexCoord2f(uv[count2], 1-uv[count2 + 1]); |
---|
6109 | | - else |
---|
6110 | | - gl.glTexCoord2f(uv[count2], uv[count2 + 1]); |
---|
6111 | | - //System.out.println("coord3 = " + uv[count2] + ", " + uv[count2+1]); |
---|
6112 | | - gl.glVertex3f(v[count3], v[count3 + 1], v[count3 + 2]); |
---|
6113 | | - count2 += 2; |
---|
6114 | | - count3 += 3; |
---|
6115 | | - } |
---|
6116 | | - |
---|
6117 | | - gl.glEnd(); |
---|
6118 | | - } |
---|
6119 | | - } |
---|
6120 | | - |
---|
6121 | | - assert count3 == v.length; |
---|
6122 | | - } |
---|
6123 | | - else // !trimmed |
---|
6124 | | - { |
---|
6125 | | - int count = 0; |
---|
6126 | | - for (int i = 0; i < strips.length; i++) |
---|
6127 | | - { |
---|
6128 | | - gl.glBegin(gl.GL_TRIANGLE_STRIP); |
---|
6129 | | - |
---|
6130 | | - Vertex p = bRep.GetVertex(bRep.indices[count++]); |
---|
6131 | | - Vertex q = bRep.GetVertex(bRep.indices[count++]); |
---|
6132 | | - |
---|
6133 | | - drawVertex(gl, p, selectmode); |
---|
6134 | | - drawVertex(gl, q, selectmode); |
---|
6135 | | - |
---|
6136 | | - for (int j = 0; j < strips[i] - 2; j++) |
---|
6137 | | - { |
---|
6138 | | - Vertex r = bRep.GetVertex(bRep.indices[count++]); |
---|
6139 | | - |
---|
6140 | | -// if (j%2 == 0) |
---|
6141 | | -// drawFace(p, q, r, display, null); |
---|
6142 | | -// else |
---|
6143 | | -// drawFace(p, r, q, display, null); |
---|
6144 | | - |
---|
6145 | | -// p = q; |
---|
6146 | | -// q = r; |
---|
6147 | | - drawVertex(gl, r, selectmode); |
---|
6148 | | - } |
---|
6149 | | - |
---|
6150 | | - gl.glEnd(); |
---|
6151 | | - } |
---|
6152 | | - } |
---|
| 5976 | + |
---|
| 5977 | + display.DrawGeometry(bRep, flipV, selectmode); |
---|
6153 | 5978 | } else // catch (Error e) |
---|
6154 | 5979 | { |
---|
6155 | 5980 | // TRIANGLE ARRAY |
---|
6156 | 5981 | if (IsOpaque()) // Static()) |
---|
6157 | 5982 | { |
---|
6158 | | - gl.glBegin(gl.GL_TRIANGLES); |
---|
| 5983 | + display.StartTriangles(); |
---|
6159 | 5984 | int facecount = bRep.FaceCount(); |
---|
6160 | 5985 | for (int i = 0; i < facecount; i++) |
---|
6161 | 5986 | { |
---|
.. | .. |
---|
6220 | 6045 | |
---|
6221 | 6046 | display.DrawFace(this, p, q, r, face); |
---|
6222 | 6047 | } |
---|
6223 | | - gl.glEnd(); |
---|
| 6048 | + display.EndTriangles(); |
---|
6224 | 6049 | } |
---|
6225 | 6050 | else |
---|
6226 | 6051 | { |
---|
.. | .. |
---|
6249 | 6074 | //System.out.println("SORT"); |
---|
6250 | 6075 | |
---|
6251 | 6076 | java.util.Arrays.sort(facescompare); |
---|
6252 | | - |
---|
6253 | | - gl.glBegin(gl.GL_TRIANGLES); |
---|
| 6077 | + |
---|
| 6078 | + display.StartTriangles(); |
---|
6254 | 6079 | for (int i = 0; i < facecount; i++) |
---|
6255 | 6080 | { |
---|
6256 | 6081 | Face face = bRep.GetFace(facescompare[i].index); |
---|
.. | .. |
---|
6264 | 6089 | |
---|
6265 | 6090 | display.DrawFace(this, p, q, r, face); |
---|
6266 | 6091 | } |
---|
6267 | | - gl.glEnd(); |
---|
| 6092 | + display.EndTriangles(); |
---|
6268 | 6093 | } |
---|
6269 | 6094 | |
---|
6270 | 6095 | if (false) // live && support != null && support.bRep != null) // debug weights |
---|
6271 | 6096 | { |
---|
| 6097 | + /* |
---|
6272 | 6098 | gl.glDisable(gl.GL_LIGHTING); |
---|
6273 | 6099 | float[] colorV = new float[3]; |
---|
6274 | 6100 | |
---|
.. | .. |
---|
6347 | 6173 | // gl.glEnd(); |
---|
6348 | 6174 | } |
---|
6349 | 6175 | } |
---|
| 6176 | + */ |
---|
6350 | 6177 | } |
---|
6351 | 6178 | } |
---|
6352 | 6179 | |
---|
.. | .. |
---|
6391 | 6218 | center.add(r); |
---|
6392 | 6219 | center.mul(1.0/3); |
---|
6393 | 6220 | |
---|
6394 | | - center.sub(CameraPane.theRenderer.eyeCamera.location); |
---|
| 6221 | + center.sub(Globals.theRenderer.EyeCamera().location); |
---|
6395 | 6222 | |
---|
6396 | 6223 | distance = center.dot(center); |
---|
6397 | 6224 | } |
---|
.. | .. |
---|
6405 | 6232 | void Print(Vertex v) |
---|
6406 | 6233 | { |
---|
6407 | 6234 | //System.err.println("(" + v.x + ", " + v.y + ", " + v.z + ")"); |
---|
6408 | | - } |
---|
6409 | | - |
---|
6410 | | - void drawVertex(javax.media.opengl.GL gl, Vertex pv, boolean selectmode) |
---|
6411 | | - { |
---|
6412 | | - if (!selectmode) |
---|
6413 | | - { |
---|
6414 | | - gl.glNormal3f((float) pv.norm.x, (float) pv.norm.y, (float) pv.norm.z); |
---|
6415 | | - gl.glColor4f(pv.AO, pv.AO, pv.AO, 1); |
---|
6416 | | - |
---|
6417 | | - if (flipV) |
---|
6418 | | - gl.glTexCoord2f((float) pv.s, 1-(float) pv.t); |
---|
6419 | | - else |
---|
6420 | | - gl.glTexCoord2f((float) pv.s, (float) pv.t); |
---|
6421 | | - } |
---|
6422 | | - |
---|
6423 | | - gl.glVertex3f((float) pv.x, (float) pv.y, (float) pv.z); |
---|
6424 | 6235 | } |
---|
6425 | 6236 | |
---|
6426 | 6237 | void drawSelf(ClickInfo info, int level, boolean select) |
---|
.. | .. |
---|
7173 | 6984 | |
---|
7174 | 6985 | case hitCenter: // Translate |
---|
7175 | 6986 | |
---|
7176 | | - scale *= 0.05f * info.pane.theRenderer.renderCamera.Distance(); |
---|
| 6987 | + scale *= 0.05f * Globals.theRenderer.RenderCamera().Distance(); |
---|
7177 | 6988 | |
---|
7178 | 6989 | if (modified) |
---|
7179 | 6990 | { |
---|
.. | .. |
---|
7221 | 7032 | } |
---|
7222 | 7033 | LA.xformDir(up, ClickInfo.matbuffer, up); |
---|
7223 | 7034 | // if (!CameraPane.LOCALTRANSFORM) |
---|
7224 | | - LA.xformDir(up, info.pane.theRenderer.renderCamera.toScreen, up); |
---|
| 7035 | + LA.xformDir(up, Globals.theRenderer.RenderCamera().toScreen, up); |
---|
7225 | 7036 | LA.xformDir(info.camera.away, ClickInfo.matbuffer, away); |
---|
7226 | 7037 | // if (!CameraPane.LOCALTRANSFORM) |
---|
7227 | | - LA.xformDir(away, info.pane.theRenderer.renderCamera.toScreen, away); |
---|
| 7038 | + LA.xformDir(away, Globals.theRenderer.RenderCamera().toScreen, away); |
---|
7228 | 7039 | //LA.vecCross(up, cVector.Z, right2); |
---|
7229 | 7040 | |
---|
7230 | 7041 | cVector delta = LA.newVector(info.x - startX, startY - info.y, 0); |
---|
.. | .. |
---|
7282 | 7093 | } |
---|
7283 | 7094 | /**/ |
---|
7284 | 7095 | |
---|
7285 | | - switch (info.pane.renderCamera.viewCode) |
---|
| 7096 | + switch (info.pane.RenderCamera().viewCode) |
---|
7286 | 7097 | { |
---|
7287 | 7098 | case 1: // '\001' |
---|
7288 | 7099 | LA.matZRotate(toParent, angle); |
---|
.. | .. |
---|
7338 | 7149 | } |
---|
7339 | 7150 | /**/ |
---|
7340 | 7151 | |
---|
7341 | | - switch (info.pane.renderCamera.viewCode) |
---|
| 7152 | + switch (info.pane.RenderCamera().viewCode) |
---|
7342 | 7153 | { |
---|
7343 | 7154 | case 3: // '\001' |
---|
7344 | 7155 | if (modified) |
---|