Raoul Becke (rbecke++at++iiic.ethz.ch)
Mon, 12 Oct 1998 16:00:02 +0200 (MET DST)
On Thu, 8 Oct 1998, jason allen bryan wrote:
> hello all!
> i have a stumper for all the pfGuru's out there:
> while writing a small simulation in performer, i ran
> into some problems debugging pfVec3 and pfMatrix intensive
> code, specifically that code related to object placement
> and manipulation in a scene. it seems even the most basic
> operations on these class instances failed to function as
> expected. a pfVec3 would be initialized and work fine for
> one or two iterations, and then all of a sudden acquire
> illegal values for floating point numbers. normally i would
> assume a problem with my code. in this case, i was able to
> fix the problem by allocating a few more dummy pfVec3's
> before allocating those pfVec3's needed by the simulation.
> i.e.
> /* does not work */
> pfVec3 pos, vel, acc, ... etc
> pfMatrix orientation, ... etc
> void UpdateScene () {
> ... }
> ...etc
>
> /* works */
> pfVec3 dummy[3];
> pfVec3 pos, vel, acc, ... etc
> pfMatrix orientation, ... etc
> void UpdateScene () {
> ... }
> ...etc
>
> i know performer has a great deal of run-time library support
> and that dynamic allocation of some performer classes is tricky,
> if not impossible. it seems to me the problem lies in performer's
> management of its shared memory arena.
> has anyone experienced a problem similar to this? does anyone know
> the solution?
> the simulation is currently being designed to run on an Onyx or
> Onyx2, IRIX6.5, with performer2.2.
> thanks in advance to whomever responds!
>
> jason bryan
>
> Ohio Supercomputer Center
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2.0b2 on Mon Oct 12 1998 - 07:01:19 PDT