Hi Lauri,

I've been flying with your new atmospheric scatter shader and it's quite
beautiful, great work!  I did notice one glitch though.  Here is a link to a
screen shot:

https://dl-web.dropbox.com/get/Photos/fgfs-screen-043.png?w=eba5c12c

It's very subtle and if there was any cloud coverage it could easily be
missed, but do you see the square corner in the middle of the image.  It
appears that one vertex in the sky dome must be getting a wrong color
assigned to it.  I see that the dome successfully wraps around every other
place and is very nicely blended.  So hopefully this is just a typo?  Or
maybe an off by one error somewhere processing one of the rings of the
skydome?

I took a quick peak at the skydome changes, but haven't had time to really
dig in and look for this.

Thanks,

Curt.


On Tue, Apr 12, 2011 at 1:49 PM, Lauri Peltonen <lauri.pelto...@gmail.com>wrote:

> Hi,
>
> I made this patch some time ago, and seems like it is working quite
> fine, so I though if it might be possible to add to git (if nothing
> more, then maybe for future reference)?
>
> It does two things. First I modified the skydome code to be more
> configurable so that the precision could be increased (number of rings
> and bands). Then I implemented the O'Neil's scattering shader to
> showcase the scattering. I know that for the proper effect, terrain and
> other objects should use the same shader, but that is probably future
> work.
>
> Anyways, here are links to patches and effects. The flightgear patch
> only makes clearcolor black, so that space is dark instead of gray.
>
> http://users.tkk.fi/~lapelto2/fgfs/scatter/scatter-simgear.patch
> http://users.tkk.fi/~lapelto2/fgfs/scatter/scatter-flightgear.patch
>
> http://users.tkk.fi/~lapelto2/fgfs/scatter/skydome.eff
> http://users.tkk.fi/~lapelto2/fgfs/scatter/skydome.frag
> http://users.tkk.fi/~lapelto2/fgfs/scatter/skydome.vert
>
> Screenshots can be found from the forum thread:
>
> http://www.flightgear.org/forums/viewtopic.php?f=47&t=11274&p=117965#p117965
>
> And the command line to run the shader, it needs some properties set:
> fgfs --prop:/sim/rendering/mie=0.003
> --prop:/sim/rendering/rayleigh=0.0003
> --prop:/sim/rendering/dome-density=0.5
> --prop:/sim/rendering/scattering-shader=1
>
>
> The non-shader version should look just like it used to, but on some
> occasions I think the sunset effect is a bit misplaced. I didn't touch
> that code, so was it always like that? Can someone verify?
>
> Cheers, Zan
>
>
>
> ------------------------------------------------------------------------------
> Forrester Wave Report - Recovery time is now measured in hours and minutes
> not days. Key insights are discussed in the 2010 Forrester Wave Report as
> part of an in-depth evaluation of disaster recovery service providers.
> Forrester found the best-in-class provider in terms of services and vision.
> Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>



-- 
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
http://www.flightgear.org - http://gallinazo.flightgear.org
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to