Craig McNaughton (craig++at++cgl.citri.edu.au)
Wed, 27 Oct 1993 23:38:10 +1100 (EST)
I've had a simple application using Performer 1.0 up and running for a while,
and on a whim I decided to call pfFlatten() on the scene graph to try and
improve performance (there's a lot of SCS transforms in the scene...)
Problem is : core dump.
dbx stack trace is :
(dbx) where
> 0 pfXformPt3(dst = (nil), v = (nil), m = 0x7fffb57c) ["../../../lib/libpr/linmath.c":396, 0x4454d4]
1 pfGeode::flatten(pfTraverser*)(this = 0x143f54c0, trav = 0x7fffc564) ["../../../lib/libpf/pfGeode.C":580, 0x4372c4]
2 pfSCS::flatten(pfTraverser*)(this = 0x143f53b0, trav = 0x7fffc564) ["../../../lib/libpf/pfSCS.C":370, 0x42c794]
3 pfSCS::flatten(pfTraverser*)(this = 0x143f53b0, trav = 0x7fffc564) ["../../../lib/libpf/pfSCS.C":370, 0x42c794]
4 pfSCS::flatten(pfTraverser*)(this = 0x143f53b0, trav = 0x7fffc564) ["../../../lib/libpf/pfSCS.C":370, 0x42c794]
5 pfGroup::flatten(pfTraverser*)(this = 0x14334910, trav = 0x7fffc564) ["../../../lib/libpf/pfGroup.C":459, 0x4261bc]
6 pfNode::flatten()(this = 0x14334910) ["../../../lib/libpf/pfNode.C":885, 0x442f4c]
7 pfFlatten(node = 0x14334910) ["../../../lib/libpf/cNode.C":248, 0x40be74]
8 main(argc = 2, argv = 0x7fffc764) ["/usr2/cgl/craig/src/soft/AYUFF/perf_test/simple.c":66, 0x400400]
It would seem that the transform of the geometry data is being passed a null
pointer for a vertex.
I know that there are Geode nodes in the graph that have zero child geosets,
and there may well be geosets with 0 tristrips in them (and hence no vertex
data or length data present). The scene renders quite happily, so I pretty
sure the scene graph is consistent...
Will pfFlatten() handle these null geosets and geodes well, or is that the
cause of the problem?
I know, they really shouldn't be there, but I'm reading my own file format,
and there are still a few 'stub' routines for unimplemented geometry..
Thanx for any help..
Craig
-- Craig McNaughton | If you want to call me baby (go ahead now) craig++at++godzilla.cgl.citri.edu.au | If you want to tell me maybe (go ahead now) Advanced Computer Graphics Centre | If you wanna buy me flowers (go ahead now) RMIT, Melbourne, Australia | If you want to talk for hours (go ahead now)
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:04 PDT