Hi ovito team,
I’m trying to generate a sequence of images (some silicate structures) with polyhedrons,
this works so far nicely, even with the AnariRenderer under Windows. As far I can see,
there is no obvious way to color the (translucent) polyhedra, they appear in a tone of gray.
Currently, I use this sequence of commands to set up the pipeline for the polyhedron renderer:
Si_O_Bond_L_1 = 1.8
pipeline.modifiers.append(SelectTypeModifier(types={1})) # should be Si in the center of tetrahedrons
bondmod = CreateBondsModifier(cutoff=Si_O_Bond_L_1) # Create bonds between nearby atoms.
pipeline.modifiers.append(bondmod)
bondmod.vis.enabled = False # Hide the bonds.
polymod = CoordinationPolyhedraModifier() # modifier constructs coordination polyhedra
pipeline.modifiers.append(polymod) # around selected atoms
polymod.vis.surface_transparency = 0.35
polymod.vis.highlight_edges = True
polymod.vis.smooth_shading = False # does not work with anari
Is there some way to set up a color value in the CoordinationPolyhedraModifier() that depends on the value of polyhedral faces the modifier computes for the current atom?
Thanks & best wishes!