Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
152 user(s) are online (116 user(s) are browsing Forums)

Members: 0
Guests: 152

more...

Support us!

Recent OS4 Files
OS4Depot.net




« 1 ... 7 8 9 (10) 11 12 13 14 »


Re: Shaderjoy 1.7
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6356
@Capehill
And some more :)

Find out that iTimeDelta used from time to time. For example in that shader:

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

Also, find out that when i resize the window , then dbl-click to fullscreen, and then dbl-click for back to the window, then size of window jumps on the original size when program runs, but not on the size we have when dbl-click to fullscreen. Not that it also very important, but probabaly when we switch back from fullscreen, size of window need to be the same as when we switch from.


_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Shaderjoy 1.7
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@kas1e

Quote:

I have added iTimeDelta and also iFrameRate (1.0f / iTimeDelta). However, that particular shader doesn't link on Nova 1.68.

Quote:

Also, find out that when i resize the window , then dbl-click to fullscreen, and then dbl-click for back to the window, then size of window jumps on the original size when program runs, but not on the size we have when dbl-click to fullscreen. Not that it also very important, but probabaly when we switch back from fullscreen, size of window need to be the same as when we switch from.


It's kind of subjective what is the best behaviour here. Probably to make it user-configurable (REMEMBERSIZE tooltype or something).

   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
Version 1.8:

- Use vertex buffer objects (VBOs).
- Add iTimeDelta and iFrameRate uniforms.
- Add AppWindow support: shaders can be dropped into the window.
- Shader filename can be passed as an argument.
- Improve About box: display GL information.
- Fix issue with blitting over window borders.
- Initialize fragment colour because some shaders do not.
- Reverse iMouse.y.

   Report Go to top

Re: Shaderjoy 1.8
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6356
@Capehill
Quote:

I have added iTimeDelta and also iFrameRate (1.0f / iTimeDelta). However, that particular shader doesn't link on Nova 1.68.


For me, on 1.71 beta, it passes iTimeDelta error on shaderjoy 1.8 now, just to bring famous "need XXX SGPRs" :)

Quote:

It's kind of subjective what is the best behaviour here. Probably to make it user-configurable (REMEMBERSIZE tooltype or something).


Sure not a big deal, and if you will ever spend time on, the tooltype will be the best way indeed.


Quote:

Version 1.8:

- Use vertex buffer objects (VBOs).
- Add iTimeDelta and iFrameRate uniforms.
- Add AppWindow support: shaders can be dropped into the window.
- Shader filename can be passed as an argument.
- Improve About box: display GL information.
- Fix issue with blitting over window borders.
- Initialize fragment colour because some shaders do not.
- Reverse iMouse.y.


Thanks a bunch!

So far everything indeed fixed and works from that list as I test now. The only things which can't check is if VBOs usage works as expected or not (but shaders I checked works the same as before, so should be fine, but maybe some speed up expected somewhere ?), and for "Initialize fragment color because some shaders do not" maybe there some shaders which fail with 1.7, but ok with 1.8?

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@kas1e

Quote:

So far everything works and fixed indeed from that list as I can test now. The only things I can't check is of VBOs usage works as expected or not (but shaders I checked works the same as before, so should be fine, but maybe some speed up expected somewhere ?),


As Daniel wrote earlier OGLES2 will optimize the unnecessary data transfer away but VBO at app level is what I was supposed to do. It's possible to use glSnoop here but it will be boring I guess.

Quote:

and for "Initialize fragment color because some shaders do not" maybe there some shaders which fail with 1.7, but ok with 1.8?


Hans wrote on bug tracker that there was some shader ( https://www.shadertoy.com/view/WlSGDh ) that didn't initialize the fragment colour.

Ps. AppWindow feature is cool, I think it speeds up testing. I couldn't verify .frag filetype properly yet, I failed to use DefIcons but I can define some .frag file to start Shaderjoy and it seems to work.

   Report Go to top

Re: Shaderjoy 1.8
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6356
@Capehill

Quote:

Hans wrote on bug tracker that there was some shader ( https://www.shadertoy.com/view/WlSGDh ) that didn't initialize the fragment colour.


Well, no, it change nothing. The same garbage on 1.7 and on 1.8. And it looks like one of those Nova's issues almost all of which were fixed lately (but that one still not, on 1.71 diagonal line, and garbage overwrite original effect all over the window).

Maybe it change something about colors, but while all garbaged can't compare.Tried to test if it change something with the shaders i mention lately in "warp3dnova's shader bug" thread where shaders do have issues with colors being different than expected, but issues same here.

Quote:

Ps. AppWindow feature is cool, I think it speeds up testing.


Yes, that one the first thing i tried. Works as expected :)


Quote:

I couldn't verify .frag filetype properly yet, I failed to use DefIcons but I can define some .frag file to start Shaderjoy and it seems to work.


Deficons prefs a bit nonlogic yep, the point there that you need to setup your filetype as FIRST (or it will be treated as ASCII one, and if you add new filetype later, it just will out of luck).

Check this out how it should be setuped (open in new tab for fullsize):

Resized Image

There is also icon if you need it i use :

http://kas1e.mikendezign.com/a/def_fragmentshader.info

Place icon to the Sys:Prefs/Env-Archive/Sys/def_fragmentshader.info

Just don't forget to change default tool in it to the place where your shaderjoy binary are and be sure that in DefIcon prefs you call the the same "fragmentshader".

Then it works, and it indeed cool :

Resized Image




Edited by kas1e on 2020/5/31 20:49:37
_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Shaderjoy 1.8
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6356
@Capehill
I am sure you will love that video:

https://www.youtube.com/watch?v=K4MixYoYTgM

There I go heavy! Complex shaders on the latest nova, many at the same time, all with that deficons, app icon stuff, fullscreen (1920x1080), and so on. Shaders of choice are ones which were fixed lately, so they look "a bit" better in comparison with ones working before. If only Hans can deal with that register allocator crap and we will have no issues with "need XXX SGPRs/need XXX VGPRs", then shaders can be even more complex and almost everything from shadertoy will works. At least currently taking into account latest beta of Nova, the only real error is about needs for registers left, other shaders or just works, or works with some rendering glitches which can be dealt with.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@kas1e

Quote:

Nice. Maybe it could be bundled with Shaderjoy?

Quote:

Great video, pretty shaders and cool music :) Nice to hear some issues have been fixed already.

   Report Go to top

Re: Shaderjoy 1.8
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6356
@Capehill
Quote:

Nice. Maybe it could be bundled with Shaderjoy?


If you think it worth it at all, then sure :)

Quote:

Nice to hear some issues have been fixed already.


Hans seems to spend quite a good time on bug fixing last week, and he dealt with most of the issues we had: matrix one, garbage with helper functions, boolean issues, and some others. I think he's latest video were about fighting with Nova bugs: https://www.youtube.com/watch?v=hZpb0b0ai58


The only big issue remains which means some major rework probably, it's register allocator part. As I understand it (but can be wrong), the current register allocator in Nova is a more or less simple one, which takes the amount of GPU registers as it, in the hope it will be enough. But with complex shaders, it's not enough sadly. So we need new register allocator doing spiling and stuff (create a buffer to which copy content of all registers, and take necessary values when needing it only). It's like we do 20 years ago on some i286 CPU which had quite a small amount of registers which wasn't' enough. But I didn't know of course how it in comparison with today's GPU, probably much harder :)

And there is a couple of rendering issues, which I trying to catalog and creating bug reports one by one.

And few missing instructions which used pretty often, like OpImageSampleExplicitLod and OpFwidth.

And a couple of regressions since 1.68

But if I understand things right, all the latest issues we had and which were fixed, almost all the time were related to current register allocator. So rewriting it can be also resulting in auto-fixing other bugs that we had now. But maybe it better to fix all bugs with current register allocator, and only after moving on a new one if Hans decides to do so at all of course.

But surely Nova pretty advanced already, taking into account that Hans alone works one, together with Radeon drivers :) Who imagine that we will for real have all those OGLES2 (which is pretty much advanced too), and 3d party apps too like shaderjoy and glsnoop :)

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Shaderjoy 1.8
Site Builder
Joined:
2006/12/2 23:57
From Athens/Dublin
Posts: 637
I was watching Kas1e's awesome video and I thought how cool that would be to have such graphics as backgrounds, something like CANDI... Is it possible?

   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@walkero

Probably. But it must be noted that if you have a large WB resolution, then heavier fragment shaders will not necessarily run at 60 FPS.

Does CANDI show animation files or is it procedurally generated content?

   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@kas1e

Quote:

surely Nova pretty advanced already, taking into account that Hans alone works one, together with Radeon drivers :) Who imagine that we will for real have all those OGLES2 (which is


Yeah, Nova + OGLES2 combo is really appreciated here and it's quite amazing what these guys have achieved.

Quote:

pretty much advanced too), and 3d party apps too like shaderjoy and glsnoop :)


I'm sure there will be more apps coming this year.

   Report Go to top

Re: Shaderjoy 1.8
Home away from home
Joined:
2006/12/2 3:55
From Italy, Perugia
Posts: 3336
@kas1e

Quote:
But surely Nova pretty advanced already, taking into account that Hans alone works one, together with Radeon drivers :) Who imagine that we will for real have all those OGLES2 (which is pretty much advanced too), and 3d party apps too like shaderjoy and glsnoop :)


.. and the constantly updates to SDL1 and SDL2 .. you for sure did not forget them considering the heavy test you did ;)
3 or 4 good developers and a bunch of decent testers can improve things a lot, indeed it's good moment for OS4

   Report Go to top

Re: Shaderjoy 1.8
Home away from home
Joined:
2009/7/7 4:34
From Man Cave, Canada
Posts: 2402
@kas1e

love the vid! so cool with nice tunes and beer in hand to enjoy..thanks to Capehill, Hans and you

_________________
_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Indivision AGA & Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

   Report Go to top

Re: Shaderjoy 1.8
Not too shy to talk
Joined:
2015/6/11 9:51
From Cologne
Posts: 378
@Capehill
Here's one entry of my wishlist if you don't mind
Apparently Shaderjoy's verbose logging only spits out the shader-log if an error occured. I think it would be better if you'd always print it in "verbose" mode (maybe check GL_INFO_LOG_LENGTH).

   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@Daytona675x

Why not.

Could also time the shader compilation.

   Report Go to top

Re: Shaderjoy 1.8
Not too shy to talk
Joined:
2015/6/11 9:51
From Cologne
Posts: 378
@Capehill
Great, thanks
IIRC you have beta access to my FTP (if not, drop me a PM). If you want you can already download the fresh includes and the beta ogles2 3.0 lib from there and already implement support for two new aglCreateContext / aglSetParam options:

- OGLES2_CCT_DEBUG_SHADER_LOG: If set to TRUE then the library asks Nova for extra shader compiler info. A detailed log will be returned even on successful shader compilation. If this flag is set to FALSE (default) then only the usual standard error log will be returned.

- OGLES2_CCT_DETECT_UNINITIALIZED_GLSL_VARS: If set to 1 or 2 (default 0) then ogles2.lib will analyze the generated SPIR-V code and look for uninitialized shader variables. If set to 1 then it will only put a warning in the log and continue, if set to 2 then glCompileShader will return with an error if something suspicious is being detected.

Note: OGLES2_CCT_DETECT_UNINITIALIZED_GLSL_VARS is beta, I wrote it yesterday. It's certainly not perfect (altogether less than 150 small lines of code, incl. the SPIRV parser, no kidding ) but seems to do a decent job so far - obviously not tested toooo much though. So if you encounter a shader which gives wrong results, throw it into a mail or on my FTP please.
You'll also find an updated glslangvalidator_redux on my FTP which has that feature.


Edited by Daytona675x on 2020/6/6 15:28:46
Edited by Daytona675x on 2020/6/7 16:26:11
Edited by Daytona675x on 2020/6/7 18:05:53
Edited by Daytona675x on 2020/6/7 18:11:20
   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@Daytona675x

Tested quickly both tags, got the warning when compiling that "Bap" shader, great! I will try to get these improvements into 1.9 version.


   Report Go to top

Re: Shaderjoy 1.8
Not too shy to talk
Joined:
2015/6/11 9:51
From Cologne
Posts: 378
@Capehill
Great, thanks, looking forward to 1.9! You may want to download another fresh lib version. More optimizations for the SPIRV uninit var detector, resulting in even higher performance and less C++ code (now 159 tiny lines incl. class defs, no STL, no clib, just one dyn memory allocation (plus those for the warning string, if there's any)). I'm really curious if you can even measure any glCompile difference between enabled / disable var checker.

   Report Go to top

Re: Shaderjoy 1.8
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1091
@Daytona675x

Not at least with a simple shader like Bap. I just tested the yesterday's beta and it was 21-22 milliseconds with/without checking.

   Report Go to top


« 1 ... 7 8 9 (10) 11 12 13 14 »



[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project