Hi Paul,
On 5/29/06, Paul Martz <[EMAIL PROTECTED]> wrote:
Thanks for the feedback, Robert.
The most straightforward solution, from my perspective, would be a new class
LightPointSpriteDrawable, derived from LightPointDrawable, that (as you
describe) would contain support for point sprites and texturing. Let me work
this up. Would you want to see such a class in osgSim or just added to the
OpenFlight plugin (which is where I'd be using it)?
The right place would be in osgSim as you'd need to read and write it
to .osg/.ive, and possibly use it else where. Saying that the
LightPointDrawable is an implementation detail rather than part of the
public interface, but still I'd say it be easier to stick it in osgSim
as the LightPointNode will still need to know about it.
Rewriting light points in GLSL is enticing but I lack the bandwidth to
implement that solution at the current time.
GLSL is certainly enticing, once you've learnt about how to set up
shaders and get data to and from them it really opens lots of
possibilities of how to code things, many things actually become
easier. The tricky bit right now is that not all systems support GLSL
so the fallback is still important.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/