I really don't like asking such a question but I need a simple example for perl opengl. Normally I am writing a protein folding program with perl and perl PDL. It has a user interface for commands but not a graphics interface for displaying the model program uses (it is not like the normal atomistic models, lets say it is more geometric). I tried to use PDL modules but I could not get PGPLOT or TriD to work. I am still trying on it. I can very easily do what I want in matlab in like 10 seconds but I wont be able to distribute it with my program. All I am left to is hardcore opengl module in perl with no what soever knowledge on opengl. All I ask is tell me how to draw cylinders and sphere using commands like gluSphere(), plot them. And also I want to deform the coordinates of sphere so that I can transform them into sphere. That would be how can I multply the y or x or z coordinates of vertices defining such a created object? Or have can I apply rotation matrices to the vertices of an objected created in such a way. I am still looking for tutorials on the web but I dont really have much time to lose on this and I dont want to do it in matlab. I have looked to few samples and tutorials in POGL page but they all seem to use vertices not predefined objects in glu. Thanks...

In reply to Perl Opengl Question by Anonymous Monk

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.