Am Freitag, 11. Oktober 2002 19:07 schrieb Felix Kühling:
> On Fri, 11 Oct 2002 18:00:18 +0100
>
> Keith Whitwell <[EMAIL PROTECTED]> wrote:
> > Felix Kühling wrote:
> > > On 11 Oct 2002 18:15:08 +0200
> > >
> > > Michel Dänzer <[EMAIL PROTECTED]> wrote:
> > >>I was looking into the lighting issues Felix reported with the
> > >>xscreensaver pulsar hack (when running it with the -light option). One
> > >>side of the planes looks good, the other one is black, so I thought it
> > >>might be related to two-sided primitives.
> > >>
> > >>Indeed, the hardware TCL code has a fallback for this if the material
> > >> is different on both sides. If I hardcode that to always trigger (in
> > >> check_twoside_fallback() in radeon_state.c), pulsar looks good with
> > >> lighting.
> >
> > I think this is effectively the same as setting 'R200_NO_TCL=t'.
> >
> > >>So I thought I'd see if this was related to some lighting oddities in
> > >>bzflag, and I made another interesting discovery: with this fallback,
> > >> it locks up the chip when connecting to a server, like I reported
> > >> before for software TCL.
> > >>
> > >>In summary, there seem to be multiple problems related to two-sided
> > >>lighting in the radeon driver, both with hardware and software TCL.
> > >> I'll keep looking into them, but I hope this information will help
> > >> someone else find them more quickly.
> > >
> > > One observation which confused me was that it looked good if I set the
> > > alpha channel of global ambient to something other than 1.0 (or was it
> > > 0.0?)
> >
> > Which makes me wonder if it's a codegen/vtxfmt problem -- what happens
> > with R200_NO_VTXFMT=t ?
>
> Neither RADEON_NO_VTXFMT nor RADEON_NO_CODEGEN make any difference.

Even "setenv LIBGL_ALWAYS_INDIRECT" do _NOT_ help with all of my VTK apps in 
"wire frame mode". So I point at Mesa. And my older Voodoo5 5500 (tdfx) had 
the same symptoms. Textures only on one side (the outer).

But "setenv LIBGL_ALWAYS_INDIRECT" or "setenv R200_NO_TCL 1" help with 
texturing of the outer side for the r200 case. It is broken since the TCL 
merge.

graphics/examplesCxx> setenv R200_NO_TCL 1
graphics/examplesCxx> ./ColorSph &
[1] 9584
graphics/examplesCxx> r200CreateScreen
disabling TCL support

[1]    Fertig                        ./ColorSph

See both snapshots.

-Dieter

Attachment: ColorSph-with-TCL.png
Description: PNG image

Attachment: ColorSph-without-TCL.png
Description: PNG image

Reply via email to