Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
06465 Graphics Minor Always Jan 1, 2017, 14:54 Jan 6, 2017, 07:10
Tester dadabhai View Status Public Platform MAME (Official Binary)
Assigned To Resolution Unable to reproduce OS Windows 10 (64-bit)
Status [?] Closed Driver
Version 0.181 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 06465: defocus value in mame.ini or any other preset ini file not being read
Description I am using BGFX - hlsl as the graphical effect to reproduce CRT monitor effect, and wanted to set the defocus value to 1.3 by editing the value in mame.ini and raster.ini (as I am playing raster games like mk2, sf2 etc). However, in game the value is always starting off at 0.5 for both X and Y. There are two workarounds 1) use the in-game sliders to set defocus to 1.3 2) edit the hlsl.json file to alter the default defocus from 0.5 to 1.3
Steps To Reproduce 1) Set graphics mode to bgfx
2) Use hlsl as the bgfx effect
3) edit the mame.ini file and raster.ini file to change defocus value to anything non default
4) Load up a raster game and notice that defocus is still at 0.5 when viewing its value with the in game sliders
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
2
User avatar
No.13524
B2K24
Senior Tester
Jan 1, 2017, 21:38
edited on: Jan 2, 2017, 00:28
It looks like you're mixing up using HLSL with -video d3d as opposed to using BGFX with the HLSL shader chain. In some ways these two different methods are similar but yet different as well.
Settings in mame.ini and the raster.ini or anything in "MAME\ini\presets" only applies to -video d3d and enabling hlsl and does not apply to BGFX.

If using bgfx video and hlsl.json as your chain, you simply need to open hlsl.json with Notepad ++ and locate line # 87 - set as listed below.

{ "type": "vec2", "name": "defocus", "text": "Defocus, ", "default": [ 1.3, 1.3 ], "max": [ 2.0, 2.0 ], "min": [ 0.0, 0.0 ], "step": 0.1, "format": "%1.1f", "screen": "crt" },


After saving the change you will get desired result of 1.3, 1.3 when loading any set.
User avatar
No.13526
B2K24
Senior Tester
Jan 6, 2017, 03:13
Closing as unable to reproduce.