From: William Sherman -Visualization (wsherman++at++ncsa.uiuc.edu)
Date: 10/21/2002 12:26:57
Hello Performers,
I have an unusual question: Does anyone one if it's possible to
get Performer to work with Mesa?
Why, do you ask? Well, I'm creating some very simple example
applications for a tutorial, and I'm doing a lot of work at
home, where I've been using VNC to display X windows from
machines at work to my display at home. And with my OpenGL
example, Mesa seems to be the way to go. However, I have a
problem when I try the same trick with Performer.
Here is the error message I get:
! PF Warning/Internal: pfWindow::openNewNoPort() - null visual.
! PF This can happen if IRIX has placed the shared memory area too close to the heap.
! PF Try in your shell: setenv PFSHAREDBASE 0x18000000
! X Error of failed request: BadValue (integer parameter out of range for operation)
! Major opcode of failed request: 78 (X_CreateColormap)
! Value in failed request: 0x0
! Serial number of failed request: 10
! Current serial number in output stream: 12
Of course the setenv suggestion doesn't work. It's the "null visual" thing
that is probably the trouble. But I don't know if there are any options
I can use at runtime to select a workable visual. My example is using
only the libpr-rendering code, and can be recreated with the following
short program:
main()
{
pfInit();
pfInitState(NULL);
pfWindow *win = new pfWindow;
win->setWinType(PFWIN_TYPE_X);
win->open();
}
Call that "minimal.c++" and compile with:
% CC -g -n32 -o min minimal.c++ -lpf_ogl \
/usr/local/Mesa-4.0.2/lib32/libGL.a -lXext -lX11 -lm
[or whereever your copy of Mesa resides]
I've been testing on an Onyx2 with IRIX 6.5 (10100655).
NOTE: sometimes the window border appears, sometimes not, but the error
is always the same. I guess there must be a race condition that determines
whether it crashes before the window border has a chance to pop up.
Thanks for any help that can be provided,
Bill
-- Bill Sherman VR Impresario & co-author "Understanding Virtual Reality" NCSA Virtual Environments Group wsherman++at++ncsa.uiuc.edu
This archive was generated by hypermail 2b29 : Mon Oct 21 2002 - 12:27:15 PDT