Spot light oddity

Previous topic - Next topic

MrTAToad

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]

Ruidesco

Trying to replicate this problem I see that it happens (here) when using special light -2 for cel shading.

MrTAToad

I'm not using cell shading...

MrTAToad

#3
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 :)

Ruidesco

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

MrTAToad

If your using collision detection, try disabling it - it looks like one of my objects is continually causing a collision, hence affecting all objects...

Ruidesco

Nope, no collisions, this is just a small project that basically shows a 3D figure made of cubes.

MrTAToad

#7
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...

Kitty Hello

x_Colision in debug mode!!! The lines are coloured and I forgot to reset that.

MrTAToad

#9
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.