thank you Rob very much for uploading opengl 0.63 , now the examples run more smoothly, and i get rid of from strange hang out sometimes when running the examples using the beautiful 3D PDL::Graphics::TriD module here is an animated mandelbrot i copied from TriDGallery.PM in "C:\Perl\site\lib\PDL\Demos"
it is displaying an animated color mandel set like this :
http://img580.imageshack.us/img580/1223/mandel.png
indeed i have astonished by the versatile and deep features this PDL module has especially with its 2D and 3D features.
use PDL; use PDL::Graphics::TriD; #Color Mandelbrot animation nokeeptwiddling3d(); $a=zeroes 300,300;$r=$a->xlinvals(-1.5,0.5); $i=$a->ylinvals(-1,1); $t=$r;$u=$i; for(1..30){$q=$r**2-$i**2+$t; $h = 2*$r*$i+$u; $d=$r**2+$i**2; $a=lclip($a,$_*($d>2.0)*($a==0)); ($r,$i) = map{$_->clip(-5,5)}$q,$h; imagrgb[($a==0)*($r/2+0.75),($a==0)*($i+1)/2,$a/30]}; # [press 'q' in the graphics window when done] keeptwiddling3d(); twiddle3d();

regarding the error "Interface HASH(0X25C224) is not known!" i still get it even if i add
use PDL;
use PDL::Graphics2D;
use PDL::Graphics::PGPLOT::Window;
use PDL::Graphics::PGPLOT;
it gives the error at the line

my $w = PDL::Graphics2D->new($winopt);

if i use "PDL::Graphics::PGPLOT::Window" instead as the code below i get an error "Undefined subroutine &main::imag2d called at err.pl line 13"
use PDL; use PDL::Graphics2D; #imports imag2d() and twiddle() use PDL::Graphics::PGPLOT::Window; use PDL::Graphics::PGPLOT; my $winopt = {Device => "/GW", WindowWidth => 7, Aspect => 1}; #my $w = PDL::Graphics2D->new($winopt); my $w = PDL::Graphics::PGPLOT::Window->new($winopt); $a = sequence(64,48,3); # make test RGB image $a = $a->mv(2,0); # color must be dim(0) with size [0..4] $a /= $a->max; # pixel values in [0.0,1.0] $a = sin(10*$a); $w = imag2d($a);


it can be an ms windows specific problem, sure the developer get it working since the example is here :
http://kobesearch.cpan.org/htdocs/PDL/PDL/Graphics2D.html
so i will post to the pdl forum

thank you Rob for all your efforts.

In reply to Re^2: PDL questions by Anonymous Monk
in thread PDL questions 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.