Adding an Object to a Terrain DB

New Message Reply Date view Thread view Subject view Author view

Robert Shirley - Applied Data Tech. (shirley++at++cts.com)
Thu, 10 Nov 1994 09:06:59 -800 (PST)


To John Rohlf, Alan Schaffer, Jim Helman, et al:

I was referred to you by your San Diego Regional Reps., Bill Josephs &
Steve Kerlin - I need some help. Here's the scoop:

We at ADTI are trying to attach an object (airport model - .flt format)
to a terrain database being used in a Mak Technologies Vrlink-Stealth
visualizer that is based on a C++ version of perfly. Granted, my
experience with Performer has been limited to a couple weeks now - I'm
basically trying to gleen from other application examples and the
Performer manuals - so I'm probably missing the boat concerning something
fundamental w.r.t. scene hierarchies.

In this application, the terrain (Hunter-Leggitt) database has been read
in. My modification to attach the airstrip consist of code to define a
new airport group node, a new airport SCS node, a new airport Geode node.
I read in the .flt model for the airport using LoadFlt, returning the
node pointer to the (casted) airport geode. I then add the Geode node as
a child of the SCS node, the SCS node as a child to the group node, the
group node as a child to the terrain group node, which is a child of the
scene node (root).

The result is that the airport model does not get attached to the
terrain, but to the viewpoint. The x,y,z coordinates end up as offsets
away from the viewpoint instead of offsets from the terrain origin.

What am I missing here?

I am currently looking through other applications to see examples of
locking an object to a certain terrain location, but if you could guide
me with some pointers, I would appreciate it.

Also, does SGI conduct Performer classes for, dare I say, <hacks> like me
so that we don't have to keep bugging you guys?? If so, could you fire
off a schedule?

Thanks

Robert Shirley
Applied Data Technology, Inc
10151 Barnes Canyon Rd
San Diego, Calif 92121
619 450-9951
shirley++at++cts.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:50:39 PDT

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