On 3/24/2012 10:02 AM, zentara wrote:
On Fri, 23 Mar 2012 08:27:00 -0400
Chris Marshall<[email protected]>  wrote:

The x11 specific support in TriD is deprecated and
unsupported but I believe it still works with PDL-2.4.10.

The catch is that ongoing TriD  and OpenGL development
might not continue to work with that option.  Our work
going forwards is based on platform-neutral implementations.

Also, it would help me (the current TriD/OpenGL developer
if you could help debug the issue for your 64bit platform.

Cheers,
Chris

On Fri, Mar 23, 2012 at 7:23 AM, zentara<[email protected]>  wrote:

I'm just jumping in here, but on my 64-bit linux
laptop, I had to edit the perldl.conf to get
TriD to build by  setting the  POGL_WINDOW_TYPE
to x11.

Hi again Chris,

I traced the problem to
~/perl5/x86_64-linux-thread-multi/PDL/Graphics/OpenGL/Perl/OpenGL.pm

From Googling for the error:
gdriver: window_type =>  'glut' so not actually setting the rasterfont

This is not the problem.  The is just an info
message printed out because you requested debugging
information be printed for TriD using $PDL::debug_trid.

I collected the log for a win32 PDL-2.4.10 and a cygwin
PDL-2.4.10 for the line3d.pl code with the uncommented
diagnostic lines using a line like this:

  perl line3d.pl >line3d_log.txt 2>&1

where you would need to use -Mblib if you are trying
a new build of PDL using 'glut' windows rather than
forcing 'x11'.

For both runs, I get the same stuff as you but where
you stop having output at the end, I continue with the
following messages as the window contents are rendered:

display: transforming viewport!
CALLIST !
CHECKVALID PDL::Graphics::TriD::ViewPort=HASH(0x1949600)
GENLIST 1
togl_axis: got object type PDL::Graphics::TriD::EuclidAxes
EGENLIST 1
VALID1 PDL::Graphics::TriD::ViewPort=HASH(0x1949600)
display: SwapBuffers() call on return
EVENT!
e= 22,300,300
CONFIGNOTIFE
reshape: resizing viewport to 0,0,300,300
EH: PDL::Graphics::TriD::EventHandler 22 (300,300)
ConfigureNotify (300,300)
viewport is PDL::Graphics::TriD::ViewPort=HASH(0x1949600)

This code is in GL.pm after line 918.  It looks like
you make it past or to the $vp->do_perspective() call
but you'll need to step through in the debugger to
isolate where things stop.  A neat trick is to add a line

  $DB::single = 1;

where you want to start stepping through in the GL.pm
file.  Then when you run line3d.pl under the debugger
and just run, the debugger will stop at that line and
let you single step from there.

--Chris

It seems you fixed this before, but it still dosn't work on
my standard linux version.

In sub new()

sub new {
    .....
    ....
    # $window_type ||= 'x11';
    # Use GLUT windows and event handling as the TriD default
    $window_type ||= $PDL::Config{POGL_WINDOW_TYPE};

    #$window_type ||= 'x11';          # use X11 default until glut code is ready

    print "$window_type\n";

##########################################################

If set window type in there to 'x11', everything works. My linux
version does not like the 'glut' window type.

Maybe there could be a switch in there, like
  if( $OS eq 'linux') { $window_type = 'x11'}


Thanks for looking at this again.
0m,
Joe













-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4891 - Release Date: 03/24/12





_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to