RE: info-performer Jan 10 2001

New Message Reply Date view Thread view Subject view Author view

From: Kien++at++ivlab
Date: 01/11/2001 23:39:14


hi,

anybody tried performer 2.4 on linux 7?
there seem to be so much incompatibility...?
and whenever i start perfly or any sample, there's just this "PFxxx near to
heap.." error message.

any idea anyone?

thanks for your help!
kien

-----Original Message-----
From: info-performer Mailing List [mailto:info-performer++at++sgi.com]
Sent: Thursday, January 11, 2001 2:00 AM
To: allan++at++holodeck.engr.sgi.com
Subject: info-performer Jan 10 2001

Welcome to the info-performer mailing list DIGEST for January 10 2001

List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
    Send Submissions to: info-performer++at++sgi.com
    Add/Remove requests: info-performer-request++at++sgi.com

Message Subjects:

    ipf2pf OpenGLShader to performer shader conv
    Re: Inventor file weirdness
    Re: FW: ipf2pf OpenGLShader to performer shader conv
    Multiprocessing on pfLinux 2.4

****************************************************************************
**

 From: Guillaume Millet <millet++at++oktal.fr>
 Date: Wed, 10 Jan 2001 11:00:43 +0100
 Subject: ipf2pf OpenGLShader to performer shader conv

Hello,

I have OpenGL SDK 2.0 on IRIS and Performer 2.4 on Linux.

In the Performer documentation, there is a reference to a tool : ipf2pf
for using ISL Shader with pfShader.

I cant find this tools in either OGL Shader SDK or Performer.

Does anybody have information about it.

Thanks,

****************************************************************************
**

 From: Keith Parkins <kparkins++at++cs.rochester.edu>
 Date: Wed, 10 Jan 2001 14:39:00 -0500 (EST)
 Subject: Re: Inventor file weirdness

Marcin,

The geostate is added to the geoset. Here is the code immediately
following what was previously sent:

  /* create the geoSet with proper shape */
  switch(shape) {
  case OBJ_SPHERE:
    geoSetPtr = pfdNewSphere(OBJECT_NTRIS, arena);
    break;
  case OBJ_CUBE:
    geoSetPtr = pfdNewCube(arena);
    break;
  case OBJ_CYLINDER:
    geoSetPtr = pfdNewCylinder(OBJECT_NTRIS, arena);
    break;
  case OBJ_PIPE:
    geoSetPtr = pfdNewPipe(1.0, 1.0, OBJECT_NTRIS, arena);
    break;
  case OBJ_CONE:
    geoSetPtr = pfdNewCone(OBJECT_NTRIS, arena);
    break;
  case OBJ_PYRAMID:
    geoSetPtr = pfdNewPyramid(arena);
    break;
  default:
    printf("Error: uknown object type, defaulting sphere \n");
    geoSetPtr = pfdNewSphere(OBJECT_NTRIS, arena);
    break;
  }
  pfGSetGState(geoSetPtr, gStatePtr);
  pfAddGSet(geodePtr, geoSetPtr);
  pfAddChild(dcsPtr, geodePtr);

Do I need to call pfDrawGSet() after this? Also do you have any idea why
the apple inventor file (one of the inventor_eoe.data files) comes up as
white when you open it with perfly, but comes out red when you open it
with ivview?

Thanks for the help!
Keith

On Tue, 9 Jan 2001, Marcin Romaszewicz wrote:

>
> Hi Keith,
>
> In Performer, the only way objects could change color like this is if
> they're missing a geostate and end up inheriting the state of the object
> drawn before them. The reasons that colors change is that state sorting
> works out differently when objects go in and out of view and different
> objects are drawn before the geostate-less objects.
>
> In your email, you show sample code which creates a
> geostate with a material for your cylinders. Are you sure that you've
> applied this geostate to the cylinder geosets? If you have added the
> geostates to the cylinders and you are still seeing the problem, you've
> found a bug, in which case please contact me directly.
>
> -- Marcin
>
>
> On Tue, 9 Jan 2001, Keith Parkins wrote:
>
> > When I load in the apple.iv file with perfly, the object comes up as
white
> > instead of red. Is there a way to fix this?
> >
> > A further manifestation of this problem (I believe) is that when I load
a
> > number of inventor files into my world and generate some generic
> > cylinders, the colors of the cylinders change as I change my
> > position. When the inventor files aren't loaded, the colors behave as
> > expected. The material and lighting for the generated cylinder is setup
as
> > follows:
> >
> > pfMtlColorMode(materialPtr, PFMTL_FRONT, PFMTL_CMODE_OFF);
> > pfMtlColor(materialPtr, PFMTL_DIFFUSE,
> > obj_colors[color][0], obj_colors[color][1],
> > obj_colors[color][2]);
> > pfMtlColor(materialPtr, PFMTL_SPECULAR, 0.0, 0.0, 0.0);
> > pfMtlColor(materialPtr, PFMTL_AMBIENT, 0.0, 0.0, 0.0);
> > pfMtlShininess(materialPtr, 10.25f);
> > pfMtlAlpha(materialPtr, 1.0);
> >
> > /* create the gstate and select the proper material */
> > gStatePtr = pfNewGState(arena);
> > pfGStateMode(gStatePtr, PFSTATE_ENLIGHTING, PF_ON);
> > pfGStateMode(gStatePtr, PFSTATE_TRANSPARENCY, PFTR_ON);
> > pfGStateAttr(gStatePtr, PFSTATE_FRONTMTL, materialPtr);
> >
> > Has anyone had a similar problem? Any ideas as to how to fix this?
> >
> > Thanks!
> > Keith
> >
> > -----------------------------------------------------------------------
> > List Archives, FAQ, FTP: 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
> >
>
>

Keith Parkins U of R Computer Science
kparkins++at++cs.rochester.edu Computer Science Building, Room 606
(716)275-1118

****************************************************************************
**

 From: Marc Olano <olano++at++helasco.engr.sgi.com>
 Date: Wed, 10 Jan 2001 14:04:41 -0800
 Subject: Re: FW: ipf2pf OpenGLShader to performer shader conv

> I have OpenGL SDK 2.0 on IRIS and Performer 2.4 on Linux.
>
> In the Performer documentation, there is a reference to a tool : ipf2pf
> for using ISL Shader with pfShader.
>
> I cant find this tools in either OGL Shader SDK or Performer.

It's in /usr/share/Performer/src/tools. If can't find it, make sure
you have performer_dev installed. Specifically, it's part of
performer_dev.src.sample.

Marc

****************************************************************************
**

 From: "DANIEL BASS" <BASSD++at++aaicorp.com>
 Date: Wed, 10 Jan 2001 19:33:37 -0500
 Subject: Multiprocessing on pfLinux 2.4

I just installed performer 2.4 on my Linux box (Dell 2x800Mhz PIII, nVidia =
GeForce 2 Ultra, RH 6.2, XFree86 4.0.2)
and I have a few newbie questions about multiprocessing.

There are references to using routines in ulocks.h (usnewlock, ...) for =
controlling access to shared memory,
but I don't seem to have man pages on these routines. Where can I find =
said man pages?

I've done some multi-processing coding, but not with Performer. I =
understand that pfConfig will fork() off=20
the secondary processes. Am I correct that the main process retains the =
APP phase (and whatever is not
forked)? Do I need to have code after the pfConfig for the forked =
processes to identify themselves and
do something different? I confess I have not had a chance to look at the =
included demos or the FOP demos.
Are any of these particularly illustrative of handling multiprocessing =
issues?

Thanks,

--daniel

****************************************************************************
**


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jan 11 2001 - 07:42:09 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.