glut documentation and pseudoclouds in OpenGL

Started by
1 comment, last by AIRmichael 17 years, 6 months ago
Hi!!! well first of all, where can i find GLUT documentation with all the commands, and second, i have been given a case study to complete in which i just have to make a pseudorandom clouds of dots. The dots could be generated with random() function of C++ but i have to make my own RNG(Random Number Generator) for generating the dots. Any idea on how can i make my own RNG??? Thnx... and ya,, any good and easy book on openGL???
Advertisement
Try www.opengl.org under GLUT.
To generate completely random numbers, use the system timer to make your own generator, or use random_s() if you're using MSVC2005 wich does that for you.

Alternatively, pick the current time, make some wierd calc, and put it on a randseed(). Then generate the numbers you want and change the seed as you wish.
Education is the progressive discovery of our own ignorance.
What I know about random numbers, is that they are generated useing PI and time. I am not sure how to do it at the moment, but it has to do with just walking along PI and get the decimal out of it for that moment.

Greetings, Mic

This topic is closed to new replies.

Advertisement