Dear Monks,

This may be more of an OpenGL question than a Perl-question, but...

I am currently using the Perl OpenGL-0.55 module to draw a 3-D representation of some (or actually a lot of) data. Because crunching the data for a single frame takes a couple of minutes, I capture the frames using glReadPixels_p and write them to PNG files. This works fine as long as the window is not obscured. However, I'd obviously prefer to render to an off-screen buffer so I can keep working while the script is running.

I know this should be possible, but documentation on how to do this with the Perl bindings seems to be non-existent. My attempts to port example code from C all fail because the functions used (mostly GLX pixmaps or SGI pbuffers) do not seem to exist in Perl OpenGL.

Is there any Perl OpenGL guru here who can point me in the right direction?

-Levien


In reply to Perl OpenGL offscreen rendering? by levien

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.