Page 1 of 1
[1.0.18] Models and sector colors
Posted: Fri Aug 25, 2006 10:07
by J-Dub
Notice whats wrong here (I brightened the photo so its easier to see)? This is inside a swimmable 3D floor so I'm not sure if the coloring works when applied to normal sectors.
Posted: Wed Jan 30, 2008 21:45
by Enjay
I know the original bug was reported for a 3D floor so I don't know if that still happens, but in a normal sector coloured using Sector_SetColor (49, 255, 0, 0) this model (which is mainly white) is certainly affected by the colour change.
[edit] Nope problem is there in 3D floors
[/edit]
Posted: Wed Jan 30, 2008 22:20
by Graf Zahl
Actually this is the same problem as your sprite coloring bug. Just a question: Would it be enough to pick the color from the object's center in these cases? That'd work unless the object intersects with a lighting boundary.
Posted: Wed Jan 30, 2008 22:55
by Enjay
Doing that may look odd on occasion, but surely that would be better than looking odd all the time?
Posted: Fri Feb 01, 2008 15:42
by Nash
It works that way with sprites anyway so if that's the quickest fix, you might as well just do it.
To do it "properly" you'd need to get something better like vertex or per-pixel lighting implemented anyway...
Posted: Fri Feb 01, 2008 18:07
by Graf Zahl
No, it doesn't work like that for sprites. Sprites are split at lighting boundaries but I can't do that with models or xy-billboarded sprites.
Posted: Thu Feb 14, 2008 12:18
by Graf Zahl
fixed