Hi,

On Nov 28, 2009, at 7:16 PM, Tim Moore wrote:

> On 11/28/2009 05:25 AM, Tatsuhiro Nishioka wrote:
>> Hi Tim,
>>
>> As I said to you in IRC, I have a weird transparency problem with the 
>> shaders enabled.
>> Here's the snapshot (helicopter view) with shaders.
>> http://macflightgear.sourceforge.net/wp-content/uploads/snapshots/3dclouds-effect-enabled.png
>>
>> I used both FG/SG @ cvs-head as of yesterday and FG/SG @ Tim's git, but I 
>> got exactly the same result.
>> The cause of this fancy rainbow-ish filter is the alpha calculation in both 
>> default.vert and model-default.vert.
>>
>> A "lazy" patch to avoid this issue is available at:
>> http://macflightgear.sourceforge.net/wp-content/uploads/patches/shaders-weird-alpha-fix.diff
>>
>> I don't know if the real problem is in a shader side or C++ side.
>> Tim, do you have any hint on this?
>>
> Pretty bizzare. Obviously turning off alpha altogether isn't a real option. 
> Is this a new problem since
> the 3d clouds went in, or are/were you seeing it without 3d clouds at all? 
> What version of
> OSG are you using?

I guess this problem is not that new, but I couldn't see it until you 
introduced the alpha calculation on .vert files.
As a matter of fact, a bit older FG/SG/OSG/data (cvs or svn as of Sep/07/2009) 
and the latest shaders (all .eff, .vert, .frag, and materials.xml as of 
Nov/28/2009) gave me the similar result. The rainbow-ish effect shows up on 
both scenery and ground objects. Only the difference is that the older FG 
doesn't have a rainbow-ish effect on the aircraft model, while the latest FG/SG 
& the latest Shader make a rainbow-ish effect on the aircraft model as well. 
(FYI, I use OSG/svn on Nov/27 for the latest FG/SG.)

This rainbow-ish effect shows up with or without 3D clouds on both old and the 
latest FG, so I guess it has nothing to do with the new 3D cloud shader.

Anyway, I'll keep investigating this.

Tat


> Tim



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to