Hi,
I’m new to jogl and 3d programming. I’m not trained as a programmer, but have taught myself java.
I hope this is the right forum, as I’m not building a game, but here is my query.
I have built an application to visualise atoms sticking to a surface. I need to read in data from a text file which contains the coordinates of the atoms both on the surface and the ones sticking to the surface. The surface atoms don’t move, but the atoms sticking to the surface change from one frame to the next. There are several thousand frames to illustrate for a complete set of reactions and a few tens of atoms (not including atoms on the surface) to illustrate for each frame. I simply use glutSolidSphere to draw a sphere for each atom.
My problem is that I am trying to read data in from a text file, use that data to place spheres at a particular point on the scene, redraw the scene and use the mouse to move around the scene all at the same time, and I’m clearly doing it very badly. Changing from one frame to the next is very slow, and the application often freezes when I use the mouse to move around the screen.
I appreciate you will need more detail on what I have done to help me, so I will happily add any details you may requre!
Thanks in advance,