Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Drawing Molecules using openGL?

  1. Feb 17, 2009 #1
    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 modelled hexagonal ice using c++ before?


    Not sure if i was very clear though
  2. jcsd
  3. Feb 17, 2009 #2


    User Avatar
    Science Advisor
    Homework Helper

    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook