Custom graphics driver for FF7/FF8 [v.1-.7.6]

  • Thread starter Thread starter halkun
  • Start date Start date
Status
Not open for further replies.
Most shaders will have to be rewritten or atleast modified to work with the driver anyway, and I don't see many people doing that so supporting different shader formats is quite low on my list of priorities. Instead look forward to some interesting stuff that will happen with external textures for the next release :-) Texture compression/caching is already implemented and the ability to override things like blend modes/palettes/zsort and the like will be there. If I can get some extra productive time in you might even have custom animations.
Thanks for the fast reply. That sounds amazing animations REALLY Hmmmm :evil:. Anyway I found a neat little compiler the might solve the background problem (might) it just compiles in .fx format...Matter of fact ALL of the cool shader programs are written for DX9~10 DAMN THEM and there stupid formats!!!!. Sorry I've been up all night studying this crap I think I'm burnt out.
 
I could easily make the main fragment shader able to tell when it's rendering original 2D graphics so a filter could be implemented, but no existing shader code would be able to do it automagically, it would have to be written by someone who knows what they're doing.
 
Well maybe you can tell me why this wouldent work (config for hiresolution) I've tested it on 2D surfaces and it seems to do a good job with some minor tweaks.
 
technique Sharpen
{
    pass Sharpen
    {
        vertexshader =
            asm {
            //
            //
            //
            // Parameters:
            //
            //   float2 ViewSize;
            //
            //
            // Registers:
            //
            //   Name         Reg   Size
            //   ------------ ----- ----
            //   ViewSize     c0       1
            //
           
                preshader
                rcp c0.x, c0.x
                rcp c1.x, c0.y
           
            // approximately 2 instructions used
            //
            //
                vs_1_1
                def c2, 0, 1, 0.5, -0.5
                dcl_position v0
                mov r0.x, -c0.x
                mov r0.y, c1.x
                add oPos.xy, r0, v0
                mov oPos.zw, c2.xyxy
                mad oT0.xy, v0, c2.zwzw, c2.z
           
            // approximately 5 instruction slots used
            };

        pixelshader =
            asm {
            //
            //
            //
            // Parameters:
            //
            //   float2 PixelOffsets[9];
            //   float2 ViewSize;
            //
            //
            // Registers:
            //
            //   Name         Reg   Size
            //   ------------ ----- ----
            //   PixelOffsets c0       9
            //   ViewSize     c9       1
            //
           
                preshader
                rcp r0.x, c9.x
                rcp r0.y, c9.y
                mul c9.xy, r0.xy, c0.xy
                mul c10.xy, r0.xy, c1.xy
                mul c11.xy, r0.xy, c2.xy
                mul c12.xy, r0.xy, c3.xy
                mul c13.xy, r0.xy, c4.xy
                mul c14.xy, r0.xy, c5.xy
                mul c15.xy, r0.xy, c6.xy
                mul c16.xy, r0.xy, c7.xy
                mul c17.xy, r0.xy, c8.xy
           
            // approximately 11 instructions used
            //
            //
            //
            // Parameters:
            //
            //   float PixelWeights[9];
            //   sampler2D frameSamp;
            //
            //
            // Registers:
            //
            //   Name         Reg   Size
            //   ------------ ----- ----
            //   PixelWeights c0       9
            //   frameSamp    s0       1
            //
           
                ps_2_0
                def c18, 0.125, 0, 0, 0
                dcl t0.xy
                dcl_2d s0
                add r8.xy, t0, c10
                add r7.xy, t0, c9
                add r6.xy, t0, c11
                add r5.xy, t0, c12
                add r4.xy, t0, c13
                add r3.xy, t0, c14
                add r2.xy, t0, c15
                add r1.xy, t0, c16
                add r0.xy, t0, c17
                texld r8, r8, s0
                texld r7, r7, s0
                texld r6, r6, s0
                texld r5, r5, s0
                texld r4, r4, s0
                texld r3, r3, s0
                texld r2, r2, s0
                texld r1, r1, s0
                texld r0, r0, s0
                mul r8, r8, c1.x
                mad r7, r7, c0.x, r8
                mad r6, r6, c2.x, r7
                mad r5, r5, c3.x, r6
                mad r4, r4, c4.x, r5
                mad r3, r3, c5.x, r4
                mad r2, r2, c6.x, r3
                mad r1, r1, c7.x, r2
                mad r0, r0, c8.x, r1
                mul r0, r0, c18.x
                mov oC0, r0
           
            // approximately 29 instruction slots used (9 texture, 20 arithmetic)
            };
    }
}

Edit Damn I forgot to compile it with an original size as reference.
 
Last edited:
I need the aali's custom graphic driver. I think I have it but I dont know how to use it. I've been told that, in order to make timu's barret textured, i have to use this. But I also remember that I've been told that aali's custom is only for Vista? Is there one for XP? If the said driver is for both XP and Vista, can anyone help me with it?
 
But I also remember that I've been told that aali's custom is only for Vista?
You should find the person who told you this and render them infertile in the most painful manner you can imagine; the driver works with XP :-D
 
But I also remember that I've been told that aali's custom is only for Vista?
You should find the person who told you this and render them infertile in the most painful manner you can imagine; the driver works with XP :-D
Really? Well, how do i make it work? What I did was, I double clicked the one WITHOUT the 64 bit or vista. But nothing... didn't do anything. Here's my prob. I have Timu's Barret. Before, it has textures. Now its just black after I reformatted my pc. So how can I fix this?
 
Really? Well, how do i make it work? What I did was, I double clicked the one WITHOUT the 64 bit or vista. But nothing... didn't do anything. Here's my prob. I have Timu's Barret. Before, it has textures. Now its just black after I reformatted my pc. So how can I fix this?
Maybe there's something wrong with your Barret model? Who knows, maybe some files didn't get copied properly when you reformatted your PC?

The only help I can give you ATM is suggesting that you redownload and reinstall Timu's Barret model.
 
Really? Well, how do i make it work? What I did was, I double clicked the one WITHOUT the 64 bit or vista. But nothing... didn't do anything. Here's my prob. I have Timu's Barret. Before, it has textures. Now its just black after I reformatted my pc. So how can I fix this?
Maybe there's something wrong with your Barret model? Who knows, maybe some files didn't get copied properly when you reformatted your PC?

The only help I can give you ATM is suggesting that you redownload and reinstall Timu's Barret model.
Did that both many times earlier... and still nothing
 
Did that both many times earlier... and still nothing
Hmm, then I really don't know what to do. There's no reason why the driver shouldn't work, as long as you're not using a certain pirated version of the game. You'll have to try messing around with the driver or wait until someone else comes online who can give you more detailed information.

BTW, don't go into FF7config after you install the driver; if you do, you'll reset everything and have to install the driver again.
 
Well maybe you can tell me why this wouldent work (config for hiresolution) I've tested it on 2D surfaces and it seems to do a good job with some minor tweaks.

...
Because it's not written in GLSL? :)
Looks like a reasonably simple shader, should be rather easy to reimplement as a GLSL function. Even now you can make it not apply to most 3D models by checking for vertextype == TLVERTEX and with future versions of the driver it could be made perfect so it only applies to field backgrounds.
 
Did that both many times earlier... and still nothing
Hmm, then I really don't know what to do. There's no reason why the driver shouldn't work, as long as you're not using a certain pirated version of the game. You'll have to try messing around with the driver or wait until someone else comes online who can give you more detailed information.

BTW, don't go into FF7config after you install the driver; if you do, you'll reset everything and have to install the driver again.
Aww man... thanks anyway
 
Well maybe you can tell me why this wouldent work (config for hiresolution) I've tested it on 2D surfaces and it seems to do a good job with some minor tweaks.

...
Because it's not written in GLSL? :)
Looks like a reasonably simple shader, should be rather easy to reimplement as a GLSL function. Even now you can make it not apply to most 3D models by checking for vertextype == TLVERTEX and with future versions of the driver it could be made perfect so it only applies to field backgrounds.
Can you help me out dude? Afterall.. it is your driver right? :-D
 
Can you help me out dude? Afterall.. it is your driver right? :-D
Well, not really, "it works for me".
I have it running on my XP box, I just click the .reg file and it works. Whatever configuration you have that keeps this from working, it's unlikely there's anything I can do about it.
 
Well maybe you can tell me why this wouldent work (config for hiresolution) I've tested it on 2D surfaces and it seems to do a good job with some minor tweaks.

...
Because it's not written in GLSL? :)
Looks like a reasonably simple shader, should be rather easy to reimplement as a GLSL function. Even now you can make it not apply to most 3D models by checking for vertextype == TLVERTEX and with future versions of the driver it could be made perfect so it only applies to field backgrounds.
Oh is that what that is! :wink: I was wonderin what all those fancy symbols were :lol:.

EDIT:Ooops I was tired you already support glsl.
 
Last edited:
@Cronus have you checked REGEDIT to see if the registry setting is correct ?
also if you dont know how to check regedit type
REGEDIT
into your RUN box on XP or the search box on Vista and the program should appear (if that fails run it from C:\WINDOWS\SYSTEM32\REGEDIT.EXE for the default path although this may change if you installed windows somwhere else)
then click the + box next to next to
"MY COMPUTER"
then click the + box next to
"HKEY_LOCAL_MACHINE"
then the + next to
"SOFTWARE"
then the + box next to
"Square Soft, Inc."
then the + next to
"Final Fantasy VII"
then the + next to
"1.00"
Then click on the folder called
"Graphics"
now in the righthand box a list should appear, please post what the list of boxes say and their values (if possible post a screenshot)
 
@Cronus have you checked REGEDIT to see if the registry setting is correct ?
also if you dont know how to check regedit type
REGEDIT
into your RUN box on XP or the search box on Vista and the program should appear (if that fails run it from C:\WINDOWS\SYSTEM32\REGEDIT.EXE for the default path although this may change if you installed windows somwhere else)
then click the + box next to next to
"MY COMPUTER"
then click the + box next to
"HKEY_LOCAL_MACHINE"
then the + next to
"SOFTWARE"
then the + box next to
"Square Soft, Inc."
then the + next to
"Final Fantasy VII"
then the + next to
"1.00"
Then click on the folder called
"Graphics"
now in the righthand box a list should appear, please post what the list of boxes say and their values (if possible post a screenshot)
This is what it says:
graphicse.png

http://img690.imageshack.us/img690/7171/graphicse.png
 
ok chronos everything there looks fine so its most likley not a regsitry problem then. that narrows it down a little.
Now what does your App.log say ?
also are you sure ff7_opengl.fgd and ff7_opengl.cfg are in the same place as ff7.exe ?
if you could post a screenshot of the root of ur FF7 folder as well as the text from App.log it might help.
 
Oops I was tired before sorry Aali...I meant I will try to re implement the shader to GLSL but like I said before I am sort of a noob so what might be easy for you is near impossible for me :-).
 
ok chronos everything there looks fine so its most likley not a regsitry problem then. that narrows it down a little.
Now what does your App.log say ?
also are you sure ff7_opengl.fgd and ff7_opengl.cfg are in the same place as ff7.exe ?
if you could post a screenshot of the root of ur FF7 folder as well as the text from App.log it might help.
I dont see any.. Where can I find it? The APP.log i mean..

Here's my FF7 folder.. oh yeah, please dont mind if its messy. I was just so eager making the AC Cloud work so I pasted everything trying to do every option I had.

ff7folder.png

http://img211.imageshack.us/img211/3928/ff7folder.png
 
hey Cronus. The App.log is the first file on your filelist (the text document called "App").
Well it looks like all your files are in the right place, You could try a 1.02 unpatched FF7.EXE if your using any patches.
But hopefully your App.log will help see if Aali's driver is running correctly.
 
Status
Not open for further replies.
Back
Top