Andy Ross writes:
> Spotlights, and OpenGL lights in general, only work at vertices.

Is there an opengl extension that would allow the spot light to work
per pixel rather than per vertex?

It seems like I've heard of something, but I haven't investigated
myself.

> I think Roman's suggestion is the right one -- you would generate the
> light pattern as a texture and apply it projectively as the second
> texture pass on "nearby" tiles.  This really wouldn't be so hard, I
> suspect.  Multitexture on modern hardware is essentially free.

This would be interesting, especially since you could fake the lense
patterns of the lights.  Using a spot light (even if it worked as
you'd hope) would almost be a little too perfect.

We'd also need to draw the light beam near the aircraft in foggy
conditions.  Would love to see a 747 dropping out of the soup from the
tower view with it's lights blazing through the fog.  That probably
wouldn't be too hard to do, and could even be done as an animation as
part of the model.

Regards,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program       FlightGear Project
Twin Cities    [EMAIL PROTECTED]                  [EMAIL PROTECTED]
Minnesota      http://www.menet.umn.edu/~curt   http://www.flightgear.org

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

Reply via email to