Re: Loading inventor models with indexed-tristrips

New Message Reply Date view Thread view Subject view Author view

Scott McMillan (scott++at++ht.com)
Thu, 7 Nov 1996 14:36:34 -0500 (EST)


Chris Cederwall wrote:

> Mr. Jones' reply is right on the money.

As usual... :)

> The most long term prospect I would think about is "subclassing" your
> own node out of indexedFaceSet to become something like IndMorphSet
> and then handle the load yourself in the midst of all the other
> default load behaviors. You are probably close to this now since you
> are adding Callbacks for the morph, right?

I don't have a handle on the data yet so I haven't even thought about
callbacks.

After MTJ's post I (actually Dwight and I) pondered for a while. The models
do start life as obj's but the obj loader omits any partitioning we try to do
via groups (I don't understand the exact details). Besides, we (Dwight) do a
lot of massaging with an Inventor form of the data. MTJ is right that
rewriting the Inventor loader is a pain, but so would trying to learn enough
Inventor to subclass the way I think you are suggesting.

What I think is easiest/quickest route (by far) is to load the Inventor model
into performer using the standard loader (because it maintains the structure
of the data), traverse the scene graph building a single vertex list in
shared memory (using tolerances to find equivalent vertices), assigning the
index lists based on the single vertex list to each GeoSet, freeing the old
vertex list and reassigning the vertex list to point to the global one.

Because I am using pfRealloc to grow the single vertex list, I believe the
above is a two pass operation, with the final pass doing the reassign of the
vertex list after it has been completed (remember pfRealloc can change the
location of the list, right?).

scott

-- 
  Scott McMillan  |       HT Medical, Inc.      | Developing virtual environ-
   scott++at++ht.com   |      http://www.ht.com      | ment medical and surgical
 Ph: 301-984-3706 | 6001 Montrose Rd., Ste. 902 | simulations and surgery
Fax: 301-984-2104 |     Rockville, MD 20852     | simulation creation tools.

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:54 PDT

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