Author Topic: ObjReader FBO & PP  (Read 31109 times)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: ObjReader FBO & PP
« Reply #105 on: June 09, 2019, 06:27:52 pm »
Even at 75FPS the 2dclouds.fs looks very jerky by me  :(
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #106 on: June 09, 2019, 06:39:57 pm »
Try to uncheck Enable VSYNC in the View menu and see what happens.

It might also be the instability of our home-brewed "clock timer" but I don't really think it can be so bad on your machine. I still think it's more likely it has something to do with the graphics card.

(I have to go out for some cigarettes before they close down for the night...)
« Last Edit: June 09, 2019, 06:48:54 pm by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: ObjReader FBO & PP
« Reply #107 on: June 09, 2019, 06:48:21 pm »
Have a look at this new one
https://www.shadertoy.com/view/4dKfDd
« Last Edit: June 09, 2019, 06:58:59 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #108 on: June 09, 2019, 06:56:23 pm »
It has noise, it will be slow.

We can try it on though. The Common part of it in its entirety simply goes into the Image section of their shader as sorta "include".

I can work on it when I'm back home in about an hour...
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: ObjReader FBO & PP
« Reply #109 on: June 09, 2019, 07:02:59 pm »
Quote
Try to uncheck Enable VSYNC in the View menu and see what happens.
Makes no difference.

Playing it full screen on my computer from Shadertoy works just fine, this is the reason why i don't think it is a problem of my graphic card.
The FBS version works also very well in full screen mode  :-X
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
« Last Edit: June 10, 2019, 01:40:11 am by Michael Lobko-Lobanovsky »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #111 on: June 09, 2019, 08:23:33 pm »
Well, I'm back. :)

Should I work on that newest "dripping" shader? And thanks for the other links, I'll see what can be done about them.

Makes no difference.
...................
The FBS version works also very well in full screen mode  :-X

The FBSL demo rendering pipe is much lighter; no MSAA or aniso either in the FBO or on screen, whereas OR runs at 32x MSAA + 8x anisotropy.

Do the Canyon and Pegasus shaders run for you smoothly with Turbo off?
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #112 on: June 09, 2019, 08:30:26 pm »
I think the Van Damme shader can be re-implemented in ObjReader as a post-processing shader... I like it BTW. :)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: ObjReader FBO & PP
« Reply #113 on: June 09, 2019, 09:28:51 pm »
FPS doesn't shows up when Framebuffer is unchecked.

Quote
Do the Canyon and Pegasus shaders run for you smoothly with Turbo off?
Yes, they seem to work fine. (see the attached video)


Perhaps could you send me a copy of your OR's binary for comparison purpose, in case i made an error during merge process.
Note: mine was compiled with VS2017
« Last Edit: June 09, 2019, 10:04:56 pm by Michael Lobko-Lobanovsky »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #114 on: June 09, 2019, 09:59:18 pm »
Re. FPS: yes, I observe the missing FPS counter chez moi too. It misses in the non-FBO mode when a non-transparent texture is bound to texture unit 0, but it is seen in all other cases. It must be my glitch with glEnable(GL_BLEND) somewhere. I'll fix it a.s.a.p.

Re. Canyon: no Patrice, your display is far too jerky even with everything off and in a windowed mode. When in a non-FBO mode and full screen, my display is much much smoother, almost like a video, and runs at ca. 50% GPU usage and 60FPS. ???

Can you allow me to attach a 365MB video (w/o recompression to 30 FPS) here for you to see what I'm seeing? ::)
« Last Edit: June 09, 2019, 10:01:02 pm by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: ObjReader FBO & PP
« Reply #115 on: June 09, 2019, 10:18:50 pm »
No, 365Mb is too large, we are limited to 128Mb per post.
« Last Edit: June 09, 2019, 10:53:15 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: ObjReader FBO & PP
« Reply #116 on: June 09, 2019, 10:23:41 pm »
Please, send me a copy of your OR EXE for comparison purpose, in case i made an error during the merge process.

Note: mine was compiled with VS2017
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #117 on: June 09, 2019, 10:36:02 pm »
Hold on a sec, I'm cutting and recompressing the second half of the video for you to see the shader's real speed.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #118 on: June 09, 2019, 10:56:06 pm »
OK here's the binary. Recompression of non-beginning part of video goes slowly, and will be finished in ca. 10 minutes.

(I guess I'd rather had it all sliced and packaged with WinRar...  ;D ;D ;D)

OK here is all of it in a 720p @ 24fps resolution within a much smaller window.

You'll get the general idea anyway...
« Last Edit: June 10, 2019, 01:08:48 pm by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: ObjReader FBO & PP
« Reply #119 on: June 10, 2019, 01:19:14 am »
I deciphered those Tiny Clouds but again, the shader uses that PNG texture (tex16.png) that's obviously not the one they're using on their site. I had to tweak parameters but still the clouds are not exactly as fluffy as the original. Another headache is that the texture must not be mipmapped.

All the other shaders are using mipmapped textures only, and now I don't know how to make OR recognize automatically from the shader code an arbitrary sampler2D's texture needs to be loaded linear rather than mipmapped... ???
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)