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?

    Thanks

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

    mgb_phys

    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Drawing Molecules using openGL?
  1. OpenGL for physics (Replies: 6)

Loading...