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
COLLADA
(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!
=Details= COLLADA format defines a scene, with a camera and various geometric elements, which are colored and lit according to the properties of the material the object is made from and any effects (e.g. shaders) applied to it. PyMOL exports the scene exactly as it looks in the viewport when the save command is executed, so the orientations and colors of the objects should be the same. It currently saves every enabled object in the scene, regardless of any selection passed to the `save` command. ===USAGE=== <source lang="python"> save file.dae </source> == Features == * Full support of all standard representations (cartoon, stick, line, sphere, surface, etc.) * Customizable output quality and file size, based on quality settings for active representations (e.g. [[surface_quality]]) * Transparency support * As of PyMOL 2.4: support for exporting glTF files using the COLLADA2GLTF tool == Related Settings == * [[collada_export_lighting]] - Optionally include PyMOL's lighting information. * [[collada_geometry_mode]] - Specify how geometry elements are presented. * [[geometry_export_mode]] - Exclude camera as well as lighting information. == Limitations == * '''Shaders.''' In version 1.4 of the COLLADA specification, only vertex-based meshes are defined, so all regular geometric shapes (e.g. spheres, cylinders, cones) have to be converted into a series of triangle meshes. This produces output similar to what you would see in PyMOL with `use_shaders` turned off. (Version 1.5 of the COLLADA spec includes "boundary representation" (<brep>) elements that define such geometric shapes as you might expect: a sphere is defined by a point and a radius, a cylinder by two points and a radius, a cone by two points and two radii. However, apparently due to the complexity of the physics portion of the 1.5 specification, few programs have even attempted to adopt it yet, so we're stuck with old-school triangle meshes.) * '''Lighting.''' Whereas in PyMOL, the lighting of the object appears similar no matter how the object is rotated--that is, the lights move with the camera or viewport--in COLLADA, the lights are fixed in the scene with the objects, and therefore, with PyMOL `[[light_count]]` of 2 or higher, only one side of the objects is lit with the directional lights; the other side appears dark. For this reason, PyMOL's lights are excluded from COLLADA output files by default. To include lighting in the output file, turn on the `[[collada_export_lighting]]` setting. * '''Labels.''' Like lights, labels would be fixed with the objects, so from all but a narrow range of orientations, the text would be unreadable. * '''Volumes.''' PyMOL's volume representation consists of a series of evenly spaced planes perpendicular to the viewport, the orientation of which is changed whenever the view is changed. Unfortunately, this makes them essentially useless in a COLLADA scene as well, as, once the original orientation is changed, the planes would look less like a 3D volume projection, and more like a stack of flat images slicing through the rest of the scene. == Increasing the Quality == You can increase the number of triangles exported, and therefore the smoothness of the resulting objects, by increasing the following settings. * surface_quality * sphere_quality * stick_quality * cartoon_sampling Conversely, to decrease the file size, decrease the settings. [[Category:OutputFormats]]
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
COLLADA
(section)
Add topic