ajjackson / ascii-phonons

Blender extensions for illustrations of phonons
GNU General Public License v3.0
60 stars 22 forks source link

FEATURE: Orthographic projection #12

Closed ajjackson closed 7 years ago

ajjackson commented 8 years ago

In many cases an orthographic projection is more useful than one with perspective.

lucydot commented 7 years ago

Hi Adam - I'd like to use this feature with the CLI. It's in the documentation as being an option but it isn't listed under ./scripts/ascii-phonons -h. Can't find any reference to it in the corresponding code either. Bug?

ajjackson commented 7 years ago

You are right, this was a silly oversight! I have now added the flag to the CLI where it should have been and pushed this up.

You can also use the orthographic option from the CLI without the latest version by using a config file by setting "orthographic = yes" in a config file included with --config MYFILE.conf.

When testing this I noticed some odd glitches in the graphics when actually using the orthographic projection, with atoms appearing superimposed. I've been tinkering with the rendering anyway, will look into this.

ajjackson commented 7 years ago

Ok, I played with the clip distance and commit 86a5e050534f35e46ce9a687ef6d6e2d6bd30704 fixes the glitches for me! If it works out for you too then I will close this issue again.

lucydot commented 7 years ago

New commit works for me - thanks Adam.

On Thu, Jun 1, 2017 at 11:18 AM, Adam J. Jackson notifications@github.com wrote:

Ok, I played with the clip distance and commit 86a5e05 https://github.com/ajjackson/ascii-phonons/commit/86a5e050534f35e46ce9a687ef6d6e2d6bd30704 fixes the glitches for me! If it works out for you too then I will close this issue again.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ajjackson/ascii-phonons/issues/12#issuecomment-305452149, or mute the thread https://github.com/notifications/unsubscribe-auth/ACVtxxU7GXC_Sx0QakXMdCZJiRHMk5AYks5r_pAJgaJpZM4HdVkp .