| Camera.java | ●●●●● patch | view | raw | blame | history | |
| CameraPane.java | ●●●●● patch | view | raw | blame | history | |
| ObjEditor.java | ●●●●● patch | view | raw | blame | history | |
| RandomEditor.java | ●●●●● patch | view | raw | blame | history | |
| fullscenes/desertmotel.png | patch | view | raw | blame | history | |
| fullscenes/tuscany.png | patch | view | raw | blame | history | 
Camera.java
.. .. @@ -286,24 +286,34 @@ 286 286 if (scale == 0) 287 287 { 288 288 // Zoom 289  - LA.vecSub(location, lookAt, location);290  -291  - cVector p = location;292  -293 289 double factor = Math.exp(-dy/300.0); // (1 + dy/100); 294 290 295  - p.x *= factor;296  - p.y *= factor;297  - p.z *= factor;291  + if (viewCode != 0)292  + {293  + LA.vecSub(location, lookAt, location);298 294 299  - LA.vecAdd(location, lookAt, location);295  + cVector p = location;296  +297  + p.x *= factor;298  + p.y *= factor;299  + p.z *= factor;300  +301  + LA.vecAdd(location, lookAt, location);302  + }303  + else304  + if (//shaper_fovy < 180 && factor > 1 ||305  + shaper_fovy * factor < 180)306  + {307  + shaper_fovy *= factor;308  + //System.out.println("fovy = " + shaper_fovy);309  + }300 310 } 301 311 else 302 312 { 303 313 LA.vecSub(location, lookAt, direction); 304 314 305 315 //scale /= Distance(); 306  - scale /= shaper_fovy/20;316  + // scale /= shaper_fovy/20;307 317 308 318 location.x -= dy * direction.x / scale; 309 319 //location.y -= dy * direction.y / scale; CameraPane.java
.. .. @@ -9854,7 +9854,7 @@ 9854 9854 9855 9855 boolean vr = capsLocked && !lightMode; 9856 9856 9857  - accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 2 : 1),9857  + accPerspective(gl, renderCamera.shaper_fovy / ratio * (vr ? 1.2 : 1),9858 9858 ratio, 9859 9859 //near_plane, far_plane, 9860 9860 renderCamera.shaper_zNear * renderCamera.Distance(), renderCamera.shaper_zFar * renderCamera.Distance(), .. .. @@ -11513,7 +11513,8 @@ 11513 11513 { 11514 11514 boolean vr = capsLocked && !lightMode; 11515 11515 11516  - glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 2 : 1), ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());11516  + glu.gluPerspective(cam.shaper_fovy / ratio * (vr ? 1.2 : 1),11517  + ratio, cam.shaper_zNear * cam.Distance(), cam.shaper_zFar * cam.Distance());11517 11518 } 11518 11519 } 11519 11520 .. .. @@ -14603,8 +14604,8 @@ 14603 14604 14604 14605 //if (drawing) 14605 14606 //return; 14606  - if ((e.getModifiersEx() & CTRL) != 014607  - || (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())14607  + if ((e.getModifiersEx() & CTRL) != 0 ||14608  + (e.getModifiersEx() & COMMAND) != 0) // || IsFrozen())14608 14609 { 14609 14610 //System.out.println("mouseDragged: " + e); 14610 14611 clickEnd(e.getX(), e.getY(), e.getModifiersEx()); .. .. @@ -14750,7 +14751,7 @@ 14750 14751 { 14751 14752 if (LOOKAT) 14752 14753 manipCamera.lookAt.add(tmp); 14753  - if (OEIL)14754  + if (OEIL && !capsLocked)14754 14755 manipCamera.location.add(tmp); 14755 14756 14756 14757 { .. .. @@ -14765,7 +14766,10 @@ 14765 14766 lightCamera.computeTransform(); 14766 14767 } 14767 14768 } 14768  - manipCamera.computeTransform();14769  + if (tmp.x != 0 || tmp.y != 0 || tmp.z != 0)14770  + {14771  + manipCamera.computeTransform();14772  + }14769 14773 } 14770 14774 // ?????? mouseDown = true; 14771 14775 //System.out.println("---------------- ---------- Paint " + tmp.length2()); .. .. @@ -15195,6 +15199,9 @@ 15195 15199 15196 15200 public void mouseMoved(MouseEvent e) 15197 15201 { 15202  +//object.editWindow.frame.15203  + setCursor(Cursor.getDefaultCursor());15204  +15198 15205 //System.out.println("mouseMoved: " + e); 15199 15206 if (isRenderer) 15200 15207 return; .. .. @@ -15439,8 +15446,18 @@ 15439 15446 float SATPOW = 1; // 2; // 0.5f; 15440 15447 float BRIPOW = 1; // 0.5f; // 0.5f; 15441 15448 15449  +static BufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);15450  +15451  +// Create a new blank cursor.15452  +static Cursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(15453  + cursorImg, new Point(0, 0), "blank cursor");15454  +15442 15455 public void keyPressed(int key) 15443 15456 { 15457  +// Set the blank cursor to the JFrame.15458  +//object.editWindow.frame.15459  + setCursor(blankCursor);15460  +15444 15461 if (key >= '0' && key <= '5') 15445 15462 clampbit = (key-'0'); 15446 15463  ObjEditor.java
.. .. @@ -1875,6 +1875,30 @@ 1875 1875 } 1876 1876 }); 1877 1877 1878  + fullscenePanel.add(fullsceneButton = GetButton("fullscenes/desertmotel.png", !Globals.NIMBUSLAF));1879  + fullsceneButton.setToolTipText("Desert Motel!");1880  + fullsceneButton.addActionListener(new ActionListener()1881  + {1882  + @Override1883  + public void actionPerformed(ActionEvent e)1884  + {1885  + ReadGFD("https://www.noaofarc.ca/akeeba/categories/Applications/DesertMotel.gfd", new iCallBack()1886  + {1887  +1888  + public void Callback(Object obj)1889  + {1890  + LoadIt(obj);1891  + }1892  +1893  + public void DragGesture()1894  + {1895  + }1896  + });1897  + }1898  + });1899  +1900  + fullscenePanel.Return();1901  +1878 1902 fullscenePanel.add(fullsceneButton = GetButton("fullscenes/london.png", !Globals.NIMBUSLAF)); 1879 1903 fullsceneButton.setToolTipText("Old London!"); 1880 1904 fullsceneButton.addActionListener(new ActionListener() .. .. @@ -1897,8 +1921,52 @@ 1897 1921 } 1898 1922 }); 1899 1923 1924  + fullscenePanel.add(fullsceneButton = GetButton("fullscenes/skullcove.png", !Globals.NIMBUSLAF));1925  + fullsceneButton.setToolTipText("Skull Cove Island!");1926  + fullsceneButton.addActionListener(new ActionListener()1927  + {1928  + @Override1929  + public void actionPerformed(ActionEvent e)1930  + {1931  + ReadGFD("https://www.noaofarc.ca/akeeba/categories/Applications/SkullCoveIsland.gfd", new iCallBack()1932  + {1933  +1934  + public void Callback(Object obj)1935  + {1936  + LoadIt(obj);1937  + }1938  +1939  + public void DragGesture()1940  + {1941  + }1942  + });1943  + }1944  + });1945  +1900 1946 fullscenePanel.Return(); 1901 1947 1948  + fullscenePanel.add(fullsceneButton = GetButton("fullscenes/tuscany.png", !Globals.NIMBUSLAF));1949  + fullsceneButton.setToolTipText("Tuscany!");1950  + fullsceneButton.addActionListener(new ActionListener()1951  + {1952  + @Override1953  + public void actionPerformed(ActionEvent e)1954  + {1955  + ReadGFD("https://www.noaofarc.ca/akeeba/categories/Applications/Tuscany.gfd", new iCallBack()1956  + {1957  +1958  + public void Callback(Object obj)1959  + {1960  + LoadIt(obj);1961  + }1962  +1963  + public void DragGesture()1964  + {1965  + }1966  + });1967  + }1968  + });1969  +1902 1970 fullscenePanel.add(fullsceneButton = GetButton("fullscenes/venice.png", !Globals.NIMBUSLAF)); 1903 1971 fullsceneButton.setToolTipText("Venice!"); 1904 1972 fullsceneButton.addActionListener(new ActionListener() .. .. @@ -1921,6 +1989,8 @@ 1921 1989 } 1922 1990 }); 1923 1991 1992  + fullscenePanel.Return();1993  +1924 1994 fullscenePanel.add(fullsceneButton = GetButton("fullscenes/viking.png", !Globals.NIMBUSLAF)); 1925 1995 fullsceneButton.setToolTipText("Viking Village!"); 1926 1996 fullsceneButton.addActionListener(new ActionListener() .. .. @@ -1943,8 +2013,6 @@ 1943 2013 } 1944 2014 }); 1945 2015 1946  - fullscenePanel.Return();1947  -1948 2016 fullscenePanel.add(fullsceneButton = GetButton("fullscenes/yvoire.png", !Globals.NIMBUSLAF)); 1949 2017 fullsceneButton.setToolTipText("Yvoire!"); 1950 2018 fullsceneButton.addActionListener(new ActionListener() .. .. @@ -1967,33 +2035,8 @@ 1967 2035 } 1968 2036 }); 1969 2037 1970  - fullscenePanel.add(fullsceneButton = GetButton("fullscenes/skullcove.png", !Globals.NIMBUSLAF));1971  - fullsceneButton.setToolTipText("Skull Cove Island!");1972  - fullsceneButton.addActionListener(new ActionListener()1973  - {1974  - @Override1975  - public void actionPerformed(ActionEvent e)1976  - {1977  - ReadGFD("https://www.noaofarc.ca/akeeba/categories/Applications/SkullCoveIsland.gfd", new iCallBack()1978  - {1979  -1980  - public void Callback(Object obj)1981  - {1982  - LoadIt(obj);1983  - }1984  -1985  - public void DragGesture()1986  - {1987  - }1988  - });1989  - }1990  - });1991  -1992 2038 fullscenePanel.Return(); 1993 2039 1994  - fullscenePanel.add(new cGridBag());1995  - fullscenePanel.add(new cGridBag());1996  - fullscenePanel.Return();1997 2040 fullscenePanel.add(new cGridBag()); 1998 2041 fullscenePanel.add(new cGridBag()); 1999 2042 fullscenePanel.Return(); RandomEditor.java
.. .. @@ -98,7 +98,9 @@ 98 98 //System.out.println(e); 99 99 applySelf(); 100 100 //super.applySelf(); 101  - objEditor.refreshContents();101  +102  + Globals.lighttouched = true;103  + objEditor.refreshContents();102 104 //Refresh(); 103 105 } 104 106 else fullscenes/desertmotel.pngBinary files differ
fullscenes/tuscany.pngBinary files differ