Christian Mayer writes:

> "Curtis L. Olson" wrote:
> >
> > Here's a question I'll throw out to the list on my way to bed.
> >
> > I'm working on VASI/PAPI type lights tonight and am running into a
> > problem.  I'm using environment mapping with the normal aligned along
> > the desired approach path.  This almost works as expected except for
> > one major problem.  The texture coordinate that is generated is
> > ***highly*** dependent on the object's position on the screen.
> >
> > Thus, on approach, simply pitching up or down radically changes the
> > color of the vasi light, even though the relative view position
> > changes very little.
>
> Something to take cara about with environment mapping is the orientation
> of the normal vector. If you've got it wron (i.e. pointing away from you
> not towards you) you'll see the singularity - and thus quite possibly
> rapid changes.

I haven't played much with enviroment mapping yet but I was wondering
if there needed to be a transform on top of each light that in essence moved
the lookat vector to point directly at each light instead of being aligned
with the normal FGFS lookat vector.

Norman






_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to