Re: red shadows

New Message Reply Date view Thread view Subject view Author view

From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 08/07/2000 16:51:40


On Mon, 7 Aug 2000, [iso-8859-1] Juan R. Sáenz-Diez (Yuri) wrote:

> Hi pfAll,
>
> This is surely a straight forward one: I am trying to use the sample code
> shadows.c, I corrected the light vector and a bogus texture file, and now
> the base polygon that was supposed to receive the shadow appears red, and
> without the shadow. The spotlights work if the polygon doesn't have a
> texture; if it does, it is dyed red also.
>
> My system is iR2, Performer 2.2.7, IRIX 6.5.7m
>
> ¿Anybody can please send a working shadows.c asap? Or maybe it's a matter of versions? Many thanks in advance.
>
> Best regards,
> Yuri.
>

Hi Yuri,

The problems with shadows not appearing and the floor being red are two
completely separate things. I bet your floor is red because you are
loading a model which is red. The floor in shadows.c does not have its own
geostate, so it will inherit the color of the last geostate which was
applied when rendring the model. Put a geostate on the floor geostate
which has a material specified and model colors will no longer bleed into
the floor.

I'm still looking into why there are no shadows, I'll post again when I
know.

-- Marcin


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 16:51:44 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.