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

been searching high and low for a perl and opengl/glut/glu/etc module with cool opengl style widgets (win32 platform). only found one perl opengl module with widgets, and they look worse than standard perl/tk or other perl gui widgets.
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re: OPENGL perl widgets
by wazoox (Prior) on Apr 11, 2006 at 13:24 UTC
    You're probably looking for TK::Zinc ... Tk:Zinc looks great and use OpenGL. You can also install it from CPAN directly :Tk::Zinc (but I suppose you'd better download the windows binaries instead).
      thanks heaps...tkzinc is ace, and incidentally i've been looking for such a change in gui's in general. rectangles with a picture/text to click on don't cut it for me anymore. cheers.
      the hardest line to type correctly is: stty erase ^H
Re: OPENGL perl widgets
by zentara (Cardinal) on Apr 11, 2006 at 16:34 UTC
    Zinc supports OpenGL for rendering things, but it is still 2d only. You might want to look at SDL, it has some cool 3d demos that run on linux, I'm not sure how the win32 port runs.

    I'm not really a human, but I play one on earth. flash japh
      Yes...some of the modules "support" OPENGL, but don't do OPENGL a great service. with all the mind blowing graphics available in OPENGL...is there even one widget set that uses OPENGL features to make the widgets look good?
      the hardest line to type correctly is: stty erase ^H
        I think we are a pc-generation away from easy-to-use-and-widespread 3d graphics, I read that the new versions of MSWindows will have a 3d desktop (but only if your computer can handle it). Most can't.

        It would be nice to have a straight forward 3d language, where you initialize with an x,y,z dimension, then have simple statements like

        my $space = Space->new( -x => [-1000, 1000], -y => [-1000, 1000], -z => [-1000, 1000] ); my $sphere = $space->new('Sphere', -origin => [2,2,2], -radius => 5, -fill => #abcdef, -transparency => .30, -azimuth => .5 )->pack;
        And it will come, but not until we all have $1000 graphics cards( by today's costs ), and bigger memory and processors. Until then, real 3d will exist only in high end speciality equipment, with their own special languages. Sure you can hack around with SDL and PDL with 3d extensions, but it is only a toy compared to what it should(could) be. Look at what it takes for the movie houses to make 3d movies. They have a room full of highpowered computers, all networked, and it takes them days to produce a few useful frames. I think they use assembly language for all the computations and manipulations.

        I'm not really a human, but I play one on earth. flash japh
Re: OPENGL perl widgets
by aquarium (Curate) on Apr 11, 2006 at 12:55 UTC
    in fact i'm having trouble finding any opengl worthy widgets at all...to build applications with a great looking GUI
    the hardest line to type correctly is: stty erase ^H