
Hi, When I import a .glb gltf file that I generated in ChimeraX into Blender to reduce its file size. The colouring seems to be lost. Is there a way to reduce the .glb file size in ChimeraX (or using another program)? Or not to lose the colours when importing it into Blender? Regards, Suzanne The University of Dundee is a registered Scottish Charity, No: SC015096

Hi Suzanne, That is most likely a limitation of the Blender GLTF file reader. ChimeraX puts vertex colors into the gltf file bur probably Blender only handles texture colors. You can see the colors are in the file if you open the GLTF in ChimeraX it will show you the colors. You can reduce the GLTF file size in ChimeraX by reducing the quality of the graphics using the "graphics quality" command. https://www.cgl.ucsf.edu/chimerax/docs/user/commands/graphics.html#quality <https://www.cgl.ucsf.edu/chimerax/docs/user/commands/graphics.html#quality> That can reduce the number of triangles used for atoms, bonds and ribbons. For surfaces the standard molecular surface (solvent excluded) is very detailed. You can make a coarser surface using the "resolution" option (value in Angstroms) of the surface command, for example "surface #1 resolution 10". https://www.cgl.ucsf.edu/chimerax/docs/user/commands/surface.html#parameters <https://www.cgl.ucsf.edu/chimerax/docs/user/commands/surface.html#parameters> Tom
On Dec 10, 2020, at 5:36 AM, Suzanne Duce (Staff) <S.Duce@dundee.ac.uk> wrote:
Hi, When I import a .glb gltf file that I generated in ChimeraX into Blender to reduce its file size. The colouring seems to be lost.
Is there a way to reduce the .glb file size in ChimeraX (or using another program)? Or not to lose the colours when importing it into Blender?
Regards, Suzanne
The University of Dundee is a registered Scottish Charity, No: SC015096_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu <mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>

Thank you, that is really helpful, Suzanne From: Tom Goddard <goddard@sonic.net> Date: Thursday, 10 December 2020 at 18:15 To: Suzanne Duce (Staff) <S.Duce@dundee.ac.uk> Cc: chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu> Subject: Re: [chimerax-users] Handling gltf file Hi Suzanne, That is most likely a limitation of the Blender GLTF file reader. ChimeraX puts vertex colors into the gltf file bur probably Blender only handles texture colors. You can see the colors are in the file if you open the GLTF in ChimeraX it will show you the colors. You can reduce the GLTF file size in ChimeraX by reducing the quality of the graphics using the "graphics quality" command. https://www.cgl.ucsf.edu/chimerax/docs/user/commands/graphics.html#quality That can reduce the number of triangles used for atoms, bonds and ribbons. For surfaces the standard molecular surface (solvent excluded) is very detailed. You can make a coarser surface using the "resolution" option (value in Angstroms) of the surface command, for example "surface #1 resolution 10". https://www.cgl.ucsf.edu/chimerax/docs/user/commands/surface.html#parameters Tom On Dec 10, 2020, at 5:36 AM, Suzanne Duce (Staff) <S.Duce@dundee.ac.uk<mailto:S.Duce@dundee.ac.uk>> wrote: Hi, When I import a .glb gltf file that I generated in ChimeraX into Blender to reduce its file size. The colouring seems to be lost. Is there a way to reduce the .glb file size in ChimeraX (or using another program)? Or not to lose the colours when importing it into Blender? Regards, Suzanne The University of Dundee is a registered Scottish Charity, No: SC015096_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu<mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users The University of Dundee is a registered Scottish Charity, No: SC015096
participants (2)
-
Suzanne Duce (Staff)
-
Tom Goddard