3d-model import

Does anyone know how far OpenGL for Ruby is developed and if it’s
possible to import for examle .dxf oder .3ds files?
I’m relatively new to Ruby and haven’t found much stuff about 3d in
Ruby. Should I change to Java or C for complexe 3d developement?

On 10/15/06, javra [email protected] wrote:

Does anyone know how far OpenGL for Ruby is developed and if it’s
possible to import for examle .dxf oder .3ds files?
I’m relatively new to Ruby and haven’t found much stuff about 3d in
Ruby. Should I change to Java or C for complexe 3d developement?

There’s a Ruby OpenGL binding that works, but it’s a little behind
version-wise (though it’s under development).

Also though, it’s of course not the job of the binding to provide
utilities for dealing with the various file formats. There might be
projects on RubyForge dealing with those various formats.

If you’ll be working with OpenGL, you might consider keeping one foot
in C anyway (regardless of what high level language you write most of
your code in). This way, you can write your software with Ruby, and
then after profiling it, if you like, you may fairly easily rewrite
performance-critical portions of it as Ruby extension modules (written
in C).

—John

javra wrote:

Does anyone know how far OpenGL for Ruby is developed and if it’s
possible to import for examle .dxf oder .3ds files?
I’m relatively new to Ruby and haven’t found much stuff about 3d in
Ruby. Should I change to Java or C for complexe 3d developement?

I’ve got a project for reading LightWave object files on Rubyforge, so
if you can do .3DS/.DXF to .LWO then that would work. It’s somewhat
incomplete (it was spawned from a prototype converter to a format with
lots of functionality missing), but I wouldn’t be averse to expanding it
if that would make it more useful to you.

If you feel adventurous, you could have a look at
http://lib3ds.sourceforge.net/ - I don’t know of a Ruby wrapper to it,
but SWIG tends to be good for these sorts of things :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs