techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.7K
active users

#glsl

5 posts4 participants0 posts today

It's funny how simple and fast a basic raytracer can be.

I remember in my first year of IT school (2007-2008) when we had to implement one on CPU, and we had to wait several minutes for one picture to be rendered.

Of course this one is still very basic, but hey it's in real time baby

Sometimes (often) I have this mathematical urge, this instinct, to just name everything with one letter, then I switch to capitalized ones when I run out of them, and then I feel frustrated for not being able to use some Unicode character instead of pi, tau, phi, ...

This is honestly starting to frighten me, especially since I'm actually taking a liking to it.

This is a sickness, please help me.

I can't compete with the mod or fract version in term of code length, but I'm able to get the HSL and HSV conversions without any of these functions, so I guess it's faster?

mod version is derived from iq, fract version derived from @samhocevar, and the clumsy arithmetic from me.

Can we do better?

Continued thread

Tetrahedral symmetry requires that a general point be in a set of 12 -- on each of the 4 faces in each of 3 orientations. You can also add 4 points at the vertices, 4 at each face center, or 6 at each edge center. Combined, any even number of points >= 4 can be arranged with tetrahedral symmetry, albeit not always evenly.

Here is 50 points in tetrahedral symmetry which requires that some of them have valence 7.

#AlgorithmicArt #CreativeCoding
#Processing #glsl #shaders