Drawing Molecules using openGL?

  • Thread starter Thread starter pazmush
  • Start date Start date
  • Tags Tags
    Drawing Molecules
Click For Summary
The discussion centers around modeling a diamond structure with spheres at the vertices, focusing on the challenges of calculating angles and distances for accurate placement. The user seeks advice on moving a sphere along a connecting vertex line directly. Additionally, there is an inquiry about modeling hexagonal ice using C++. A suggestion is made to refer to the NeHe tutorials for OpenGL guidance. The conversation highlights the potential use of higher-level toolkits built on OpenGL, which may simplify the process if the primary goal is to model chemical structures rather than purely learn OpenGL.
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
 
Technology 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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K