From: Dorosky, Christopher G (christopher.g.dorosky++at++lmco.com)
Date: 09/16/2003 08:32:22
No fluxing is necessary.
Changing the size of the array might cause the crash.
Make sure you specifically set the MP mode to single process.
Maybe it is forking something on you, in which case fluxing could come
into play.
My guess is that the pointer that you are getting for the colours is
bogus.
Try printing out the address when the colour array is pfMalloced, then
in the cull callback.
Make sure it is the same. If not, therein lies your problem.
If that isn't the case, make sure you aren't writing out of bounds.
Good Luck,
Chris
-----Original Message-----
From: Anthony Clare [mailto:a.j.clare++at++sheffield.ac.uk]
Sent: Tuesday, September 16, 2003 9:17 AM
To: Performer mailing list
Subject: [info-performer] Dynamic pfGeoSet attributes
Hi,
I am trying to change terrain polygon colours dynamically at run-rime,
using a post cull callback. My program always crashes when writing a new
colour value to the attribute array. I had assumed that as I have a
single
process (on a single processor machine) that I did not need to use
pfFluxes
to do this. Should I be using pfFluxes even in a single process app?
If pfFluxes are required does anyone have an idea how I could neatly
keep
track of the pfFlux pointers when using a terrain database of unknown
size
(with an unkown no. of geosets)? I'm afraid I've been spoon feed on Vega
with the function calls, vgObjFluxMask and vgObjFlux, allowing a single
pfFlux pointer to the whole terrain.
Thanks,
Tony.
_________________________________________________
Anthony Clare
Department of Automatic Control and Systems Engineering
The University of Sheffield
www.shef.ac.uk/acse/
a.j.clare++at++sheffield.ac.uk
_________________________________________________
-----------------------------------------------------------------------
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 : Tue Sep 16 2003 - 08:35:14 PDT