Nicolas wrote > Subject: [Flightgear-devel] Patch v1 - Rain & Snow > > > Hi, > > I propose my first tries... still much work to get a good > implementation. > > >From the README (into path) : > ----------------------------- > > This first try permits to add a basic snow and rain effects > in using particle from OSG. > > For the moment, the patch uses the METAR informations to > enable / disable rain or snow effects. (intensity of effects > is : low, meddium, > high) > > For the next release of patch : > 1) Add the wind direction and velocity effect > 2) it's raining cats and dogs in my plane !!! (fixed this issue) > 3) I want to the density of effects depend on altitude. If > I'm higher than clouds layer, rain (or snow) is stopped... > 4) The particle effects have to depend on the camera position. > 5) If you have propositions... :) >
Just in case anyone has tried, this patch will not compile under MSVC8 - fix is easy, just add "return true" at line 121 in precipitation.cxx (as discussed with Nicolas over on IRC). Although this patch has its problems, principally with transparency ordering - cockpit canopies make the rain disappear, it is a _significant_ improvement on the existing. I would recommend its inclusion in cvs, and the retirement of the old code. If it is intended that there are some user-settable parameter as described in lines 111 - 121 of the code, then they should be exposed in the property tree (or perhaps they are redundant?) I'm sure that the next iteration will be even better. Vivian ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel