Revision: 20466 http://sourceforge.net/p/jmol/code/20466 Author: hansonr Date: 2015-04-30 13:33:13 +0000 (Thu, 30 Apr 2015) Log Message: ----------- Jmol.___JmolVersion="14.3.13_2015.04.30"
bug fix: POV-Ray fixed for perspective and orthographic cameras using new z-depth formula. Modified Paths: -------------- trunk/Jmol/src/org/jmol/export/_PovrayExporter.java Modified: trunk/Jmol/src/org/jmol/export/_PovrayExporter.java =================================================================== --- trunk/Jmol/src/org/jmol/export/_PovrayExporter.java 2015-04-30 13:17:17 UTC (rev 20465) +++ trunk/Jmol/src/org/jmol/export/_PovrayExporter.java 2015-04-30 13:33:13 UTC (rev 20466) @@ -59,8 +59,6 @@ public class _PovrayExporter extends __RayTracerExporter { - private String perspective; - public _PovrayExporter() { commentChar = "// "; } @@ -73,7 +71,6 @@ @Override protected void outputHeader() { - perspective = getJmolPerspective(); initVars(); output("// ******************************************************\n"); output("// Created by Jmol " + Viewer.getJmolVersion() + "\n"); @@ -86,7 +83,7 @@ // tough luck } output("\n"); - output(perspective); + output(getJmolPerspective()); output("\n"); output("// ******************************************************\n"); output("// Declare the resolution, camera, and light sources.\n"); @@ -106,7 +103,8 @@ if (wasPerspective) { offsetX = vwr.tm.getTranslationXPercent() / 100 * screenWidth; offsetY = vwr.tm.getTranslationYPercent() / 100 * screenHeight; - f = 1f/vwr.tm.getPerspectiveFactor(2500); + // factor for 50% depth -- not quite right around the edges, perhaps + f = 1f/vwr.tm.getPerspectiveFactor((vwr.tm.getCameraDepth() + 0.5f) * vwr.getScreenDim()); output(" perspective\n"); output(" angle " + aperatureAngle + "\n"); output(" right < " + screenWidth + ", 0, 0>\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Jmol-commits mailing list Jmol-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-commits