From: Tomlinson, Gordon (GORDON.TOMLINSON++at++ca.com)
Date: 10/04/2001 07:24:41
Have a look at pfFluxes and there use with geosets
Regards
Gordon.
_________________________________________________________________
Gordon Tomlinson
Manager
Urban Simulation Products Engineering.
MultiGen-Paradigm
"a Computer Associates Company"
Suite 200, 16415 Addison Road, Addison, TX 75001 USA
Tel: 972 380 9798 ext 309 Fax: 972 380 9468
Email: gordon.tomlinson++at++ca.com
-----Original Message-----
From: Jason Coposky [mailto:jasonc++at++elumens.com]
Sent: Thursday, October 04, 2001 8:07 AM
To: 'info-performer++at++sgi.com'
Subject: rebuilding a scene graph
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
// =-=-=-=-=-=-=-=-=-=
-----------------------------------------------------------------------
List Archives, FAQ, FTP: 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 : Thu Oct 04 2001 - 07:30:13 PDT