Re: [Flightgear-devel] 3d cloud rendering problems

2002-09-19 Thread Jim Wilson

Frederic Bouvier <[EMAIL PROTECTED]> said:

> 4. I can see plain textures sometimes (often when in the cockpit) :
> http://perso.wanadoo.fr/frbouvi/flightsim/fgfs-clouds3d-texture.png

Same here.  I don't have a model loaded so what I see is a font texture.

Best,

Jim

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] 3d cloud rendering problems

2002-09-19 Thread Erik Hofman

Curtis L. Olson wrote:
> Norman Vine writes:
> 
>>Curtis L. Olson
>>
>>>Norman Vine writes:
>>>
I think you are on to something !

That would explain the lightening of the clouds 
with each pass.  BUT this only started after I
updated my code the other day !. Also I never
had the 'text' texture
>>>
>>>Right now I'm wondering if it is related to the use of
>>>glColorMaterial()?
>>
>>The curious thing is that the 'coloring bug' and the the texture 
>>'jitter'  just appeared recently and I can't see what changed
>>to cause it.
> 
> 
> Dohh! Disabling lighting seems like it may have fixed the problem.
> Still playing.

Hmm. which makes me think it might have something to do with the 
shininess code from me you applied recently?

Erik




___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] 3d cloud rendering problems

2002-09-18 Thread Frederic Bouvier

From: "Curtis L. Olson" <[EMAIL PROTECTED]>
> Norman Vine writes:
> > Curtis L. Olson
> > > Norman Vine writes:
> > > > I think you are on to something !
> > > >
> > > > That would explain the lightening of the clouds
> > > > with each pass.  BUT this only started after I
> > > > updated my code the other day !. Also I never
> > > > had the 'text' texture
> > >
> > > Right now I'm wondering if it is related to the use of
> > > glColorMaterial()?
> >
> > The curious thing is that the 'coloring bug' and the the texture
> > 'jitter'  just appeared recently and I can't see what changed
> > to cause it.
>
> Dohh! Disabling lighting seems like it may have fixed the problem.
> Still playing.

Yes! clouds now appears like they should :
http://perso.wanadoo.fr/frbouvi/flightsim/fgfs-clouds3d-ok.png

However, there are still problems :
1. I can't see clouds from the cockpit,
(Well, not really, there are clouds in the cockpit :
http://perso.wanadoo.fr/frbouvi/flightsim/fgfs-clouds3d-inboard.png
or is it fire ?)

2. When I take a screenshot from the chase view, the plane model disappears,

3. The propeller disk is drawn with the wrong blend function :
http://perso.wanadoo.fr/frbouvi/flightsim/fgfs-clouds3d-propeller.png
(taken with win screen capture, otherwise there is no cockpit with F3)

4. I can see plain textures sometimes (often when in the cockpit) :
http://perso.wanadoo.fr/frbouvi/flightsim/fgfs-clouds3d-texture.png


Cheers,

-Fred



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] 3d cloud rendering problems

2002-09-18 Thread Curtis L. Olson

Norman Vine writes:
> Curtis L. Olson
> > Norman Vine writes:
> > > I think you are on to something !
> > > 
> > > That would explain the lightening of the clouds 
> > > with each pass.  BUT this only started after I
> > > updated my code the other day !. Also I never
> > > had the 'text' texture
> > 
> > Right now I'm wondering if it is related to the use of
> > glColorMaterial()?
> 
> The curious thing is that the 'coloring bug' and the the texture 
> 'jitter'  just appeared recently and I can't see what changed
> to cause it.

Dohh! Disabling lighting seems like it may have fixed the problem.
Still playing.

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] 3d cloud rendering problems

2002-09-18 Thread Norman Vine

Curtis L. Olson
> Norman Vine writes:
> > I think you are on to something !
> > 
> > That would explain the lightening of the clouds 
> > with each pass.  BUT this only started after I
> > updated my code the other day !. Also I never
> > had the 'text' texture
> 
> Right now I'm wondering if it is related to the use of
> glColorMaterial()?

The curious thing is that the 'coloring bug' and the the texture 
'jitter'  just appeared recently and I can't see what changed
to cause it.

Norman




___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] 3d cloud rendering problems

2002-09-18 Thread Curtis L. Olson

Norman Vine writes:
> I think you are on to something !
> 
> That would explain the lightening of the clouds 
> with each pass.  BUT this only started after I
> updated my code the other day !. Also I never
> had the 'text' texture

Right now I'm wondering if it is related to the use of
glColorMaterial()?

I've never had that play nice with setting material colors explicitely
(with lighting turned on.)  I remember Steve Baker investigating the
exact specification of what should happen when you switch between the
two methods of specifying colors.  His conclusion was that the spec
was ill defined and not even his high placed contacts had a good
answer.

The cloud3d code appears to be using glColorMaterial() to set the
color and I'm thinking that colors from the rest of FlightGear are
bleeding over into the cloud code.

i.e. when I enable the HUD I start getting dark green clouds.  When I
disable the HUD, the clouds start popping back to shades of gray.

> FYI
> I have to leave FGFS alone so I get some real work done
> for a couple of days,  mapserver stuff.
> 
> But I am still reading mail :-)

Not fair!  We are so close... :-)

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] 3d cloud rendering problems

2002-09-18 Thread Norman Vine

I think you are on to something !

That would explain the lightening of the clouds 
with each pass.  BUT this only started after I
updated my code the other day !. Also I never
had the 'text' texture

FYI
I have to leave FGFS alone so I get some real work done
for a couple of days,  mapserver stuff.

But I am still reading mail :-)

Cheers

norman

- Original Message - 
From: "Curtis L. Olson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 6:02 PM
Subject: [Flightgear-devel] 3d cloud rendering problems


> Norman,
> 
> Here's something for you to play with.  Based on my own experiments, I
> believe that the cloud rendering problem centers around not having the
> correct state setup when we draw the cloud imposters.
> 
> So, I don't believe it's an issue of protecting state around a
> particular section of code, I believe it's an issue of getting the
> state setup correctly before calling the imposter rendering Update()
> code.
> 
> I'm wondering if it is related to the correct glColorMaterial()
> glEnable(GL_COLOR_MATERIAL) glColor() calls, because I'm seeing clouds
> with different colors, including but not limited to black.
> 
> The imposter generation code could be inheriting whatever color was
> left over from the last thing we drew.
> 
> Curt.
> -- 
> Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
> Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
> Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org
> 
> ___
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



[Flightgear-devel] 3d cloud rendering problems

2002-09-18 Thread Curtis L. Olson

Norman,

Here's something for you to play with.  Based on my own experiments, I
believe that the cloud rendering problem centers around not having the
correct state setup when we draw the cloud imposters.

So, I don't believe it's an issue of protecting state around a
particular section of code, I believe it's an issue of getting the
state setup correctly before calling the imposter rendering Update()
code.

I'm wondering if it is related to the correct glColorMaterial()
glEnable(GL_COLOR_MATERIAL) glColor() calls, because I'm seeing clouds
with different colors, including but not limited to black.

The imposter generation code could be inheriting whatever color was
left over from the last thing we drew.

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel