Ground not clearing

New Message Reply Date view Thread view Subject view Author view

Chris Elliott (Chris.P.Elliott++at++lmco.com)
Fri, 03 Sep 1999 10:10:56 -0400


I fixed jitter problems with a simulator by keeping the eyepoint at the
origin, but now I have screen clearing problems. The ground area does
not clear. I am using pfEarthSky. Here are relevant pieces of code
from the old and new. The old clears properly. Any ideas?

NEW
pfDCSTrans(terrainDCS, -ownship_x, -ownship_y, -ownship_z);
pfChanView(channel, zero.xyz, ownship.hpr);
pfDCSTrans(otherDCS, (float) (x - ownship_x), (float) (y - ownship_y),
(float) (z - ownship_z));
pfDCSRot(otherDCS, otherYaw, otherPitch, otherRoll);
pfuCollideGGrnd(&zero, terrainDCS, zpr);

OLD
pfChanView(channel, ownship.xyz, ownship.hpr);
pfDCSTrans(otherDCS, (float) (x), (float) (y), (float) (z));
pfDCSRot(otherDCS, otherYaw, otherPitch, otherRoll);
pfuCollideGGrnd(&ownship, terrain, zpr);

It may be of interest that I have a channel traversal function set using
pfChanTravFunc(channel, PFTRAV_DRAW, DrawFunc);

void DrawFunc(pfChannel *chan, void *nothing) {
   pfClearChan(chan);
   pfDraw();
   if (theCallback != NULL) {
      theCallback();
   }
}

--
Chris Elliott
Chris.P.Elliott++at++lmco.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Sep 03 1999 - 07:09:58 PDT

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