Posts: 1.157
Threads: 11
Joined: Dec 2008
Reputation:
4
Interlace working at easy way: [frame 0, buffer 0, generate picture, DRAW, swap, frame 1, buffer 1, generate picture, DRAW, clear, swap]. The main reason for not doing clear before frames 0 and 1 is to draw frame 1 overtop frame 0 picture -- glClear work with window, not buffer.
Posts: 1.157
Threads: 11
Joined: Dec 2008
Reputation:
4
Give me a log, please! gs.log . Maybe than I could tell you a reason of this error.
Posts: 2
Threads: 0
Joined: Sep 2010
Reputation:
0
09-14-2010, 04:08 AM
(This post was last modified: 09-14-2010, 04:09 AM by Razredge.)
Ok, so I found the problem.
The plugin was trying to create GSzzogl.log, but instead of going to the default (chosen) logs folder, it was trying to create a log file in a non-existant logs folder, in the main PCSX2 folder. I had to create the folder myself in the main folder.
And because it couldn't create the log file (as the folder didn't exist), it would fail to load.
Should this count as a bug, or it was just me who didn't know there should be a logs folder in the main PCSX2 directory, even if my default logs folder isn't there?
(Sorry for the abuse of the word "folder", lol)
Posts: 1.157
Threads: 11
Joined: Dec 2008
Reputation:
4
This behavior are sound like a bug.
To everyone: I was able to successfully made new GLSL shader work. They do not work like a charm, but some games are look fine. I don't know why FFX picture are greeenish.
Posts: 543
Threads: 16
Joined: Dec 2008
Reputation:
7
Location: Las Vegas, NV
Sounds encouraging. Haven't been able to run them on my system yet. With r235, I end up getting the following errors:
Starting shader for TextureFog1_32PS
CompileShader
Creating shader 1 for TextureFog1_32PS
Compiling... 1: 0(13) : warning C7101: Macro GL_compatibility_profile redefined
0(58) : error C7532: global type sampler2DRect requires "#version 140" or later
0(143) : error C7532: global function texture requires "#version 130" or later
0(147) : error C7532: global function modf requires "#version 130" or later
0(189) : error C7532: global function modf requires "#version 130" or later
0(256) : error C7532: global function texture requires "#version 130" or later
0(329) : error C7532: global function texture requires "#version 130" or later
0(665) : error C7532: global function trunc requires "#version 130" or later
Failed to compile shader for TextureFog1_32PS:
Used Empty shader for TextureFog1_32PS... Ok
Oddly enough, if I change "#version 120" in the code to "#version 150", I get:
Starting shader for TextureFog1_32PS
CompileShader
Creating shader 1 for TextureFog1_32PS
Compiling... 1: 0(9) : error C0204: version directive must be first statement and may not be repeated
0(14) : warning C7101: Macro GL_compatibility_profile redefined
0(506) : warning C7533: global variable gl_FragData is deprecated after version 120
0(506) : error C7533: global variable gl_Color is deprecated after version 120
0(537) : warning C7533: global variable gl_FragColor is deprecated after version 120
0(537) : error C7533: global variable gl_TexCoord is deprecated after version 120
Failed to compile shader for TextureFog1_32PS:
Used Empty shader for TextureFog1_32PS... Ok
Posts: 6.069
Threads: 68
Joined: May 2010
Reputation:
167
Location: Grenoble, France
Really a good news.
Arcum, maybe you can try "#version 150 compatibility" instead.
Better use 150 which is related to openGL 3.2 (3.3 ?) But it removed some openGL 2 stuff (which are not efficient on new hardware anyway).
Posts: 543
Threads: 16
Joined: Dec 2008
Reputation:
7
Location: Las Vegas, NV
That actually works better in that those errors go away and it doesn't crash instantly. It doesn't actually display anything on my system, and gives errors like:
"error in PutParametersInProgam param name g_fc0, location 15, typr 3
error in PutParametersInProgam param name g_fBitBltPos, location 0, typr 3
error in PutParametersInProgam param name g_fBitBltTex, location 1, typr 3"
though. Ah well, Zeydlitz might have changes in his trunk that haven't been committed yet. I'm just trying to get it working properly on my system so I can tackle getting it into zzogl-pg...
Posts: 1.157
Threads: 11
Joined: Dec 2008
Reputation:
4
You videocard does not support type sampler2DRect (i.e GLSL 1.4)? Rect is a required for GLSL, it's unavoidable.
Posts: 543
Threads: 16
Joined: Dec 2008
Reputation:
7
Location: Las Vegas, NV
My videocard doesn't support sampler2DRect if "#version 120" is defined. Presumably because it was introduced in 1.4.0. My videocard loads the shaders properly with "#version 150 compatibility" defined; they just don't actually seem to display anything...