Brad Colbert (bcolbert++at++ait.nrl.navy.mil)
Fri, 10 Oct 1997 09:45:27 -0400
I'm trying to use the pfuSmoke routines and seem to be having trouble
getting the eye argument for the pfuDrawSmokes call...
void pfuDrawSmokes (pfVec3 eye);
I've created a custom draw routine as follows...
void myDrawFunc (pfChannel *chan, void* data)
{
static pfVec3 eyept;
chan->clear ();
chan->getEye (eyept);
pfuDrawSmokes (eyept);
pfDraw();
}
I get a SIGBUS on the chan->getEye call? here is the trace...
Process 13924 (dbase) stopped on signal SIGBUS: Bus error (default) at
[pfFrustum::getEye(pfVec3&) const:3344 ,0x3fe45428]
Source (of ../../../lib/libpr/pfGeoMath.C) not available for Process
13924
(dbx) where
> 0 pfFrustum::getEye(pfVec3&) const(0x2, 0x1000de60, 0x1badbebe, 0x3ff3d794)
["../../../lib/libpr/pfGeoMath.C":3344, 0x3fe45428]
1 ::myDrawFunc(pfChannel*,void*)(chan = 0x18152930, data = (nil))
["/home/bcolbert/work/performerclass/labs-c++/dbase.C":82, 0x40482c]
2 pfChannel::pf_callDrawFunc(void)(0x18152930, 0x1000de60, 0x1badbebe,
0x3ff3d794) ["../../../lib/libpf/pfChannel.C":1808, 0x3fda82d0]
3 doDraw(pfChannel*)(0x18152930, 0x1000de60, 0x1badbebe, 0x3ff3d794)
["../../../lib/libpf/pfProcess.C":3792, 0x3fda6650]
4 NewTank = 0x18104250
appCullDraw(int)(0x0, 0x1000de60, 0x1badbebe, 0x3ff3d794)
["../../../lib/libpf/pfProcess.C":2426, 0x3fe30dfc]
5 pfFrame(0x2, 0x1000de60, 0x1badbebe, 0x3ff3d794)
["../../../lib/libpf/pfProcess.C":2727, 0x3fe31a3c]
6 main(argc = 1, argv = 0x7fff2f44)
["/home/bcolbert/work/performerclass/labs-c++/dbase.C":345, 0x4059dc]
7 __istart() ["crt1tinit.s":13, 0x4045a0]
What am I doing wrong?
Thanks in advance,
Brad
--
-+-----------------------------------------------------------------------------
-| Brad Colbert w: (202) 404-4708 Kaman Sciences Corporation
-| bcolbert++at++acm.org m: (703) 862-4104 ITD Virtual Reality Lab, NRL
-+----------------| http://www.ait.nrl.navy.mil/people/bcolbert |--------------
=======================================================================
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 Aug 10 1998 - 17:56:04 PDT