Re: Ground not clearing

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Fri, 03 Sep 1999 11:55:55 -0700


Specify x&y in the DCS but keep eye z in the view, otherwise the eye is
always at height zero and you experience problems with earthsky which
needs that info.

CHeers,ANgus.

Chris Elliott wrote:
>
> 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
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"One of the best-known folk theorems of software engineering is that
60% to 75% of conventional software projects are either never
completed or rejected by their intended users. If that range is
anywhere near true (and I've never met a manager of any experience
who disputes it) then more projects than not are being aimed at goals
which are either (a) not realistically attainable, or (b) just plain
wrong."
                 Eric S. Raymond - The Cathedral and The Bazaar

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.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 - 11:56:02 PDT

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