Revision: 20300
          http://sourceforge.net/p/jmol/code/20300
Author:   hansonr
Date:     2015-02-17 12:02:59 +0000 (Tue, 17 Feb 2015)
Log Message:
-----------
Jmol.___JmolVersion="14.2.12_2015.02.17"

new feature: set zshadePower 0
 -- allows examination of depth buffer and writing to image for external 
processing
 

Modified Paths:
--------------
    trunk/Jmol/src/org/jmol/g3d/Graphics3D.java
    trunk/Jmol/src/org/jmol/g3d/PixelatorShaded.java

Modified: trunk/Jmol/src/org/jmol/g3d/Graphics3D.java
===================================================================
--- trunk/Jmol/src/org/jmol/g3d/Graphics3D.java 2015-02-17 11:36:25 UTC (rev 
20299)
+++ trunk/Jmol/src/org/jmol/g3d/Graphics3D.java 2015-02-17 12:02:59 UTC (rev 
20300)
@@ -379,7 +379,7 @@
         for (int offset = pbufT.length; --offset >= 0;)
           mergeBufferPixel(pbuf, offset, pbufT[offset], bgcolor);
       
-      if (pixelShaded != null && pixelShaded.zShadePower == 0)
+      if (pixel == pixelShaded && pixelShaded.zShadePower == 0)
         pixelShaded.showZBuffer();
       
 

Modified: trunk/Jmol/src/org/jmol/g3d/PixelatorShaded.java
===================================================================
--- trunk/Jmol/src/org/jmol/g3d/PixelatorShaded.java    2015-02-17 11:36:25 UTC 
(rev 20299)
+++ trunk/Jmol/src/org/jmol/g3d/PixelatorShaded.java    2015-02-17 12:02:59 UTC 
(rev 20300)
@@ -62,7 +62,7 @@
     // z starts with 0 at camera and runs toward model, with zSlab <= zDepth
     if (z > zDepth)
       return;
-    if (z >= zSlab) {
+    if (z >= zSlab && zShadePower > 0) {
       int[] t = tmp;
       int[] zs = bgRGB;
       t[0] = p;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to