UPDATED: Check out the last post.
So, like the title suggests, I've been able to convert Timothy Lottes' CRT shader to C2 thanks mostly to Gigatron's very nice conversion tool from this thread:
Some screenshots of the shader in action:
But there's a problem I need help with: It only seems to like vertical resolutions in the range 256, 512, 768 etc. Anything outside of that and I tend to get ugly double-pixel distortions all over. So, any shader-experts around who'd like to take a look?
UPDATED LINKS 14/9/17 - put these in your effects folder and you're good to go:
https://www.dropbox.com/s/losqzq56msdye ... rt.fx?dl=0
https://www.dropbox.com/s/tsdmg7e6vr5za ... t.xml?dl=0
Develop games in your browser. Powerful, performant & highly capable.
* moved to correct section.
This makes my nostalgia quiver.
This is great! Can you make tube distortion adjustable?
Oh hey, thanks
Sure I'll add it in a bit.
In the meantime tho you can turn it on and off in the shader code at this line here:
If I remember right setting warp = 0 should do it. You can also play around with 1.0/64.0 and 1.0/24.0 to adjust the amount of distortion. Dividing by higher values equal less distortion.
Thank you! This effect looks just right
Love it, thanks for sharing!
Great effect! Need to check it out asap
Any news on this effect?
It's very promising but right now I can't make it work properly (images are always deformed).
By the way it's possible to convert an emulator shader (CRT-Hylian for Libreto/Retroarch, possibly the best CRT simulator available today) to Construct 2? Thanks!
Got around to having another go at this finally. I've only tested on my laptop but it should work with all resolutions. I also added a variable to control screen curvature.
You can apply this to layouts, layers or sprite objects if you want to. Just be sure to set width and height to whatever size your object is. For instance, if you're applying it to a layout you should set width and height to the game resolution. If you put it on a sprite then set it to the sprite's size.
It works best with pixel rounding turned on and fullscreen scaling on high quality.
This is fantastic, thank you very much!!! =D
It's the best CRT effect for C2, congratulations.
EDIT: After many tests I still can't make it work properly.
Hopefully I'll be able to use this effect in my own game - but right now seems it still need adjustments.
Some lines seems to be doubled and others removed:
Original (original image is 240p):
Damn, I thought I squashed that. I'll have another look. Are you using letterbox or letterbox integer?
Try replacing lottes_crt.fx with this:
Does that help?
I messed up. Applied the fix to an old file where in-editor scanline and shadowmask parameters were disabled. Fixed now.
good effect, however as the other crt filter effect this is effect is really heavy on R239 not sure why... i apply the effect on layout directly seems to make the most sense. but its to hard loading even in preview, i only tested it in Chrome/firefox/mobile android.