GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2011-Oct-13

Title: Spot light oddity
Post by: MrTAToad on 2011-Oct-13
Although I'm using white RGB(255,255,255), for my spot light colour, I find that if the cut off value if > 90 and <179 everything is lit, but with a greeny tinge.  If it is < 90, then everything is dim, but objects do have their correct colour.



[attachment deleted by admin]
Title: Re: Spot light oddity
Post by: Ruidesco on 2011-Oct-13
Trying to replicate this problem I see that it happens (here) when using special light -2 for cel shading.
Title: Re: Spot light oddity
Post by: MrTAToad on 2011-Oct-13
I'm not using cell shading...
Title: Re: Spot light oddity
Post by: MrTAToad on 2011-Oct-14
Nearly solved it - needed objects with a depth...  Now everything is in a shade of green :)

Found it - seems to be X_COLLISION doing it :)
Title: Re: Spot light oddity
Post by: Ruidesco on 2011-Oct-14
Oh good.
I didn't mean you were using celshading tho, just that it happened here as well, but in this case it seems to completely miss the green channel, like it was green-blind. O_O
Title: Re: Spot light oddity
Post by: MrTAToad on 2011-Oct-14
If your using collision detection, try disabling it - it looks like one of my objects is continually causing a collision, hence affecting all objects...
Title: Re: Spot light oddity
Post by: Ruidesco on 2011-Oct-14
Nope, no collisions, this is just a small project that basically shows a 3D figure made of cubes.
Title: Re: Spot light oddity
Post by: MrTAToad on 2011-Oct-14
See if there are any changes needed by looking at the Cell Shading demo - I've never used it (yet).

I got around the whole colour thing (which only happens in debug mode due to the collision area being displayed) is to just calculate the distance between the sizes...
Title: Re: Spot light oddity
Post by: Kitty Hello on 2011-Oct-14
x_Colision in debug mode!!! The lines are coloured and I forgot to reset that.
Title: Re: Spot light oddity
Post by: MrTAToad on 2011-Oct-14
Coloured lines for collision in debug mode are very useful, but green coloured lines can be a problem :)

Did try resetting the light, but no effect...  It is okay in release mode, by the way.