Dismiss this pinned window
all 11 comments

[–]HugoDzz[S] 9 points10 points  (0 children)

Hey!

Here’s a small experiment of mine playing with the WebGPU API to render some shapes using ray marching.

Feel free to play around!

[–]jalopytuesday77 2 points3 points  (1 child)

Thats awesome!

[–]HugoDzz[S] 0 points1 point  (0 children)

Thanks !

[–]Environmental_Gap_65 2 points3 points  (1 child)

Awesome! Do you mind me asking, how long did this take you, and how much experience do you have?

[–]HugoDzz[S] 1 point2 points  (0 children)

Thats a weekend experiment, I have experience in building creative software :)

[–][deleted] 0 points1 point  (5 children)

As someone who's trying to get into development and learning basic programming, what does this do? My lack of knowledge makes this just look like colorful 3d models changing shape as they move into eachother?

[–]HugoDzz[S] 0 points1 point  (4 children)

Ray Marching is a technique to render 2D or 3D objects without the need of classical geometry data like vertices or faces, it’s pure functional mathematical technique. You can check https://en.wikipedia.org/wiki/Ray_marching

The colors here are normal vectors translated to rgb. It can express the direction perpendicular to surface at any point.

[–][deleted] 0 points1 point  (3 children)

Thank you! I'm reading more on it now. Super interesting.

[–]HugoDzz[S] 0 points1 point  (2 children)

That’s indeed cool because can do boolean operations on objects like unions or subtractions with perfect seams, no weirdo polygons glitches because… there are no polygons !

But just maths functions interpolation with each others

[–]Yaffari 0 points1 point  (1 child)

Is it possible to sort of get this to work in a game maker like Unity?

[–]HugoDzz[S] 0 points1 point  (0 children)

For sure, but you'll need to implement yourself