Finding intersection point

New Message Reply Date view Thread view Subject view Author view

G.W. Estep II (gestep++at++link.com)
Fri, 12 Sep 1997 11:31:31 -0500


I have an application that loads a terrain model file (dwb) on start up
and
then I add obstructions (trees, buildings, etc) to the scene after the
terrain
model is loaded. Right now I am hacking this together. I know the
height of the top of the obstruction and so I just scale them tall
enough
such that the bottom of the obstruction is always under the terrain.
This
works fine for things that are uniform cross sections (i.e. square
buildings,
radio towers, etc.) but I need to put trees and such in now and this
"hacked" approach is not going to work.

What I want to do is, after I load the terrain model, determine the
elevation
of the terrain (z value) at a specific (x,y) point which I already know,
and
with this information "plant" the bottom of the model on the terrain.
Is there a way to do this? I'm not concerned with speed of this process

because it is still load time as far as the user is concerned.

Any help would be greatly appreciated.

Thanks,
G.W.

G.W. Estep II
gw++at++rivatech.com

=======================================================================
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:55:56 PDT

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