Previous topicNext topic

Shadertoy to ISF

Tutorials, FAQs, resources, and examples for using Magic.
Terry Payman
Posts: 807
Joined: Sun Sep 14, 2014 8:15 am
Location: UK
Contact:

Re: Shadertoy to ISF

Post by Terry Payman »

Eric wrote:... I will have a look when I get a chance.
Thanks Eric! This shader is particularly interesting with its built-in DSP audio filtering. It will be great if that's possible in Magic.
Eric wrote:Shouldn't your AudioToImage module have Spectrum selected, not Waveform? Maybe not, I dunno.
It's definitely AudioToImage Waveform for all oscilloscope-like shaders, although it can sometimes give interesting effects if the "wrong" setting or a combination is used.
Michael_Z_Freeman
Posts: 5
Joined: Sat May 06, 2017 6:21 pm

Re: Shadertoy to ISF

Post by Michael_Z_Freeman »

How do I convert this ?

https://www.shadertoy.com/view/4tX3Rj

I had it in ISF Editor and started making some code corrections to the point where there are no compiler errors.

But the ISF Editor just sits there with a black render screen.

Is there a "compile" or "start" button ?

Alternatively is there a modern way in 2025 (last post here 2019) to convert from Shadertoy ?

I've been trying to solve this for years and its always the mouse and ichannels or whatever, blah blag blah. It looks like its well understood what the problem is yet every single shadertoy importer or convertor I've used fails miserably at this task. Even A.I's fail to fix the shader code.

Do I have to join some arcane shader cult or something ? :lol:
TKS
Posts: 165
Joined: Mon May 17, 2021 10:40 am

Re: Shadertoy to ISF

Post by TKS »

Code: Select all

if (iMouse.z<1.) mouse=vec2(0.,-.2);
iMouse is type point2D, so it has no "z" vector.

Change the line to

Code: Select all

if (iMouse.y<1.) mouse=vec2(0.,-.2);
and call it a day 8-)
thedoger82
Posts: 14
Joined: Wed Oct 02, 2019 4:58 pm

Re: Shadertoy to ISF

Post by thedoger82 »

Hi there, i came almost for the same, a little help translating, so, i have this shadertoy https://www.shadertoy.com/view/ft2SWt which i want to convert, and happens something similar to me, ISF converter just gives me a black screen, can someone plz translate this shadertoy, so i can compare and see what my mistakes are? TIA
Sadler
Posts: 1348
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Shadertoy to ISF

Post by Sadler »

wrote:just gives me a black screen, can someone plz translate this shadertoy, so i can compare and see what my mistakes are
I had no problems and didn't have to touch a line of code.
Zeno's_dominoes_ft2SWt.fs
(7.08 KiB) Downloaded 9319 times
thedoger82
Posts: 14
Joined: Wed Oct 02, 2019 4:58 pm

Re: Shadertoy to ISF

Post by thedoger82 »

Sadler wrote: Sat Apr 12, 2025 8:09 pm
wrote:just gives me a black screen, can someone plz translate this shadertoy, so i can compare and see what my mistakes are
I had no problems and didn't have to touch a line of code.
Zeno's_dominoes_ft2SWt.fs
Hi Sadler, thanks a lot for your quick response... But im still getting a black screen in magic, i have tried in macbook pro 2012 13" Magic demo version 2.33, Osx Catalina 10.15.7 and Macmini M1 2020 Ventura 13.4 Magic full version 2.33 as well, and in ISFEditor it says there are some synthax errors, but even if i fix them im still getting black screen. :cry:
Sadler
Posts: 1348
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Shadertoy to ISF

Post by Sadler »

It would be interesting to know the nature of your syntax errors though, I say again, I had none (Windows 10). It's likely down to the GL implementation on Macs? Maybe mac graphics on the various macos versions don't support certain GL features that are supported on Nvidia drivers (I see 403 gl extensions) - I don't know as I have never used macs . That shader doesn't seem to be doing anything too funky but is heavy on the gpu - I barely get 60fps in magic with it on a mobile 2080.
Post Reply