From: Marc-antoine Kruzik on
Hello, I'm french, sorry for my mistakes.

I would like to do 3D with Ruby.

I tried Ogre.rb, but this project requires a lot of other gems to be
installed, and there are still some files missing. Can't I just download
a ready-to-use sample ?
It's a lot of work to install all these files and I'm not even sure it
will be working at last.


So, I'm looking for the easiest way to use a 3D library with Ruby.
Not especially Ogre.rb, because I just want to do 3D with Ruby. Any 3D
library will be ok. :)
--
Posted via http://www.ruby-forum.com/.

From: Jason Roelofs on
[Note: parts of this message were removed to make it a legal post.]

On Tue, Jan 12, 2010 at 8:21 AM, Marc-antoine Kruzik
<kadelfek(a)kadelfek.com>wrote:

> Hello, I'm french, sorry for my mistakes.
>
> I would like to do 3D with Ruby.
>
> I tried Ogre.rb, but this project requires a lot of other gems to be
> installed, and there are still some files missing. Can't I just download
> a ready-to-use sample ?
> It's a lot of work to install all these files and I'm not even sure it
> will be working at last.
>
>
> So, I'm looking for the easiest way to use a 3D library with Ruby.
> Not especially Ogre.rb, because I just want to do 3D with Ruby. Any 3D
> library will be ok. :)
> --
> Posted via http://www.ruby-forum.com/.
>
>
Ogre.rb is not at all ready for use right now, but other than my work there
I don't know of any workable Ruby wrapper to a 3D engine.

If you're looking to just work with 3D yourself, there's always straight
OpenGL, and a few Ruby wrappers around that library. When you say "do 3D
with Ruby", what kind of project are you looking to build?

Jason

From: Brian Candler on
Marc-antoine Kruzik wrote:
> Hello, I'm french, sorry for my mistakes.
>
> I would like to do 3D with Ruby.
>
> I tried Ogre.rb, but this project requires a lot of other gems to be
> installed, and there are still some files missing. Can't I just download
> a ready-to-use sample ?
> It's a lot of work to install all these files and I'm not even sure it
> will be working at last.
>
>
> So, I'm looking for the easiest way to use a 3D library with Ruby.
> Not especially Ogre.rb, because I just want to do 3D with Ruby. Any 3D
> library will be ok. :)

The GL gears example exists for ruby (gears.rb). I have a copy lying
around, and it still runs. You should be able to find it through Google.

Comments in source say:

# 2005-05-01 Ruby version by Arto Bendiken based on gears.c rev 1.8.
# 2005-01-09 Original C version (gears.c) by Brian Paul et al.
# http://cvs.freedesktop.org/mesa/Mesa/progs/demos/gears.c?rev=1.8
--
Posted via http://www.ruby-forum.com/.

From: Marc-antoine Kruzik on
Jason Roelofs wrote:
> Ogre.rb is not at all ready for use right now, but other than my work
> there
> I don't know of any workable Ruby wrapper to a 3D engine.

Yes, I found so few informations about that... I heard about Scattered
Ruby.
I know someone (Dem0nfire) who succeed to use Irrlicht with Ruby (and
RPG Maker) :

http://www.hbgames.org/forums/viewtopic.php?f=179&t=64022&hilit=irrlicht
(click spoilers to see screenshots)

But it's still work in progress.


> If you're looking to just work with 3D yourself, there's always straight
> OpenGL, and a few Ruby wrappers around that library. When you say "do 3D
> with Ruby", what kind of project are you looking to build?

Create cubes with textures, some houses. I am a 2D games programmer, so
I would work a bit in 3D. I created a 3D graphical engine from a 2D
library. But using a real 3D library will be better.

I remember OpenGL is a bit strange to me, because of the vertex system.
But there are many tutorials and informations about OpenGL, so I think
it could be the better choice.


Thank you two for your advices.
--
Posted via http://www.ruby-forum.com/.

From: brabuhr on
On Tue, Jan 12, 2010 at 8:55 AM, Brian Candler <b.candler(a)pobox.com> wrote:
> Marc-antoine Kruzik wrote:
>> So, I'm looking for the easiest way to use a 3D library with Ruby.
>> Not especially Ogre.rb, because I just want to do 3D with Ruby. Any 3D
>> library will be ok. :)
>
> The GL gears example exists for ruby (gears.rb). I have a copy lying
> around, and it still runs. You should be able to find it through Google.

I was just looking at this last week:

http://github.com/remogatto/ffi-opengl