Swat4 -too dark shadows maybe solved

Jarkko Korpi jarkko_korpi at hotmail.com
Fri Feb 28 02:05:57 CST 2014





I downloaded swat4 demo.

It has too dark swats and shadows. 


http://bugs.winehq.org/show_bug.cgi?id=8848  (which is reported here too also with demo)


I think I figured out what is causing it. 

I noticed that setting windows registerykey useGLSL=disabled made swats look like normal (see my sent pics).


I debuged the game and there wasn't many different lines.

fixme:exec:SHELL_execute flags ignored: 0x00000100
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x33eac4,0x33eac0): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x33ed48,0x00000000), stub!
fixme:wbemprox:client_security_SetBlanket 0x7cf14558, 0x1396f0, 10, 0, (null), 3, 3, (nil), 0x00000000
fixme:wbemprox:client_security_Release 0x7cf14558
fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x00000030
fixme:win:EnumDisplayDevicesW ((null),0,0x33ec68,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33ef58,0x00000000), stub!
fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
fixme:win:EnumDisplayDevicesW ((null),0,0x33ca58,0x00000000), stub!
fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.
fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.


etc etc

But I think wine is missing the next feature, what's causing the black shadows

http://msdn.microsoft.com/en-us/library/windows/desktop/bb173461%28v=vs.85%29.aspx

"You can include the D3DSGR_CALIBRATE value for the first parameter of SetGammaRamp", well its definitely trying to set gamma, but it's IGNORED. 

Here are the pics, before and setting that useGLSL registery key

http://postimg.org/image/kxct6863j/
http://postimg.org/image/n48bm1dk9/

But setting that registery key dosn't help on shadows which are too dark.


According to my knowledge reading some part of that Microsoft explanation making this setgammaramp function shoulnt be too hard, it just adjust the amount of RGB.

 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140228/ba2b994b/attachment.html>


More information about the wine-devel mailing list