[info-performer] channel size when drawing into FLTK window - performer bug?

Date view Thread view Subject view Author view

Simon.Mills++at++esa.int
Date: 06/08/2005 00:45:30


Hi Performers,

Is this a bug or am I doing something wrong?

While trying to integrate Performer with the FLTK GUI library I noticed that
my channel size and so aspect ratio is not being set up correctly when I
direct Performer to use an FLTK GL window with pfPipeWindow::setWSWindow
and/or setWSDrawable. After creating the channel if I query channel size it
is 0, 0 and aspect ratio is 1.25 which seems to be a default size derived
from the X screen max dimensions (= 1280/1024). This results in slightly
squashed models since my window is square. This happens on IRIX 6.5 and Linux
where the effect is even more noticeable as I have a dual-head setup and
aspect ratio is there 2.5 (=2560/1024). Only when I _resize_ the window does
the channel size get refreshed and the aspect ratio is correctly recalculated
and my models appear correct.

I see this behaviour in my app, also a old FLTK-Performer demo program posted
by Don Burns that I found on info-performer archives, and even the standard
motif.C example. This makes me think it could be a bug.

Details: Performer 3.2 or 3.0, IRIX 6.5 and SuSE Linux 9.0.

Regards, Simon
_______________________________________________________________________

Simon Mills
Silicon Worlds S.A.
c/o Modelling & Simulation Section (TEC-SWM) Tel: +31 (0)71 565 3725
European Space Agency (ESA/ESTEC) Fax: +31 (0)71 565 5420
Postbus 299, 2200AG Noordwijk e-mail: Simon.Mills++at++esa.int
The Netherlands http://www.estec.esa.nl/wmwww/EMM
_______________________________________________________________________


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jun 08 2005 - 01:04:53 PDT