bda112297f2d81bd752b758bbb42485ccbf6a89e
I was not very happy with the size of the halo, so I created a new animation to control it. Now we can control the scale value with the distance from the viewer to the object. The towers are now beginning to look good. They might need some tuning though. If you want to play, locate in radio-*.xml this code : <animation> <type>dist-scale</type> <object-name>RedLight.2</object-name> <interpolation> <entry><ind>0</ind><dep>0.1</dep></entry> <entry><ind>500</ind><dep>0.3</dep></entry> <entry><ind>16000</ind><dep>3</dep></entry> </interpolation> </animation> You get the idea ? ind is the distance, dep is the resulting scale value. The medium tower appears brighter than the tall one, because the lights are closer to each other. Maybe they need a smaller scale factor at distance. Feel free to modify these values if you find a better setup. About the code : I renamed flash to custtrans because the ssg branch is now less specialized. It needs a callback to compute the so called 'custom transformation'. It can be used for the SGFlashAnimation and the new SGDistScaleAnimation. So please cvs remove flash.[ch]xx and add custtrans.[ch]xx. I also undo some of the code I send you yesterday that was totally useless. It is replaced by something simpler and that works. There is also a patch to matmodel.cxx. This is not related and was something I forgot. Its purpose is to set the alpha test on material billboard models that are likely to be trees to lessen a transparency weird effect with clouds.
[ Nothing here at this time. ]
Description
Languages
C++
85.5%
C
13.1%
CMake
1.4%