Forum

Q2 ref_soft replacement with colored light

Discuss anything not covered by any of the other categories.

Moderator: InsideQC Admins

Re: Q2 ref_soft replacement with colored light

Postby leileilol » Tue May 20, 2014 6:46 pm

Just to make things clear to Qbism

Image
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Q2 ref_soft replacement with colored light

Postby qbism » Wed May 21, 2014 3:18 am

The code I showed is indeed from d_polyse.c. Must have been a brain fart. Also I see Spiney is referring to world lighting. The colored light noise I was talking about would be a similar lookup in DrawSurfaceBlock functions. This light dithering option not implemented in engoo, but it is in super8. Engoo doesn't really need it. In super8 extreme blocking occurs due to 8-bit colored light and simple ordered dither is not enough. Needs very sloppy noise to smear it around.

I noticed that in the previous update I uploaded, the palette can get messed-up the pcx screenshot files. It needs to use 'thepalette' (global palette) rather than generating one. That will be fixed in next build.

Re: Ground Zero, wonder if that's an openGL effect only?
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Q2 ref_soft replacement with colored light

Postby dwere » Wed May 21, 2014 7:58 am

Well, it works fine in software mode with r_coloredlights 0.
dwere
 
Posts: 11
Joined: Tue Dec 31, 2013 11:19 pm

Re: Q2 ref_soft replacement with colored light

Postby qbism » Wed May 21, 2014 5:00 pm

dwere wrote:Well, it works fine in software mode with r_coloredlights 0.
Are you using Knightmare's 3.24 exe and the game dlls? There's a separate download on kmq2 site for rogue and xatrix.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Q2 ref_soft replacement with colored light

Postby leileilol » Wed May 21, 2014 5:41 pm

The problem's more in the fact BuildLightmapRGB doesn't have negative lights in there IIRC, being a direct port from Engoo code.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Q2 ref_soft replacement with colored light

Postby dwere » Wed May 21, 2014 8:06 pm

The 3.24 archive I downloaded has all the files, including dlls for mission packs.
dwere
 
Posts: 11
Joined: Tue Dec 31, 2013 11:19 pm

Re: Q2 ref_soft replacement with colored light

Postby qbism » Thu May 22, 2014 4:19 am

leileilol wrote:The problem's more in the fact BuildLightmapRGB doesn't have negative lights in there IIRC, being a direct port from Engoo code.
That's the ticket, actually up in R_AddDynamicLightsRGB. I tested this with EF_TRACKER (negative dynamic light effect) but not GZ. But doesn't always work yet, sometimes the light gets brighter. I updated the download files anyway.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Q2 ref_soft replacement with colored light

Postby dwere » Thu May 22, 2014 7:09 am

It works in GZ with r_coloredlights 2, but the effect is inverted with r_coloredlights 1.
dwere
 
Posts: 11
Joined: Tue Dec 31, 2013 11:19 pm

Re: Q2 ref_soft replacement with colored light

Postby qbism » Wed May 28, 2014 1:09 am

dwere wrote:It works in GZ with r_coloredlights 2, but the effect is inverted with r_coloredlights 1.

When toggled, r_coloredlights is always in 'overbright' mode now (the mode that works). Colored lighting looks better in that mode anyway.

Also attempted to speed up a few loops by pulling out variables that can be static. Download is updated.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Q2 ref_soft replacement with colored light

Postby leileilol » Wed May 28, 2014 2:28 am

Yeah but it doens't always look better when in the palette, which is why I put in the option to shift so it can be at the level with the crappy way Q2 GL treats lighting, id software unknowingly divided the Q2 player community from that :P
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Q2 ref_soft replacement with colored light

Postby qbism » Wed May 28, 2014 2:56 am

'In the palette' referring to lack of high-value colors available? Q2 palette is quite dim. Fortunately even with overbright on, colored lighting is seldom strong enough to get washed-out. Normal mono lighting is still shifted into Too Dark! as normal.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Q2 ref_soft replacement with colored light

Postby qbism » Fri May 30, 2014 3:47 am

While looking for bright/intense/not-orange lighting to try out, found this map:
Image
Maric's 'The Blue Devoid'
Last edited by qbism on Sun Jun 22, 2014 4:24 pm, edited 1 time in total.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Q2 ref_soft replacement with colored light

Postby leileilol » Fri May 30, 2014 4:33 am

qbism wrote:'I Normal mono lighting is still shifted into Too Dark! as normal.

Normal mono lighting isn't supposed to be "too dark" - it's meant to have overbrights.


still against the removal of a preference cvar for the miniscule staticizing performance gain btw. I originally started off the colored lighting Q2 driver with colored overbright (which turned out ugly w/ Q2's palette) and decided to add shift options to allow visual consistency with the GL driver as well as a gamma hack for the lookup table for matching the 3dfx MiniGL driver appearance, both options that seem to get along with the palette better.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Q2 ref_soft replacement with colored light

Postby qbism » Sat May 31, 2014 3:46 am

What can't be achieved with gamma and the new color saturation cvar? These give more control and work with negative lighting.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests