[info-performer] Using pfFrustum to get a different Far Clipping Plane than pfChannel

Date view Thread view Subject view Author view

From: Mike Lepard (michael.lepard++at++drdc-rddc.gc.ca)
Date: 02/28/2005 12:28:59


Hi,

We have some code in a helicopter simulator that is setup to draw wave
"tiles" as the pilot looks around the ocean.

These tiles are drawn from Near Clipping Plane of the channel to the Far
Clipping Plane of the channel, using the vectors found for
pfChannel::getNear() and pfChannel::getFar().

Unfortunately this is very time consuming and we have to keep the far
clipping plane quite close. I would like to be able have a seperate
plane that the waves are drawn to and then draw something basic from
that plane to the far clipping plane.

To do this I was looking into pfFrustum because of its similarities to
what we use in pfChannel. I'm able to create a frustum and set its
clipping planes, but how do I orientate the frustum to the view of the
pfChannel? Should I use the orthoXform()? Will I need to call apply()
after this?

Is this a good way of doing what I'm hoping to, should I just do some
fancy vector math instead?

Thanks for any help, unfortunately I am a Performer newbie operating in
a established, complex performer environment and even the simplest
explanations would be very useful to me.

Thanks,
Mike Lepard
DRDC Toronto


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Feb 28 2005 - 12:29:36 PST