Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Shiny balls with OpenGL

4 views
Skip to first unread message

Ilmari Heikkinen

unread,
Apr 1, 2005, 1:14:07 PM4/1/05
to
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


Kent Loobey

unread,
Apr 1, 2005, 1:26:06 PM4/1/05
to
On Friday 01 April 2005 10:14 am, Ilmari Heikkinen wrote:
> Hi, anyone done interesting things with ruby-opengl?
>
> Made some lit spheres: http://dark.fhtr.org/light2.rb
> (needs ruby-opengl and glut)

Very cool!

Barry Sperling

unread,
Apr 1, 2005, 2:22:26 PM4/1/05
to
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

James Adam

unread,
Apr 1, 2005, 4:39:56 PM4/1/05
to
On 2005-04-01 19:14:07 +0100, Ilmari Heikkinen <k...@misfiring.net> said:

> Hi, anyone done interesting things with ruby-opengl?

I did some reasonably neat stuff for my PhD software using Ruby, C++
and OpenGL on OS X, you can have a look at a short video:

http://privatewww.essex.ac.uk/~jgadam/videos/before.avi

- James Adam

Ilmari Heikkinen

unread,
Apr 2, 2005, 5:35:59 AM4/2/05
to

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

James Adam

unread,
Apr 3, 2005, 5:01:16 PM4/3/05
to

Yeah - I particularly enjoyed creating the bees :)

- James

0 new messages