Backface cull: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
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
set backface_cull, 0  (off; allows the visualization of the "other side" (inside) of a surface)
</source>


 
'''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>
[[Category:Settings|Backface cull]]

Latest revision as of 16:07, 2 November 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