Hi all,
As most on this site I am brand new to OpenGL, and a project requires that I pick a constellation of stars to visualize on the screen. I have all of the points plotted and the lines connected at my verticies and it looks fine. I am having trouble with scattering all of the other stars (maybe 100 or so of different sizes) randomly.
We were told that we could use this code:
int random(int m)
{
return rand()%m;
}
I guess my question is where would this go in the program and how would I generate my 100 random dots to represent my stars.
Thanks,
1nuprogrammer



