MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

"The Manuel"
Old Fart
Reged: 10/08/03
Posts: 244
Loc: Michigan, USA
Send PM
Re: Migrating old hlsl setup from v0.151 to v0.202
11/01/18 08:39 PM


Alright, I just moved on like everybody else and found a new set of HLSL parameters that I liked even more than my old one.

However, I learned about BGFX in the last couple of days and I'm exploring migrating to it, if anything because when I load CPWizard while playing a game, the display switches almost immediately between the game and CPWizard, whereas this happens quite slowly with d3d. Also, it is the direction the MAME team is going and the old HLSL will be left behind, eventually obsoleting my setup again.

In order to transfer my most recent, compatible HLSL raster setup to BGFX, I made a local copy of the BGFX hlsl.json file, found all the parameters from "regular" HLSL setup and changed them in that file. However, the resulting image was messed up. I traced the problem down to radial convergence and slot mask pixel count parameters.

The radial convergence was way off using the same numbers that I had in regular HLSL so it looks like perhaps BGFX uses a different sort of scale for these parameters than plain HLSL. The slot mask pixel count in my HLSL settings is negative for both x and y (I got it from a forum) and works perfectly fine but in BGFX HLSL it's not even inside the allowable range which doesn't include negative numbers.

Is there some decoder ring that will help me find equivalent values for these parameters between old HLSL and BGFX HLSL?

Also, is it possible to have a BGFX shader for vector games like the regular HLSL MAME vector.ini preset, which looks fantastic?







Entire thread
Subject Posted by Posted on
* Migrating old hlsl setup from v0.151 to v0.202 "The Manuel" 10/27/18 08:03 AM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 "The Manuel"  11/01/18 08:39 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 anikom15  11/02/18 09:40 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 "The Manuel"  11/02/18 09:45 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 uman  11/02/18 01:59 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 "The Manuel"  11/02/18 02:56 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 anikom15  11/02/18 09:44 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 "The Manuel"  11/02/18 09:47 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 uman  11/02/18 06:59 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 "The Manuel"  11/02/18 08:17 PM
. * Re: Migrating old hlsl setup from v0.151 to v0.202 anikom15  10/27/18 09:55 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 155 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 862