bcarroll has asked for the wisdom of the Perl Monks concerning the following question:

I would like to be able to display and animate a 3D model via perl.

I have looked at POGL, SDL and some other perl modules, but I can't seem to find anything that can use a 3D model (like something exported from Maya, 3DS Max, etc...)

Is it even possible to render a 3D model using perl?

Replies are listed 'Best First'.
Re: Working with 3D models in perl...
by BrowserUk (Patriarch) on Mar 05, 2012 at 19:12 UTC

    Did you see:

    SDL::Tutorial::3DWorld::3DS provides a basic implementation of a 3DS file parser. Given a file name, it will load the file and parse the contents directly into a compiled OpenGL display list. The OpenGL display list can then be executed directly from the 3DS object. The current implementation is extremely preliminary and functionality will be gradually fleshed out over time. In this initial test implementation, the model will only render as a set of points in space using the pre-existing material settings.

    Seems to be early days yet.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

Re: Working with 3D models in perl...
by Discipulus (Canon) on Mar 06, 2012 at 12:41 UTC

    i was fascinating by this topic some years ago and i found this http://www.perl.com/pub/2004/12/01/3d_engine.html i remember it worked: i looked at 3d models on my screen!! but I remember as a pain get OpenGL and SDL works correctly (in win32 too)
    there are no rules, there are no thumbs..
Re: Working with 3D models in perl...
by TJPride (Pilgrim) on Mar 05, 2012 at 19:09 UTC
    I would guess not. Is there any way to tie Flash or a small application into your program? Maybe by way of bringing up a web browser window.
      My original thought was something that didn't rely on external programs (Web Browser, 3D software, etc...), but I am really open to anything that will work.