| Author | Topics » Book an abo for this thread |  |
maruke Strong supporter
 

Status:Offline Date registered: 22.08.2005 Post:25 Send Message | Created on 22.08.2005 - 18:04 |  |
24.8.05: added version 1.0.1a (adjusted code to be more compatible) 24.8.05: added version 1.0.2a (very tiny speed improvement)
-----------------------------------------------------------------------------------------------------------
Hello!
I wrote a little glslang shader to do edge enhancement which imitates 2xsai to some extend. It does edge antialiasing and it can change color saturation. It's very short and not too slow. For more details look at the link.
I made a little homepage for the shader. There you can download it, too.
de.geocities.com/christian_maruke/main.html#start
Feedback is very welcome.
bye, Maruke
[Dieser Beitrag wurde am 25.08.2005 - 14:35 von maruke aktualisiert]
|
|
|
Z Strong supporter
 

Status:Offline Date registered: 03.08.2005 Post:72 Send Message | Created on 22.08.2005 - 21:54 |  |
Does it work using high x but very high y resolution?
|
maruke Strong supporter
 

Status:Offline Date registered: 22.08.2005 Post:25 Send Message | Created on 22.08.2005 - 22:06 |  |
sure! it works with "very high" for both x and y, too. (as long as your gpu can handle... )
but if you use ee-shader without 2xsai "very high" (x or/and y) is not "recommended". if you do use ee-shader AND 2xsai it will look pretty nice at "very high", too. btw. shader level 2 is recommended (color saturation at 75%).
general thumb rule: ee-shader: x=high, y=high ee-shader+2xsai: x=high or very high, y=high or very high
anyway, you should try which setting pleases you the most.
cheers, maruke
[Dieser Beitrag wurde am 22.08.2005 - 22:42 von maruke aktualisiert]
|
ShadX  Real addict
  

Status:Offline Date registered: 20.01.2005 Post:266 Send Message | Created on 23.08.2005 - 10:24 |  |
I like it... Bye
|
guest  Real addict
  

Status:Offline Date registered: 30.07.2004 Post:856 Send Message | Created on 23.08.2005 - 13:28 |  |
I like the effect very much. You could also add a fourth screenshot with 2xSaI + shader effect. 
|
maruke Strong supporter
 

Status:Offline Date registered: 22.08.2005 Post:25 Send Message | Created on 23.08.2005 - 14:05 |  |
thank you all for your kind comments!
btw, you should try the shader without ANY texture filtering - sometimes (mostly 2d games) it looks better (similar to 2xSai) than with filtering applied - on filtered textures the edge enhancement isn't as strong as possible.
@guest: perhaps i will. i was thinking to add some shots that show the edge anti-aliasing,too... but for the time being i really must start learning for my exams. 
cheers, maruke
[Dieser Beitrag wurde am 23.08.2005 - 14:32 von maruke aktualisiert]
|
Z Strong supporter
 

Status:Offline Date registered: 03.08.2005 Post:72 Send Message | Created on 23.08.2005 - 23:06 |  |
When I wanted to give it a try, I got two error messages saying:
gpuPeteOpenGL2 - VP: ERROR: 0:8: 'assign': cannot convert from 'const float' to '3-component vector of float' ERROR: 0:9: 'assign': cannot convert from 'const float" to '3-component vector of float' ERROR: 2 compilation errors. No code generated.
gpuPeteOpenGL2 - FP: ERROR: 0:9: 'texture2D': no matching overloaded function found ERROR: 0:9: 'assign': cannot convert from 'const float' to '4-component vector of float' ERROR: 0:10: 'texture2D': no matching overloaded function found ERROR: 0:10: 'texture2D': no matching overloaded function found ERROR: 0:10:'/': wrong operand types no operation '/' exists that takes a left-hand operand of type 'const float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:10: 'assign': cannot convert from 'const float' to '4-component vector float' ERROR: 0:11: 'texture2D': no matching overloaded function found ERROR: 0:11: 'texture2D': no matching overloaded function found ERROR: 0:11: '/': wrong operand types no operation '/' exists that takes a left-hand operand of type 'const float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:11: 'assign': cannot convert from 'const float' to '4-component vector of float' ERROR: 0:12: '/': wrong operand types no operation '/' exists that takes a left-hand operand of type '4-component vector of float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:18: '/': wrong operand types no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:18: 'assign': cannot convert from 'float' to '3-component vector of float' ERROR: 0:19: '+': wrong operand types no operation '+' exists that takes a left-hand operand of type 'const int' and a right hand operand of type 'float' (or there is no acceptable conversion) ERROR: 0:19: '*': wrong operand types no operation "*" exists that takes a left-hand operand of type '4-component vector of float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 15 compilation errors: No code genereated.
What about these compilation errors? I'm not sure what to do.
|
maruke Strong supporter
 

Status:Offline Date registered: 22.08.2005 Post:25 Send Message | Created on 24.08.2005 - 11:26 |  |
Hello!
I've uploaded an adjusted version to my homepage which should be more compatible. (thx for giving a hand ShadX).
Has anyone else had trouble - If that's the case which graphics card and driver version are you using?
@Z: I'm sorry for the trouble. On my graphics card it worked quite well - and without any errors. I've got a 6600GT and I'm using Detonator 77.77. Could you please download and test the new version and report your findings? Btw. which graphics card and driver version do you use?
Cheers, Maruke
|
Z Strong supporter
 

Status:Offline Date registered: 03.08.2005 Post:72 Send Message | Created on 25.08.2005 - 01:42 |  |
maruke schrieb
I'm sorry for the trouble. |
Hey no prob! I mean it's great, you guys come up with new shaders every day to enhance other people's gaming experience. For example, when I asked for a color-saturation feature a few days ago guest immediately posted his solution and I'm still thankful 'cause now I can play games in natural colors. 
So no way I'm complaining or something, don't want it to be understood that way, just thought it might be useful posting the error messages for shader developement.
Well I just tried the new version of your shader and congrats: It works! Will post some screenshots tomorrow. To me, it looks best using high X and high Y internal resolutions so far. Even better than high X and very high Y (I don't use 2xsai since my square-games don't like it). And I like the color saturation feature. 
Oh, and it's an ATI R9700 Pro with the latest drivers. Aged but performance is still OK for me.
Greets.
|
maruke Strong supporter
 

Status:Offline Date registered: 22.08.2005 Post:25 Send Message | Created on 25.08.2005 - 12:13 |  |
Z schrieb
...So no way I'm complaining or something, don't want it to be understood that way... | I didn't understand it that way. It's just that if my shader's not working, though it should, it means trouble. Thanks to your feedback the shader's working on ATI cards, too. Thank you!
I'm looking forward to your screenshots. (have you tried it without any texture filtering, yet?)
cheers, Maruke
[Dieser Beitrag wurde am 25.08.2005 - 12:21 von maruke aktualisiert]
|