rebuilding a scene graph

New Message Reply Date view Thread view Subject view Author view

From: Jason Coposky (jasonc++at++elumens.com)
Date: 10/04/2001 06:06:41


one question,

        im generating the geosets on the fly, and on occasion, i need to
rebuild the
        scene graph given a new mesh density. the issue is that im getting a
segfault
        in various places within the app process.

        in order to regenerate the scene graph, i setScene( NULL ) on the
channel,
        remove the geoset from the geode, pfFree the vertex, tex coord &
index arrays,
        pfMalloc them to their new sizes, re calc them, and stuff them back
in the
        geoset. i then reattach everthing. ( im currently working with
meshs of
        quads of N x N size )

        i can remesh the geosets as much as i want ( which includes the
destruction &
        reallocation of the various arrays ) as long as the _sizes_ of the
arrays do not change.
        when they do change, i will get the segfault but only for some
sizes, and not
        others. it seems to like odd sizes, and crashes on even sizes for
some reason.
        this is just what ive noticed so far.

        if anyone has any insight or if anything sounds amiss, please
advise.

        thx.

        ~J

// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jason M. Coposky, 3D Software Engineer
jasonc++at++elumens.com
// =-=-=-=-=-=-=-=-=-=


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Oct 04 2001 - 06:15:35 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.