LeeE wrote:
> On Monday 24 December 2007 02:37, dave perry wrote:
>
>> dave perry wrote:
>>
>>> I was enjoying the new gallery pictures when I noticed that the
>>> rudder and vertical stab of the comanche do not cast a shadow
>>> on the stabilator. So I tried to discover why not. With
>>> shadows on and transparency off, the rudder and vertical stab
>>> do cast a shadow on the satabilator. But they do cast a shadow
>>> on the trim tab even with transparency on. The model was done
>>> in ac3d. I could have not yet found documentaion on shadows on
>>> aircraft. What do I need to change to correct this?
>>>
>> Fixed. I will submit a patch to pa24-250.ac.
>>
>> Dave Perry
>>
>
> Just so it's something to bear in mind for the future, what was the
> problem and the cure?
>
> Since we haven't had shadows in osg I've forgotten about them but I
> do seem to recall that objects, or was it polys? couldn't cast a
> shadow on themselves, or something like that.
>
> LeeE
>
>
>
A search of www.flightgear.org for "shadows on aircraft" turned up this
change to renderer.cxx:
Update of /var/cvs/FlightGear-0.9/FlightGear/src/Main
In directory baron:/tmp/cvs-serv12046/Main
Modified Files:
renderer.cxx
Log Message:
Harald JOHSEN:
Changes
=======
- shadowvolume.cxx, renderer.cxx :
- reduced the polygon offset a bit to eliminate some artifact ;
- changed again the cleanup code for objects inside a tile because it could
crash on rare occasion ;
- the culling of shadow casters has been rewritten to traverse the scene
graph, it should be
a bit faster when there is a lot of objects ;
- the range selector was not correctly handled, sometimes the wrong LOD was
casting shadows.
- added the option to display aircraft's transparent objects after the
shadows, this will
reduce the problem of shadows being hidden by the transparent object
(propeller disk,
rotor, etc). A side effect is that aircraft's transparent objects won't
receive shadows
anymore. This is usually a good thing except when the aircraft use a
'transparent'
texture where it should not. A transparent texture in the plib context is a
texture
with an alpha channel or a material with alpha <= 0.99.
- model.cxx, animation.cxx, shadowvolume.cxx :
- added an optional <condition> under the <noshadow> animation
And the texture pa24-250-fus2.rgb had an alpha channel. The wing2.rgb
did not have an alpha channel. The wings and all wing control surfaces
as well as the stailator trim were textured from wing2.rgb and the
stabilator was textured from pa24-250-fus2.rgb. So I retextured the
stabilator from wing2.rgb. I still find Gimp a bit confusing.
Dave Perry
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel