From: John Kelso (kelso++at++nist.gov)
Date: 02/08/2004 19:31:54
Hi,
I'd like to add some extra information to Steve's post. After some
investigation we've discovered that the "vz" files are displayed correctly
only in the first window. They can be displayed correctly in multiple
viewports in that window, with each viewport having a different channel
offset, but everything after the first window is incorrect. In our case,
our RAVE's first window happens to be the front wall, on pipe 0, so that's
why it appears correct.
Below is a small program I wrote which illustrates the problem- it's just
generic Performer code to display an object in two windows:
/////////////////////////////////////////////////////////////////////
#include <signal.h>
#include <Performer/pf.h>
#include <Performer/pf/pfPipe.h>
#include <Performer/pf/pfPipeWindow.h>
#include <Performer/pf/pfScene.h>
#include <Performer/pf/pfLightSource.h>
#include <Performer/pf/pfChannel.h>
#include <Performer/pfdu.h>
void signal_catcher(int sig) {
pfExit() ;
}
int main(int argc, char *argv[]) {
if (argc<=1) {
fprintf(stderr,"Usage: %s file [file ... ]\n",argv[0]) ;
return 1 ;
}
signal(SIGINT, signal_catcher);
pfInit() ;
int i ;
for (i=1; i<argc; i++)
pfdInitConverter(argv[i]) ;
pfConfig() ;
pfScene *scene = new pfScene() ;
pfLightSource *light = new pfLightSource() ;
scene->addChild(light) ;
pfFilePath("/usr/share/Performer/data") ;
for (i=1; i<argc; i++)
scene->addChild(pfdLoadFile(argv[i])) ;
pfVec3 xyz = pfVec3(0.0f, -20.0f, 0.0f) ;
pfVec3 hpr = pfVec3(0.0f, 0.0f, 0.0f) ;
pfPipe *pipe = pfGetPipe(0) ;
pfChannel *chan1 = new pfChannel(pipe) ;
chan1->setScene(scene) ;
chan1->setView(xyz, hpr) ;
pfPipeWindow *win1 = new pfPipeWindow(pipe) ;
win1->setName("foo") ;
win1->setOriginSize(0, 0, 500, 500) ;
win1->addChan(chan1) ;
win1->open() ;
pfChannel *chan2 = new pfChannel(pipe) ;
chan2->setScene(scene) ;
chan2->setView(xyz, hpr) ;
pfPipeWindow *win2 = new pfPipeWindow(pipe) ;
win2->setName("bar") ;
win2->setOriginSize(510, 0, 500, 500) ;
win2->addChan(chan2) ;
win2->open() ;
while (1) {
pfFrame() ;
}
return 0 ;
}
/////////////////////////////////////////////////////////////////////
I run it with the names of files to load as command line arguments. I
loaded windmill.iv and the head. The head is loaded as "simple.vz" from
/usr/share/Volumizer2/data/XML
I can send you an image of a screen dump if you'd like to see how it
looks. The screen on the left looks good, the screen on the right has a
solid white block where the volumetric data should be.
Will someone please, please, please answer or comment on our questions?
I'd be pleased to find out I'm doing something dumb, as long as it fixes
the problem.
Also, what's happened to the Volumizer email list? I see my posts on the
Performer list, but the Volumizer list seems to be dead.
Many thanks,
-John
On Sat, 7 Feb 2004, Steve Satterfield wrote:
> Hi,
>
> We are using the .vz loader to combine Volumizer data in a Performer
> application. The file works properly when loaded with Perfly.
> Our Performer application displays on three IR4 pipes in an immersive
> visualization environment (two walls and a floor). The problem is that the
> Volumizer data only displays on IR pipe 0. The other two pipes correctly
> show the other data loaded with other Performer loaders, but the .vz data
> only displays on Pipe 0.
>
> I have a feeling it might be related to the configuration of mpk software
> used in conjunction with Volumier. My mpk and Volumizer installation is
> the default inst, see below.
>
> Does anyone have any suggestions on where to start looking for a solution?
>
> Thanks,
> Steve
>
>
>
> visage:~: versions -b | grep -i Volumizer
> I Volumizer2_data 12/15/2003 OpenGL Volumizer 2.5 Sample Data Files
> I Volumizer2_dev 12/15/2003 OpenGL Volumizer 2.5 Development Environment
> I Volumizer2_eoe 12/15/2003 OpenGL Volumizer 2.5 Execution Environment
>
> visage:~: versions -b | grep mpk
> I mpk_dev 12/18/2003 OpenGL Multipipe SDK Library Development Environment, 2.1.1
> I mpk_eoe 12/18/2003 OpenGL Multipipe SDK Library Execution Only Environment, 2.1.1
>
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
>
>
This archive was generated by hypermail 2b29 : Sun Feb 08 2004 - 19:34:30 PST