250 demos converted and counting...

Started by Stefan, June 10, 2015, 08:54:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stefan

Alps - shader of the week contains 2 typos in line #262.
I wonder why such bugs slip through in Shadertoy but not in GLSL Hacker?

replace Map(p) < .5 ? dist.x = halfwayT : dist.y = halfwayT;
with     Map(p) < .5 ; dist.x = halfwayT ; dist.y = halfwayT;



Stefan


Stefan

Download updated archive with 250 demos here

in future resolution will be 800x480 ;)

also fragment shaders will start with
#define fragColor gl_FragColor
#define fragCoord gl_FragCoord
to avoid annoying editing, i.e. only mainImage left over

some WIP shaders:

Awesome Star - NVIDIA only, AMD complains about a float command
Nightfall - compiles, but fails to render most stuff
Juggler spinoff - has 2 entry points mainText and mainImage, don't know what to do with that

Some other shaders had to be fixed because of using reserved words like "char" or "case"

Stefan

Today i was looking at some GLSL Sandbox demos.
I noticed that

uniform sampler2D backbuffer; // texture reference of the immediate prior frame

screws up the bottom of the screen.

Also i took a look at misc. text shaders.




Stefan

#24
Download code for following demos from >>>here<<<
And the models from the original location.

San Miguel

Triangles: 7,880,512
Vertices: 6,720,106

GLSL Hacker allocates 2.7 GB RAM with NVIDiA or 4.4 GB with Intel GPU for that model.
It forgets some textures while rendering.





Dabrovic Sponza




Sibenik


nuninho1980

#25
Quote from: Stefan on July 28, 2015, 11:06:11 PM
Download code for following demos from >>>here<<<
And the models from the original location.

San Miguel

Triangles: 7,880,512
Vertices: 6,720,106

GLSL Hacker allocates 2.7 GB RAM with NVIDiA or 4.4 GB with Intel GPU for that model.
It forgets some textures while rendering.


My GTX 780 Ti Classified is faster than your 750 Ti but I got only 29 fps running Win 8.1 x64 with my CPU i5-2500K@4.5GHz because GLSL Hacker seems be not good optimized for mega polygons - CPU gets bottlenecked.

I think that my videocard gets ~95 fps at ~95-99% GPU usage without CPU bottenecked.

Stefan

Quote from: nuninho1980 on July 29, 2015, 12:10:28 PM

My GTX 780 Ti Classified is faster than your 750 Ti but I got only 29 fps running Win 8.1 x64 with my CPU i5-2500K@4.5GHz because GLSL Hacker seems be not good optimized for mega polygons - CPU gets bottlenecked.

I think that my videocard gets ~95 fps at ~95-99% GPU usage without CPU bottenecked.

Maybe the Python part could be CUDA accelerated?

Can you post a screenshot with your GPU? I wonder if you see more textures with more video RAM.

nuninho1980

#27
Quote from: Stefan on July 29, 2015, 03:15:57 PMMaybe the Python part could be CUDA accelerated?
Run GLSL Hacker to open "sao miguel" and click "Python immediate mode box" and button "Execute!". Ok? But dunno how...

QuoteCan you post a screenshot with your GPU? I wonder if you see more textures with more video RAM.
1800 MB VRAM. But my number of textures is equal to your.

nuninho1980

#28
Should read again my post #27. - I'm sorry because I did badly about "quote".

For JeGX or any guy: Has GTX 980 Ti same problem?

Stefan

Quote from: nuninho1980 on July 29, 2015, 03:52:38 PM
Quote from: Stefan on July 29, 2015, 03:15:57 PMMaybe the Python part could be CUDA accelerated?
Run GLSL Hacker to open "sao miguel" and click "Python immediate mode box" and button "Execute!". Ok? But dunno how...

Actually i was thinking about "PYCUDA".




Shadertoy celebrates Win 10 launch it's own way


nuninho1980

Quote from: Stefan on July 30, 2015, 06:02:39 AMActually i was thinking about "PYCUDA".
GLSL Hacker hasn't PyCUDA. I'll download "pycuda 2015.1.2", ok? How do I install this downloaded to GLSL Hacker?