Re: pfSwitch / pfMemory error messages ...

New Message Reply Date view Thread view Subject view Author view

Marcus Barnes (marcus++at++multigen.com)
Sun, 24 Nov 1996 20:29:42 -0800


On Nov 23, 8:57am, Gordon Tomlinson wrote:
> Subject: Re: pfSwitch / pfMemory error messages ...
>
> >=> note pfSwitch::cull() Bad switch value 0 indexes out of range 0, 0
> > ( Error 0 )
>
> Are you changing children yourself ?
>
> You will find that Multigen Places a Node above your switch children
> and after the switch node eg
>
> switch
> |
> Multigen Node
> |
> |
> / \
> / \
> child1 child n
>
> Thus if you are trying to switch you get this type of error message,
> you will have to restructure the tree to remove this Multgen node

The grouping that the OpenFlight loader does with switch children is _required_
in order to provide the OpenFlight switching logic once it's translated into
Performer. The effective mapping is (pseudo code):

        pfSwitch::setVal( SWITCHcb::switches[ val ] );

... anything else if something of an application error. The SWITCHcb structure
is declared in pfflt.h .

> also remember that indexing starts at 0 to n-1 not 1 to n

Yes.

Regards.

--
+ Marcus Barnes, Technical Staff        mailto:marcus++at++multigen.com +
+ Multigen Inc.                         http://www.multigen.com    +
+ 550 S. Winchester Blvd.               phoneto:1-408-556-2654     +
+ Suite 500 San Jose CA 95128           faxto:1-408-261-4102       +
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:00 PDT

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