Larry Ramey (ramey++at++ccpo.odu.edu)
Mon, 22 Feb 1999 17:10:34 -0500
so imagine I am trying to turn nodes on and off. (actually it is a
light, but that is a node)
I am going to use
pfLightSource* _light = new pfLightSource;
_light->setTravMask(PFTRAV_CULL,?????,PF_SET);
I don't know what goes in ????????
0x0 for off
and
0xf for on
Is that right that I don't put a setMode arguement in the function call
if it isn't a ISECT traversal?
How exactly are these masks intended to be used? The book gives a short
explanation on ISECT masks but doesn't really go into why you should use
a mask as opposed to a callback.
Thanks
PS- has anyone else had problems with useing new for objects like
pfVec4??? It doesn't seem to agree with the documentation, if I don't
specify a memory area.....
pfVec3* larry = new pfVec3;
larry seems to be local (non shared) memory. If I use pfMalloc
(getSharedArena()) all the problems go away..... This is _NOT_ how the
man pages describe it working.
-- --------------------------------------------------------------- Larry E. Ramey ramey++at++ccpo.odu.edu 757-683-6276(office) 757-683-5335 (CAVE) "Count the heads man." - Zaphod Bebblebrox "Won't weigh you down, with good intentions" -Sarah McLachlan
This archive was generated by hypermail 2.0b2 on Mon Feb 22 1999 - 14:10:51 PST