Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Dear Monks,

after an enervating installation-process including recompilation of gcc-2.95.3 to support f77 and several problems with lib-references and glx i finally succeeded in the installation of PDL v2.4.0 on my Linux-2.4.20-Athlon-System with perl, v5.8.0 built for i686-linux-thread-multi.

As a reward i now want to enjoy a visual pleasant 3D-Plot which i saw in a PC-journal. The plot should show a 3d-function in three partially coloured lattice-levels on top of each other.

#!/usr/bin/perl use strict; use warnings; use PDL; use PDL::Graphics::TriD; my $size = 25; # compute coordinates of the surface my $x = (xvals zeroes $size+1, $size+1)/$size; my $y = (yvals zeroes $size+1, $size+1)/$size; my $z = 0.5 + 0.5 * (sin($x*6.3) * sin($y*6.3)) ** 3; # coordinates determ color my $r=$x; my $g=$y; my $b=$z; # create 3d-plot imag3d [$x,$y,$z]; hold3d(); # ... colored surface above imag3d_ns [$x,$y,$z], [$r,$g,$b]; # ... colored lattice below lattice3d [$x,$y,$z-1], [$r,$g,$b];
Unfortunately all i get is
# perl pdl perl: error while loading shared libraries: /usr/local/lib/perl5/site_ +perl/5.8.0/i686-linux-thread-multi/auto/PDL/Graphics/OpenGL/ +: undefined symbol: gluOrtho2D
Any suggestions ?

thanks in advance, tos

p.s.: which documation would you recommend for piddle-newbies ?

In reply to PDL-problem: undefined symbol: gluOrtho2D by tos

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2022-11-26 12:37 GMT
Find Nodes?
    Voting Booth?