>> No moon shadows? I see a long discussion coming up about how unrealistic >> this all is ;-) >> > > Did we not have a discussion a while back about our nights being too > dark? I > think moonlight would be great, but we would need to take into account > the > phases of the moon. Something to do as a future enhancement.
I actually wanted to do that a while ago and asked for some help - there just didn't seem anyone interested around... [quote]Now that lightfields are in GIT, it occurred to me that we could have moonlight with this bit of technology relatively easy (before anyone mentions Project Rembrandt, I was thinking of rendering cloud layers in the moonlight, or snow-covered mountain ranges, i.e. for any distance from high altitude). The way I would imagine doing this is as follows: It would need the moon position passed to the shaders just like the sun, i.e. say as gl_lightSource[1].position. In addition it would need the moon phase (0: new moon, 1: full moon) as a property, to be passed as a uniform. A conditional statement would then check if the sunlight intensity is below some threshold, in which case it would simply switch over to the moon as primary light source (i.e. things are rendered either using sun or moon, but never both) with some smoothing, then simply moonlight and the different position is passed to the subsequent rendering steps, and voila - we could have relatively bright full moon nights, using the same light reduction rules on the ground due to clouds and fog which the sunlight rendering uses. Can the moon position info be passed in this way?[/quote] Cheers, * Thorsten ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel