Attached diff:
- Getting rid of most non-vital warnings via a setting in the .ini file
- Atoms, Joints, and pixels are now non-hollow when slabbed
- Isosurfaces do not generate shadows anymore, just like in jmol
Question: A halo is drawn via the bond macro? Why not make it a
translucent atom?
On 10/29/07, pim schravendijk <[EMAIL PROTECTED]> wrote:
> Hi again!
>
> For most objects (except maybe isosurfaces) you don't want clipping,
> which shows the hollow interior.Instead you want a intersection with
> the color of the object:
>
> #declare boundingBox = box {<0,0,2660>,<Width,Height,3345>}
>
> #macro a(X,Y,Z,RADIUS,R,G,B,T)
> intersection {
> sphere{<X,Y,Z>,RADIUS
> pigment{rgbt<R,G,B,T>}
> no_shadow}
> box {boundingBox}
> pigment{rgbt<R,G,B,T>}}
> #end
>
> Is it ok if I rewrite this bit and try some options for the interior
> of the isosurface?
>
> --
> Greetings, Pim
> http://www.molmod.com
>
--
Greetings, Pim
http://www.molmod.com
Index: src/org/jmol/export/_PovrayExporter.java
===================================================================
--- src/org/jmol/export/_PovrayExporter.java (revision 8544)
+++ src/org/jmol/export/_PovrayExporter.java (working copy)
@@ -153,6 +153,9 @@
+ " clipped_by { box {<0,0," + slabZ + ">,<Width,Height," + depthZ + ">}}\n"
+ "#end\n\n");
+ output("#declare boundBox = "
+ + " box {<0,0," + slabZ + ">,<Width,Height," + depthZ + ">}\n\n");
+
writeMacrosAtom();
writeMacrosBond();
writeMacrosJoint();
@@ -162,10 +165,14 @@
}
private void writeMacrosAtom() {
- output("#macro a(X,Y,Z,RADIUS,R,G,B,T)\n" + " sphere{<X,Y,Z>,RADIUS\n"
- + " pigment{rgbt<R,G,B,T>}\n"
- + " clip()\n"
- + " no_shadow}\n"
+ output("#macro a(X,Y,Z,RADIUS,R,G,B,T)\n"
+ + " intersection {\n"
+ + " sphere{<X,Y,Z>,RADIUS\n"
+ + " pigment{rgbt<R,G,B,T>}\n"
+ + " no_shadow}\n"
+ + " box {boundBox}\n"
+ + " pigment{rgbt<R,G,B,T>}\n"
+ + " no_shadow}\n"
+ "#end\n\n");
}
@@ -183,10 +190,13 @@
private void writeMacrosJoint() {
output("#macro s(X,Y,Z,RADIUS,R,G,B,T)\n"
- + " sphere{<X,Y,Z>,RADIUS\n"
- + " pigment{rgbt<R,G,B,T>}\n"
- + " clip()\n"
- + " no_shadow}\n"
+ + " intersection {\n"
+ + " sphere{<X,Y,Z>,RADIUS\n"
+ + " pigment{rgbt<R,G,B,T>}\n"
+ + " no_shadow}\n"
+ + " box {boundBox}\n"
+ + " pigment{rgbt<R,G,B,T>}\n"
+ + " no_shadow}\n"
+ "#end\n\n");
}
@@ -201,10 +211,13 @@
private void writeMacrosTextPixel() {
output("#macro p(X,Y,Z,R,G,B)\n"
- + " box{<X,Y,Z>,<X+1,Y+1,Z+1>\n"
- + " pigment{rgb<R,G,B>}\n"
- + " clip()\n"
- + " no_shadow}\n"
+ + " intersection {\n"
+ + " box{<X,Y,Z>,<X+1,Y+1,Z+1>\n"
+ + " pigment{rgb<R,G,B>}\n"
+ + " no_shadow}\n"
+ + " box {boundBox}\n"
+ + " pigment{rgb<R,G,B>}\n"
+ + " no_shadow}\n"
+ "#end\n\n");
}
@@ -248,7 +261,8 @@
+ "\nAntialias=true"
+ "\nAntialias_Threshold=0.1"
+ "\nDisplay=true"
- + "\nPause_When_Done=true"
+ + "\nPause_When_Done=true"
+ + "\nWarning_Level=5"
+ "\nVerbose=false" + "\n");
}
@@ -408,6 +422,7 @@
output("pigment{rgbt<" + color4(colix) + ">}\n");
}
output(" finish {finishMatte}\n");
+ output(" no_shadow\n");
output(" clip()\n");
output("}\n");
Index: src/org/openscience/jmol/app/PovrayDialog.java
===================================================================
--- src/org/openscience/jmol/app/PovrayDialog.java (revision 8544)
+++ src/org/openscience/jmol/app/PovrayDialog.java (working copy)
@@ -953,6 +953,7 @@
data.append("Preview_End_Size=" + mosaicPreviewComboEnd.getSelectedItem() + "\n");
}
+ data.append("Warning_Level=5\n");
data.append("Verbose=false\n");
return data.toString();
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers