Shiny balls with OpenGL

  • Thread starter Ilmari Heikkinen
  • Start date
I

Ilmari Heikkinen

Hi, anyone done interesting things with ruby-opengl?

Made some lit spheres: http://dark.fhtr.org/light2.rb
(needs ruby-opengl and glut)

Seems like it'd be quite feasible to use Ruby for managing the scene and
write the heavy drawing functions in C for speed. (Or precalc to display
lists)


Ilmari Heikkinen
 
B

Barry Sperling

Hi, I enjoyed it!
3 changes made it more comfortable for me to look at: I changed the
2nd parameter in gluLookAt (in set_camera() ) from 2.0 to 4.0 (the
y-coord of the eye) to back off and see the whole setup of the spheres.
Also, I divided the time value in set_camera() and draw_lights() by
10.0 to smooth out the animation.
Thanks for sharing the code!
Barry
 
J

James Adam

la, 2005-04-02 kello 00:44, James Adam kirjoitti:

Ehehe, it looks fun
Especially the bees(?) running around

Yeah - I particularly enjoyed creating the bees :)

- James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top