Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
47 user(s) are online (35 user(s) are browsing Forums)

Members: 0
Guests: 47

more...

Headlines

 
  Register To Post  

« 1 ... 16 17 18 (19) 20 21 22 ... 24 »
Re: Shaderjoy 1.17
Home away from home
Home away from home


See User information
@Capehill

Btw, is it expected, that when I set for textures "VFLIP texture vertically", then for some shaders rendering starts to be visibly slower. Once I remove that option, it starts to be faster. That probably related to how shaders coded?

For example this one:
https://www.shadertoy.com/view/Xsc3R4

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Shaderjoy 1.17
Just can't stay away
Just can't stay away


See User information
@kas1e

Quote:

is it expected, that when I set for textures "VFLIP texture vertically", then for some shaders rendering starts to be visibly slower. Once I remove that option, it starts to be faster. That probably related to how shaders coded?

For example this one:
https://www.shadertoy.com/view/Xsc3R4


No, that cannot happen in my opinion. Vertical flipping is done once, when texture is loaded. Remove the impact of camera movement, for example replace all iTime by 0.0 and then FPS should be stable.

I think the logical explanation is the combination of moving camera and ray marching which involves a for-loop per fragment. FPS fluctuates on Windows side, too.

Go to top
Re: Shaderjoy 1.17
Home away from home
Home away from home


See User information
@Capehill

I think found some nasty bug in shaderjoy: starting from the 1.16 version some shaders just "rotated from the bottom to top", or from the "left to right". At 1.15 still fine.

There is a list of those shaders which start behave wrong since 1.16 (and including 1.17 too):

https://www.shadertoy.com/view/WlBGzy
https://www.shadertoy.com/view/tdSyDG
https://www.shadertoy.com/view/tlV3zy
https://www.shadertoy.com/view/XlSSzK
https://www.shadertoy.com/view/ll2SWd
https://www.shadertoy.com/view/Mls3D2
https://www.shadertoy.com/view/ldyyRK
https://www.shadertoy.com/view/Xll3Ws
https://www.shadertoy.com/view/MdtGRl - this one rotated from left to the right, not like others from bottom to top


In 1.16 there were many changes, so which one start acting like that dunno. But hope easy to fix :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Shaderjoy 1.17
Just can't stay away
Just can't stay away


See User information
@kas1e

Now those problematic shaders seem to use directly gl_FragCoord instead of the flipped input variable "fragCoord".

Background:

1.16 changed the rendering pipeline by adding FBOs for the Image shader and this makes the behaviour different from 1.15.

There is also gl_FragCoord.y flipping in FBO cases because otherwise FBO textures are upside down for the reasons I don't know. Both gl_FragCoord and textures should be using the same coordinate system: origin at the bottom left corner.

I will ask Daniel and Hans about this. I would be keen to remove that flipping hack if possible.

Go to top
Re: Shaderjoy 1.17
Not too shy to talk
Not too shy to talk


See User information
@Capehill
Quote:
y flipping in FBO cases because otherwise FBO textures are upside down for the reasons I don't know

That's because the first FB pixel is at the bottom-left, much in contrast to most textures that come from files where the first pixel is at the top-left.

@kas1e
Quote:
Btw, is it expected, that when I set for textures "VFLIP texture vertically", then for some shaders rendering starts to be visibly slower.

And for others it will become visibly faster
That's because some such textures' values are not meant to be interpreted as pure colors but are actually texture-encoded input parameters to the shader's logic and thus may influence its runtime.


Edited by Daytona675x on 2020/12/22 9:51:58
Go to top
Re: Shaderjoy 1.17
Just can't stay away
Just can't stay away


See User information
@Daytona675x

Quote:

I didn't find a concrete documentation but I find the format rather self-explaining.
If you have an account at ShaderToy you can easily download the JSON for a specific shader that way:


Thanks! I will be looking into JSON format later, next year I guess :)

Go to top
Re: Shaderjoy 1.18
Just can't stay away
Just can't stay away


See User information
Version 1.18 changes:

- Add project file support (.sjp).
- Activate the most recently loaded tab.
- Blank mouse pointer completely in fullscreen mode.
- Reorganize RMB menus due to project file.
- Rename "Channels" menu to "Shaders and Channels".
- Rename "Shaders" menu to "Debug".
- Refactor code dealing with file handling.
- Reset frame counter on rewind.


Happy New Year!

Go to top
Re: Shaderjoy 1.18
Home away from home
Home away from home


See User information
@Capehill

Woah! Will check now!

ps. Checked briefly, "sjp" example surely works!

btw, No luck with those "rotated shaders since 1.16"?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Shaderjoy 1.18
Just can't stay away
Just can't stay away


See User information
@kas1e

I didn't have time to investigate it further, but there is a workaround: replace gl_FragCoord strings by "fragCoord" and it should be okay.

Go to top
Re: Shaderjoy 1.18
Not too shy to talk
Not too shy to talk


See User information
@Capehill
Thank you very much and a Happy New Year to you!

1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX <-2024
Go to top
Re: Shaderjoy 1.18
Home away from home
Home away from home


See User information
@Capehill
Tried simple one test case:

All placed in work:ogles2/Shaderjoy-1.18/shaders/my14/multipass/01-Light experiments 2/ directory. Files in that directory named as :

Quote:

buffera.frag
bufferb.frag
bufferc.frag
image.frag
test.sjp



Now, that is test.sjp:

Quote:

# Shaderjoy project file
Version=1.18
Name=image.frag
#
BufferA path=buffera.frag
#
BufferB path=bufferb.frag
#
BufferC path=bufferc.frag
#
Image path=image.frag
Channel0 buffer=BufferA filter=Mipmap wrap=Repeat
Channel1 buffer=BufferB filter=Mipmap wrap=Repeat
Channel2 buffer=BufferC filter=Mipmap wrap=Repeat
Channel3 buffer=BufferD filter=Mipmap wrap=Repeat


Now when i d&d that file on shaderjoy have for all of them "cant load file".

Tried to add PROGIDR: before , same errors.

Probabaly hardcoded to be in some place only ?

Tried from shaders directory of shaderjoy, and only then it works. And it only works when it in shaders and in some subdir, like shaders/test/ , because if you just do test/ , and in the .sjp delete "shaders" directory at begining, it also fails to load.

I.e. even just putting files to the "shaders" dir and doing .sjp like this:

Quote:

# Shaderjoy project file
Version=1.18
Name=image.frag
#
BufferA path=buffera.frag
Channel0 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel1 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel2 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel3 texture=textures/default.png flip filter=Mipmap wrap=Repeat
#
BufferB path=bufferb.frag
Channel0 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel1 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel2 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel3 texture=textures/default.png flip filter=Mipmap wrap=Repeat
#
BufferC path=bufferc.frag
Channel0 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel1 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel2 texture=textures/default.png flip filter=Mipmap wrap=Repeat
Channel3 texture=textures/default.png flip filter=Mipmap wrap=Repeat
#
Image path=image.frag
Channel0 buffer=BufferA filter=Mipmap wrap=Repeat
Channel1 buffer=BufferB filter=Mipmap wrap=Repeat
Channel2 buffer=BufferC filter=Mipmap wrap=Repeat
Channel3 buffer=BufferD filter=Mipmap wrap=Repeat


Make them fail to load.

Probabaly the only hardcoded part sohuld be about "textures" (as they always come with ShaderJoy, and placed where they placed), but for the image.frag and buffers, it imho need to take any location from which you run .sjp from , as well as in the file itself pure names should mean current directory where .sjp placed, and anything deeper, mean starting from curent directory of where .spj file running from.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Shaderjoy 1.18
Just can't stay away
Just can't stay away


See User information
@kas1e

Hmm...paths should be relative to binary. If binary is started from some "random" location then it cannot find the files. Did you check with Snoopy how it looks like? I will take a look next year :)

I removed absolute paths on purpose but maybe there should be some assign...

Go to top
Re: Shaderjoy 1.18
Home away from home
Home away from home


See User information
@Capehill

Yeah, there no need to have absolute patches (just relative one for textures, which always placed in the "shaders" directory), but other files imho should be take as it from the directory where they placed together with .sjp.

Checked via snoopy and it show me just:

FAIL = Open("buffera.frag",OLD)

Same for all other buffers, while they there, in the same directory where .sjp file are. And their path in .sjp just like "BufferA path=buffera.frag".

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Shaderjoy 1.18
Not too shy to talk
Not too shy to talk


See User information
Anyone else getting graphic glitches with ShaderJoy 1.18?
X5000/Radeon R9 280X, OS4.1FE Upd.2, latest official Warp3DNova and gfxdrivers.

Example pics:
www.djkhayos.com/amiga/IMG_20210107_110923.jpg
www.djkhayos.com/amiga/IMG_20210107_111046.jpg




1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX <-2024
Go to top
Re: Shaderjoy 1.18
Home away from home
Home away from home


See User information
@khayoz

Try to resize the window to be more or less like in the original shaderjoy site. Some shaders are done with meaning exactly the size of the window like on shaderjoy site.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Shaderjoy 1.18
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Ahh ok, thank you for the solution!

Was afraid my gfxcard was about to die as I have not seen these glitches before.

1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX <-2024
Go to top
Re: Shaderjoy 1.18
Just can't stay away
Just can't stay away


See User information
@khayoz

https://www.amigans.net/modules/xforum ... id=119204#forumpost119204 There is a resizable windows application which can reproduce similar glitches at least in Ball of Fire case.

Go to top
Re: Shaderjoy 1.18
Not too shy to talk
Not too shy to talk


See User information
@Capehill
Thanks for the explanation!
Having so much fun with ShaderJoy learning shadercoding, babysteps still but the app is excellent!

1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX <-2024
Go to top
Re: Shaderjoy 1.18
Home away from home
Home away from home


See User information
@Capehill
Give it a go for a normal 1.18 check, and one of the good things which I love is reorganizing the menu. More logical now and more clean/polished. Even if there wasn't project file support before, reorganizing by itself the menu is done well.

Also, the complete vanishing of the mouse pointer in fullscreen are tasty too, as well as auto activating of the tab :)

The only real issue I had now it with paths in the project file, I just can't point on the directories I need: not by absolute path, not by PROGDIR: one. While absolutely patches may only need for testing/debugging purposes, the PROGDIR: one can be made any project files work from any place, which is a must. Like, you wrote in = image = aaa.frag, and it takes aaa. frag from PROGDIR: If you want to put shader in one place, but project file in another place, then: image = path_to_shaders_from_progdir_of_project_file. And if one needs an absolute path for any of the reasons then just image = work:aaaa/aaa/aaa.frag

But overall it looks like something which soon is "Final". I mean what else it misses except polishing project file support + issue with rotated shaders, and audio/keyboard support added? Nothing ?:)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Shaderjoy 1.18
Just can't stay away
Just can't stay away


See User information
@khayoz

Good to hear :) Shaders are cool, the immediate visual feedback is very rewarding, in my opinion.

Go to top

  Register To Post
« 1 ... 16 17 18 (19) 20 21 22 ... 24 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project