Page 1 of 1
Camer Distortion Effect.txt request
Posted: 11 Aug 2012, 15:21
by MaxG3D
Boris, Could You make an effect.txt that have this effect?
http://devlog-martinsh.blogspot.com/201 ... rtion.html
Re: Camer Distortion Effect.txt request
Posted: 11 Aug 2012, 18:28
by ENBSeries
Ask someone familiar with shaders here, i don't see any future in such shader programming.
Re: Camer Distortion Effect.txt request
Posted: 17 Aug 2012, 11:45
by turgor128
Re: Camer Distortion Effect.txt request
Posted: 17 Aug 2012, 12:32
by ENBSeries
You strange guys, this is so simple effect, better ask Matso.
Re: Camer Distortion Effect.txt request
Posted: 18 Aug 2012, 13:52
by icelaglace
Well, I actually did that today; for adapting my GTA4 anamorphic lens flare to the game.
As Boris said, it's a very simple code.
Copy paste that in your effect.txt.
Code: Select all
// lens distortion value
float k = -1;
// cubic distortion value
float kcube = 0.5;
float r2 = (coord.x-0.5) * (coord.x-0.5) + (coord.y-0.5) * (coord.y-0.5);
float f = 0;
if( kcube == 0.0){
f = 1 + r2 * k;
}else{
f = 1 + r2 * (k + kcube * sqrt(r2));
};
float x = f*(coord.x-0.5)+0.5;
float y = f*(coord.y-0.5)+0.5;
float3 inputDistord = tex2D(SamplerColor,float2(x,y));
return float4(inputDistord.r,inputDistord.g,inputDistord.b,1);
If you want chromatic aberration with & more controls, I can upload my effect.txt.
Re: Camer Distortion Effect.txt request
Posted: 18 Aug 2012, 21:08
by CaptainSkullsaber
icelaglace - Myself and perhaps a few others would enjoy if you could Post your Effects file up, as it's own post in this section (Effects add-ons) , then this particular effect would be available to everyone ( Non-coders included), and this issue will be wrapped up in a nice organized package.
Re: Camer Distortion Effect.txt request
Posted: 21 Aug 2012, 15:49
by icelaglace
Hmm, okay sure.
I actually did some chromatic aberration with the lens effect + added some blurry vignette to fit.
I'll post the effect.txt in an appropriate post then
Re: Camer Distortion Effect.txt request
Posted: 21 Aug 2012, 18:52
by Ivars
icelaglace wrote:Hmm, okay sure.
I actually did some chromatic aberration with the lens effect + added some blurry vignette to fit.
I'll post the effect.txt in an appropriate post then
Can you PM me that effect? Could it work with SA?
Re: Camer Distortion Effect.txt request
Posted: 22 Aug 2012, 11:46
by MaxG3D
Thank You very much!
Re: Camer Distortion Effect.txt request
Posted: 24 Aug 2012, 19:06
by Marty McFly
I'd like it, too. I had this lens distortion shader a few weeks ago but I didn't like it much because I didn't know how I can distort one single channel.