Difference between revisions of "Backface cull"

From PyMOLWiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
==Overview==
 
==Overview==
 
+
'''backface_cull''' controls whether or not backward facing triangles are not filtered out when ray tracing.
From the PyMOL source code: backface_cull "controls whether or not backward facing triangles are not filtered out when ray tracing"
 
 
 
  
  
 
==Syntax==
 
==Syntax==
 +
<source lang="python">
 +
# on; default
 +
set backface_cull, 1
  
set backface_cull, 1  (on; default)
+
# off; allows the visualization of the "other side" (inside) of a surface
 +
set backface_cull, 0
 +
</source>
  
set backface_cull, 0  (off; allows the visualization of the "other side" (inside) of a surface)
+
'''Note''': To allow or disallow visualization of the inside of a surface, see [[two_sided_lighting]].
 
 
 
 
Note that visualization of the inside of a surface also depends on the setting of "two_sided_lighting"
 
  
  
 
==Examples==
 
==Examples==
 
 
<gallery>
 
<gallery>
 
Image:Cull_backface_on.jpg|cull_backface ON
 
Image:Cull_backface_on.jpg|cull_backface ON
 
Image:Cull_backface_off.jpg|cull_backface OFF
 
Image:Cull_backface_off.jpg|cull_backface OFF
 
</gallery>
 
</gallery>

Revision as of 15:47, 24 February 2007

Overview

backface_cull controls whether or not backward facing triangles are not filtered out when ray tracing.


Syntax

# on; default
set backface_cull, 1

# off; allows the visualization of the "other side" (inside) of a surface
set backface_cull, 0

Note: To allow or disallow visualization of the inside of a surface, see two_sided_lighting.


Examples