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...