Molara-Lab / Molara

Molara is a Python package for the visualization of chemical structures such as molecules or crystals. It provides a graphical user interface for importing structures from output files of popular computational chemistry software as well as for creating custom structures.
GNU General Public License v3.0
14 stars 1 forks source link

Implement orthographic projection #311

Closed adrianusler closed 8 months ago

adrianusler commented 9 months ago

Still to be done:

adrianusler commented 8 months ago

can work with pyrr.matrix44.create_orthogonal_projection_matrix(...). I don't fully understand the function arguments yet, but it seems to do the right thing.

adrianusler commented 8 months ago

In the current version on feature/311-orthographic-projection, one can now toggle between perspective and orthographic projection: grafik grafik

adrianusler commented 8 months ago

distance_to_target is now calculated in a rather simple way such that the width/height of the field of view at the target location match the y- and z-dimensions of the structure (whichever is the limiting one). Of course, this could be refined, but I'd say it's fine for now.