Update-2023-04-24 Molecules #215
Replies: 3 comments 3 replies
-
Awesome! |
Beta Was this translation helpful? Give feedback.
-
This is pretty neat! I have a question: On evaluating the demo code, the bond lines did not appear as it does in your screenshot. Just out of curiosity was wondering if there's any size of the spheres/bond lines that need to be set? Here's what I see: |
Beta Was this translation helpful? Give feedback.
-
I would like to modify the engine to be able (for example) to select individual atoms with a mouse click (and possibly display a dialog box next to it with help from the periodic table of elements). I see that there are all the prerequisites for this - dialog boxes, ability to move elements, etc., but I'd like to understand how I can match the coordinates of the mouse pointer to the area of the displayed element Where should I start? |
Beta Was this translation helpful? Give feedback.
-
Just for fun I wrote some code to parse and render molecular structures. It can read in
.xyz
and.mol
files.The code is in
src/plugins/molecule.lisp
with demos intest/demo-misc.lisp
.I got my start in 3D graphics back in the 80's when I got a summer job at Xerox Research Centre of Canada (XRCC) to write a package for rendering molecular graphics. I wrote my first ray tracer there (in Fortran running on a DEC VAX 11/750), so this was a bit of a trip down memory lane:
https://medium.com/@kaveh808/8-summer-at-xerox-in-24-bit-color-74ad465a07be
Below is a caffeine molecule.
Beta Was this translation helpful? Give feedback.
All reactions