Basic questions about 3Dmigoto/HLSL sintax...

Post Reply
Rubini
Two Eyed Hopeful
Posts: 65
Joined: Thu Sep 19, 2019 1:51 pm

Basic questions about 3Dmigoto/HLSL sintax...

Post by Rubini »

Hi guys,

I have some basic doubts regarding the syntax of 3dmigoto/HLSL.
I tried to find some info on the web but dont found any.
I'll try to be succinct and clear, excuse me about so basic questions, i am really confused about it.
See these examples below:

Case1:
HLSL code:

float4 ini = IniParams.Load(0);
if ini.y ....
if ini.x ....

float4 deth = IniParams.Load(int2(20,0));
if depth.x ....

float4 menu = IniParams.Load(int2(21,0));
if menu.x ...

float4 tex_filter = IniParams.Load(int2(2,0));
if (tex_filter.x == 3) ...


These ones are related to constants/code on d3dx.ini:
y=
x=
x20=
x21=
filter_index=3

Thats ok.


But if i have these constants:
y21
z12
w13
How can i call them on HLSL?

also, in the same example above
float4 menu = IniParams.Load(int2(21,0));
if menu.x ...

Is it possible to call "menu.y"? if so, how? And how to write it on d3dx.ini?

Another one: what is the diference between IniParams.Load(0), IniParams.Load(int2(2,0)) and iniParams.Load(int2(20,0)). Why IniParams.Load(int2(2,0)) refer to filter_index?
What "float 4" means on the examples above?



Case2:
On a HUD fix frequently i saw this:
if (o0.w != 1)
{
o0.x -= stereo.x * (o0.w - stereo.y) * (1-iniParams.y);
}


What "o0.w != 1" means about a shader position here?


Thanks to any help!
3DNovice
Petrif-Eyed
Posts: 2398
Joined: Thu Mar 29, 2012 4:49 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by 3DNovice »

....
Last edited by 3DNovice on Sun Mar 17, 2024 11:25 am, edited 2 times in total.
3DNovice
Petrif-Eyed
Posts: 2398
Joined: Thu Mar 29, 2012 4:49 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by 3DNovice »

....
Last edited by 3DNovice on Sun Mar 17, 2024 11:25 am, edited 1 time in total.
Rubini
Two Eyed Hopeful
Posts: 65
Joined: Thu Sep 19, 2019 1:51 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by Rubini »

Hi mate,
Thanks by the attention. I already made some fix for few games, mainly adjusting HUD to my likes.
These days i´m working on a Geo11 fix/update for MadMax, a game that i love and have lost all my work on it in a hard disk crash a year ago.
Then now that i'm working on it again I decided to ask about some old doubts by me on the subject. Just this.
But i guess that this could be also the doubts by others, so it can be useful.
3DNovice
Petrif-Eyed
Posts: 2398
Joined: Thu Mar 29, 2012 4:49 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by 3DNovice »

....
Last edited by 3DNovice on Sun Mar 17, 2024 11:26 am, edited 1 time in total.
cicicleta
One Eyed Hopeful
Posts: 12
Joined: Sun Oct 11, 2020 5:14 am

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by cicicleta »

But if i have these constants:
y21
z12
w13
How can i call them on HLSL?

On HLSL for example:
float4 menu = IniParams.Load(int2(21,0)); the number 21 is the number behind the letter y21 in d3dx.ini so

if you write in d3dx.ini
x21=1
y21=2
x21=3
w21=4

in HLSL
float4 menu = IniParams.Load(int2(21,0));
menu.x is 1
menu.y is 2
menu.z is 3
menu.w is 4



Another one: what is the diference between IniParams.Load(0), IniParams.Load(int2(2,0)) and iniParams.Load(int2(20,0)). Why IniParams.Load(int2(2,0)) refer to filter_index?

IniParams.Load(0) refers x y z w
IniParams.Load(int2(2,0)) refers x2 y2 z2 w2
iniParams.Load(int2(20,0) refers x20 y20 z20 w20
and so on


What "float 4" means on the examples above?

It means a value that has 4 values x y z w
float3 is three x y z
float2 is two x y
float has one x



Case2:
On a HUD fix frequently i saw this:
if (o0.w != 1)
{
o0.x -= stereo.x * (o0.w - stereo.y) * (1-iniParams.y);
}

What "o0.w != 1" means about a shader position here?

And not sure but I think is about checking fullscreen
Rubini
Two Eyed Hopeful
Posts: 65
Joined: Thu Sep 19, 2019 1:51 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by Rubini »

cicicleta wrote: Fri Feb 09, 2024 12:56 pm But if i have these constants:
y21
z12
w13
How can i call them on HLSL?

On HLSL for example:
float4 menu = IniParams.Load(int2(21,0)); the number 21 is the number behind the letter y21 in d3dx.ini so

if you write in d3dx.ini
x21=1
y21=2
x21=3
w21=4

in HLSL
float4 menu = IniParams.Load(int2(21,0));
menu.x is 1
menu.y is 2
menu.z is 3
menu.w is 4



Another one: what is the diference between IniParams.Load(0), IniParams.Load(int2(2,0)) and iniParams.Load(int2(20,0)). Why IniParams.Load(int2(2,0)) refer to filter_index?

IniParams.Load(0) refers x y z w
IniParams.Load(int2(2,0)) refers x2 y2 z2 w2
iniParams.Load(int2(20,0) refers x20 y20 z20 w20
and so on


What "float 4" means on the examples above?

It means a value that has 4 values x y z w
float3 is three x y z
float2 is two x y
float has one x



Case2:
On a HUD fix frequently i saw this:
if (o0.w != 1)
{
o0.x -= stereo.x * (o0.w - stereo.y) * (1-iniParams.y);
}

What "o0.w != 1" means about a shader position here?

And not sure but I think is about checking fullscreen
Hi mate, thanks for your help too!
I just finished polishing Mad Max for Geo11/win10 yesterday and was reminded of some of my own questions above. ;)
3DNovice
Petrif-Eyed
Posts: 2398
Joined: Thu Mar 29, 2012 4:49 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by 3DNovice »

....
Last edited by 3DNovice on Sun Mar 17, 2024 11:26 am, edited 1 time in total.
3DNovice
Petrif-Eyed
Posts: 2398
Joined: Thu Mar 29, 2012 4:49 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by 3DNovice »

....
Last edited by 3DNovice on Sun Mar 17, 2024 11:26 am, edited 1 time in total.
Rubini
Two Eyed Hopeful
Posts: 65
Joined: Thu Sep 19, 2019 1:51 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by Rubini »

3DNovice wrote: Sat Feb 17, 2024 5:58 pm
Rubini wrote: Sat Feb 17, 2024 1:32 pm Hi mate, thanks for your help too!
I just finished polishing Mad Max for Geo11/win10 yesterday and was reminded of some of my own questions above. ;)
So does that mean that you have figured all of this IniParams stuff out and were able to fix the issue?
Yes, almost all ;)
3DNovice
Petrif-Eyed
Posts: 2398
Joined: Thu Mar 29, 2012 4:49 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by 3DNovice »

....
Last edited by 3DNovice on Sun Mar 17, 2024 11:26 am, edited 1 time in total.
Rubini
Two Eyed Hopeful
Posts: 65
Joined: Thu Sep 19, 2019 1:51 pm

Re: Basic questions about 3Dmigoto/HLSL sintax...

Post by Rubini »

3DNovice wrote: Sun Feb 18, 2024 9:47 pm
3DNovice wrote: Tue Jan 23, 2024 1:33 pm Any link that direct to the Nvidia forums, might be better observed via "The WayBack Machine" or the forum rip.
If you use that forum rip and search IniParams, you'll get a number of hits, might be useful info there as well.
It's hosted by bo3b, http://bo3b.net/3DV-updated.7z
If I remember correctly, all thanks go to Lacuna for the forum rip

The forum rip makes it somewhat easy to find old informational posts. While they are not fully intact, the
majority still exists and is much better than looking at the same thread on Nvidia's new crappy forums, that
for reasons only known to them, has been dubbed "Fort Awesome"

You can use wayback machine to look at forum rips to see missing pics.
Thanks by the tip!
Post Reply

Return to “Nvidia 3D Vision Fixes, Solutions and Troubleshooting”