r/loadingicon • • Oct 12 '20

Real-time raytracing with WebGL (perfect loop)

Enable HLS to view with audio, or disable this notification

993 Upvotes

9 comments sorted by

28

u/TyrannosaurusRekt- Oct 12 '20

This is, like, actually a tesseract.

8

u/BigZmultiverse Oct 12 '20

Awh yeah, this is the good shit

8

u/wingardiumlevioshit Oct 12 '20

Wait can raytracing account for prisms now?

27

u/TheManuz Oct 12 '20

Not an expert, but I think that's the whole point of raytracing.

Instead of implementing shaders for material, you just declare physics properties, like refraction index, diffraction, all the things (again, not my field) and the the photons behave accordingly.

I'm sure I'm oversimplifying, though.

4

u/IrritableGourmet Oct 12 '20

Thank you for triggering horrible memories of computer graphics classes where the professor argued for half the class with that-one-annoying guy-in-every-class-who-latches-onto-an-overly-pedantic-ambiguity-and-asks-a-million-questions-about-it-to-impress-the-professor (do we have a shorter name for those people yet) about whether we should simulate a glass sphere as a solid glass sphere or a hollow sphere of infinite thinness and wouldn't shut the fuck up about it even when everyone told him it was a solid sphere.

3

u/spaceman1980 Oct 12 '20

Guys, CLICK THE LINK to actually drag it around with your mouse (click it to stop and start moving, when its stopped moving on its own it follows your mouse cursor)

https://morphing.encharm.studio/

moving the mouse up and down changes the bevel radius, it seems

1

u/acitizengrace Oct 12 '20

I spent way too long staring at this

1

u/[deleted] Oct 12 '20

That’s pretty.