How to solve a maze using shaders - Shadron tutorial
Video Statistics and Information
Channel: Shadron
Views: 18,792
Rating: undefined out of 5
Keywords: Shadron, shader, GLSL, maze, fragment shader, feedback buffer, tutorial
Id: GULy4vtkw6w
Channel Id: undefined
Length: 6min 45sec (405 seconds)
Published: Wed Oct 18 2017
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
That was pretty cool. I am not much into graphics programming, so I don't know the complexity of what you did. But the video was pretty good. Good animations and descriptions.
(I'm not the guy in the video)
This seems like a really cool tool actually, thank you for sharing.
I actually wanted something similar fairly recently, in the sense that it was a path traversal problem to implement on the GPU, though it was easier to design an efficient algorithm than the video shows. I still haven't implemented my solution because I've been bitter about how none of my favourite approaches work in WebGL, but such is life. I'll get around to it eventually.
The general, albeit simplified, idea starts with a black and white image. These are divided into conceptual lines, all of which are either closed loops or have two ends (which may be the same point). A line ends when it collides with the centre of another line (a) or comes to a stop (b), though it may also simply make a turn (c). If two lines intersect (d), they simply pass through each other.
Note that every image has exactly one unique decomposition, and two lines never end in the same place.
The question is how to produce a new image where each pixel is replaced with the pairs of indices of the start and end of the line it is on. Resolve ½-pixels and cycles in any manner you wish.
What library was used?
Thanks! Now I can find the easiest rout to any girls heart. - youtube comment. They are hilarious.
Woaah,dude.Its really magnificent.If you are so keen to learn about GLSL Language why not opt for a mini-project and create a youTube channel for the same.Thanks for sharing such quality stuff.Keep us updated with more and more such things.Way to go a4555in(you totally rock man).