[1.0.18] Models and sector colors

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
J-Dub
Posts: 69
Joined: Sat Apr 22, 2006 19:00
Location: Illinois
Contact:

[1.0.18] Models and sector colors

Post 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.
Attachments
DOOM0001.jpg
DOOM0001.jpg (80.08 KiB) Viewed 1404 times
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

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

Image

[edit] Nope problem is there in 3D floors

Image

[/edit]
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Doing that may look odd on occasion, but surely that would be better than looking odd all the time?
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post 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...
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

fixed
Locked

Return to “Closed Bugs”