Drawing Molecules using openGL?

  • Thread starter Thread starter pazmush
  • Start date Start date
  • Tags Tags
    Drawing Molecules
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 4K views
pazmush
Messages
32
Reaction score
0
So far I've managed to draw a sort of diamond structure but i want to put spheres on some of the connecting vertices, put figuring out the angles and distances is quite tough, i was wondering whether there was any way of moving a sphere along a connecting vertex line directly.

Any one any ideas?

Or has anyone ever modeled hexagonal ice using c++ before?

Thanks

Not sure if i was very clear though
 
Physics news on Phys.org
A good starting point for openGL is the NeHe tutorials http://nehe.gamedev.net/

Do you particularly need to use raw openGL? If you are doing this to learn openGL - great, but if you need to do the chemistry there are lots of toolkits on top of openGL that might make life easier.