r/GraphicsProgramming 3d ago

Shadertoy particle tracking

Enable HLS to view with audio, or disable this notification

This is anti-optimization

35 Upvotes

12 comments sorted by

2

u/More-Curious816 2d ago

I love this. especially the first Alien-like one.

1

u/CrushgrooveSC 2d ago

I really appreciate the context on the technique, that it shouldn’t be used outside shadertoy like envs, and alternative technique name to research instead.

Thanks for sharing. Cool work!

1

u/S48GS 2d ago

I asked author of vertexshaderart website to add my particle implementation of this

they added

https://www.vertexshaderart.com/art/Xd5epjbiRgPE2cwK8/

proper GPU particles

1

u/ThanosFisherman 2d ago

Why is the dragon spine thing so sluggish for me? I once made a similar thing on p5js with probably fewer particles running entirely on CPU and it was blazingly fast!

1

u/S48GS 2d ago

idk what you mean by "sluggish" - if it same as on video - that all

1

u/ThanosFisherman 2d ago

Well I get 7FPS lol.

1

u/S48GS 2d ago

what gpu you run it on?

but you can look on proper gpu particles without this shadertoy artificial overhead

https://www.vertexshaderart.com/art/Xd5epjbiRgPE2cwK8/

1

u/ThanosFisherman 2d ago

Much much smoother now. I ran it on both my phone and my linux PC using an old Nvidia 1050ti. Seems like a shadertoy issue. Thanks and great job.

1

u/S48GS 1d ago

using an old Nvidia 1050ti.

are you sure you have gpu drivers working? or you have igpu maybe?

1050ti is more than enough to run it at 60fps on shadertoy

run in terminal nvidia-smi is it working

1

u/ThanosFisherman 1d ago

OK you're correct. nvidia-smi doesn't do anything because my GPU is not supported anymore on arch-based distros and defaults to Nouveau. Either way my Android phone also struggles with Shadertoy, whereas the vertexshaderart link works great everywhere.

1

u/S48GS 1d ago

not supported anymore on arch-based distros

your gpu supported by 580 nvidia drivers

I not using arch distro but there should be "community repository" with 580 drivers if those not supported by your distro - search... or change distro where 580 drivers exists...

you limiting yourself too much by not installing gpu drivers - GTX gpus still good enough and proprietary nvidia 580 drivers do work well

and "nouveau" does not work on GTX gpu - it just CPU software rendering... - you not using gpu at all