Hi Simon,
Simon Haegler wrote:
> osghello
>
> i need to enhance the DistanceLOD class with crossfading (perhaps even
> morphing)
> between the levels.
>
> before i start with the implementation, the usual question: was this already
> done by anybody? any potential contributions?
Not that I know of.
> i will start with adding an absolute fading range around each threshold, and
> simply do a linear fade between the two adjacent lods.
Crossfading is not as simple as it sounds. SGI did it in Performer, but
the only way to really make it work is using multisampling, as you don't
want to fade the models to/from transparent, as that would allow you to
see inside it, you want to fade the images of the actual models.
Multisample masks are the only efficient way to do that, and they don't
work very well if you only have two samples.
Morphing might be easier, actually. It's going to be expensive, but
there is example code for very similar things available (Linear
interpolation between models). I'm away from home right now, but I can
try to dig it up when I get back, unless somebody has it handy right now.
Hope it helps
Dirk
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users