I’m having a problem. I’m trying to create a sphere, but I want to specify the coordinates, and I can’t seem to figure out how to do it. Any suggestions?
I have abused every search engine I know of, but with no results.
Here’s the big picture. I am trying to model particles in a system, and I have a data file with all of the coordinates of the particles at various points in time. So, I need to draw several hundred (thousand, million) tiny spheres, and be able to specify WHERE they’re located at each time step.
I wrote a skydome algorithm and since a sky dome is only half a sphere, the other half you can draw by negating the Y values of the coordinate data you have… Take a look at my algorithm and you will see how you can generate the coordinates for a sphere… http://cheo.resnet.wayne.edu/miguel/
Miguel Castillo
Originally posted by idistrust:
[b]Hi there.
I’m having a problem. I’m trying to create a sphere, but I want to specify the coordinates, and I can’t seem to figure out how to do it. Any suggestions?
I have abused every search engine I know of, but with no results.
Here’s the big picture. I am trying to model particles in a system, and I have a data file with all of the coordinates of the particles at various points in time. So, I need to draw several hundred (thousand, million) tiny spheres, and be able to specify WHERE they’re located at each time step.
Wouldn’t it be a waste to draw thousands of spheres ?, if you need that many I think you could get the same result by drawing antialiased GL_POINTS, just an idea.