Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Ray
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Modes=== Setting the '''[[Ray_trace_mode]]''' variable in PyMOL changes the way PyMOL's internal renderer represents proteins in the final output. New modes were recently added to give the user more options of molecular representation. New modes are: normal rendering, but with a black outline (nice for presentations); black and white only; quantized color with black outline (also, very nice for presentations; more of a ''cartoony'' appearance). '''Note:''' Mode 3, the quantized color one, sort of '''burns''' the background if you're using this setting. This will make a pure white background somewhat "offwhite"; thus, a poster would look poor because you could see the border for the image. If you'll be using this mode, try the [[ray_opaque_background]] setting. <source lang="python"> # normal color set ray_trace_mode, 0 # normal color + black outline set ray_trace_mode, 1 # black outline only set ray_trace_mode, 2 # quantized color + black outline set ray_trace_mode, 3 set ray_trace_mode, 1 # (or 2 or 3; best with "bg_color white;set antialias,2") # These two new modes -- 2 and 3 -- are cool cartoon looking modes. # change the color of the outline to a named color, or a hex-code set ray_trace_color, magenta set ray_trace_color, 0x0033ff </source> Here are the example images for the new modes <gallery> Image:Ray_mode_1_ex.png|set ray_trace_mode,1 Image:Ray_mode_2_ex.png|set ray_trace_mode,2 Image:Ray_mode_3_ex.png|set ray_trace_mode,3 </gallery> The '''[[ray_trace_mode]]''' setting adds outlines to objects by detecting local changes in depth by surrounding pixels. However, since transparent objects do not typically affect the scene's depth information, they may not be outlined by default. You can control which objects receive an outline by adjusting '''[[ray_trace_trans_cutoff]]'''. This setting determines the minimum opacity an object must have to be included in ray-tracing outlining. For example, if you want to omit outlining for objects below an opacity of 95% (5% transparency): set ray_trace_trans_cutoff, 0.05 # default
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Ray
(section)
Add topic