Previous topicNext topic

Shadertoy to ISF convertor issues

Questions, comments, feedback, etc.
Post Reply
sameloop
Posts: 38
Joined: Thu Oct 27, 2016 5:58 pm

Shadertoy to ISF convertor issues

Post by sameloop »

Hi.

So I used your converter to make an ISF file

https://magicmusicvisuals.com/utils/sha ... to_isf.php

I followed the instructions (changed the text file extension to .fs) and can't seem to get Magic to recognise the new shader and folder created.

I've made one in the actual Magic/Modules2/ISF folder and also one on another drive and no joy. They have been added in the 'Additional Module Folders' section.

I'm using the 64bit version if that's relevant.

I understand that you won't see an empty folder in the 'add' list - the folder has to have a compatible file in it to show up (?)

Any ideas gratefully received. Thanks.
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: Shadertoy to ISF convertor issues

Post by Magic »

Here is the Additional Module Folders tutorial: viewtopic.php?f=3&t=412

If that doesn't help, make sure you are copying ALL the text in the converter. Some people accidentally leave off the last line or two, such as the closing curly brace, "}", which is critically important.

If that doesn't help, post the Shadertoy shader you are trying to convert, and I'll take a look.
steffey
Posts: 24
Joined: Fri Feb 09, 2018 4:04 am

Re: Shadertoy to ISF convertor issues

Post by steffey »

Are you sure the files are really .fs?
I was having an issue with the saved text files ending up as Filename.fs.txt.
If you have that issue, you can fix it by forcing another .fs file to open in notepad, pasting over the data, and re-saving under the new name.
sameloop
Posts: 38
Joined: Thu Oct 27, 2016 5:58 pm

Re: Shadertoy to ISF convertor issues

Post by sameloop »

Hi there.

Yes, I did have an issue with that, but changed the extension properly to .fs afterwards.

So currently, some of the Shadertoy converted files have worked, some half-worked and some not at all (just a black screen).

I have definitely copied them properly, not omitting anything.

Here's one that worked, with no issues that I could see:

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

This one worked, but hammered my FPS (down to about 34 where any other shader runs at 75 or more) and also caused the program to nearly lock up, in terms of unresponsiveness. Like, I had to force quit from task manager:

https://www.shadertoy.com/view/XlfBR7

And this one worked, but the background is white instead of black:

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

This one didn't work at all (black screen):

https://www.shadertoy.com/view/MsdyzX

Also, the .fs files that have registered don't appear in a folder when you hit 'add' (screenshot below):
2018-03-07.png
2018-03-07.png (27.7 KiB) Viewed 4077 times
This is my folder structure (I did just notice I put 'IFS' instead of 'ISF'!)
2018-03-07 (2).png
2018-03-07 (2).png (37.84 KiB) Viewed 4077 times
And if you look at the .fs files there, there's two that don't even show up in Magic.

So I hope that sheds some light...

Thanks.
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: Shadertoy to ISF convertor issues

Post by Magic »

The first one you mentioned runs slow for me too. There's not much you can do about slow FPS. Some shaders need a really fast computer.

The second one works for me with a black background. Not sure why yours would be white, hmm...

The third one has multiple buffers: Common and Image. The converter script doesn't support multiple buffers (yet).

Regarding your folders, you need to put the files in an additional subfolder. See the tutorial link I posted above :)
sameloop
Posts: 38
Joined: Thu Oct 27, 2016 5:58 pm

Re: Shadertoy to ISF convertor issues

Post by sameloop »

Ah, thanks a lot for looking at them, really appreciate it.

That first one runs slow, but surely it’s down to the coding? Don’t forget, it really impacted my entire system too. I had to kill it in task manager. I’m running it on a gaming laptop with a GTX 1060, i7 7700 and 16GB DDR4. If a shader can’t run on that, it seems a bit unusable (by most people) to me. All the other ones run at 75+. Anyway, side issue.

Interesting you got that fractal one with a black background. I might try re-converting it later just as a possibility.

I guess it’s a case of some work, some don’t, which is fair enough. Plenty of great ones that do work.

I solved the folder issue - didn’t follow the tutorial to the letter - you have to create the first folder via Magic, not in windows and then add it.

Thanks again for your help.
Post Reply