Boris, Could You make an effect.txt that have this effect?
http://devlog-martinsh.blogspot.com/201 ... rtion.html
Camer Distortion Effect.txt request
- Author
- Message
-
Offline
- *sensei*
- Posts: 341
- Joined: 27 Dec 2011, 21:33
- Location: Poland, Gdańsk
Camer Distortion Effect.txt request
_________________
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
-
Offline
- *blah-blah-blah maniac*
- Posts: 17560
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: Camer Distortion Effect.txt request
Ask someone familiar with shaders here, i don't see any future in such shader programming.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- *blah-blah-blah maniac*
- Posts: 17560
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: Camer Distortion Effect.txt request
You strange guys, this is so simple effect, better ask Matso.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- *master*
- Posts: 119
- Joined: 05 Jan 2012, 22:34
- Location: France
Re: Camer Distortion Effect.txt request
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.
If you want chromatic aberration with & more controls, I can upload my effect.txt.
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);
-
Offline
- Posts: 79
- Joined: 30 May 2012, 03:58
- Location: Denver Colorado
Re: Camer Distortion Effect.txt request
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.
-
Offline
- *master*
- Posts: 119
- Joined: 05 Jan 2012, 22:34
- Location: France
Re: Camer Distortion Effect.txt request
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
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
-
Offline
- Posts: 18
- Joined: 19 Jun 2012, 18:58
Re: Camer Distortion Effect.txt request
Can you PM me that effect? Could it work with SA?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
-
Offline
- *sensei*
- Posts: 341
- Joined: 27 Dec 2011, 21:33
- Location: Poland, Gdańsk
Re: Camer Distortion Effect.txt request
Thank You very much!
_________________
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
-
Offline
- *blah-blah-blah maniac*
- Posts: 530
- Joined: 30 Jan 2012, 13:18
Re: Camer Distortion Effect.txt request
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.