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
11 stars 0 forks source link

Implement orthographic projection #311

Closed adrianusler closed 4 months ago

adrianusler commented 4 months ago

Still to be done:

adrianusler commented 4 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 4 months ago

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

adrianusler commented 4 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.