Show newer

Found this little gem while testing UV generation code.

(The UVs came out wrong, though.)

@pmidden Translating "Ray tracing: the next week" book code to Haskell

Textures are just `Material a` combinators concerned with producing stuff at hit points.

Since the Material is a Monad now, no need for special cases for colors and then another bunch of combinators for materials.
A sampler can be used to pick entire materials if needed.
(Ooops, I actually CPSd a little...)

Show thread

`instance Monad Material where`

Sitting on my hands to avoid going full CPS on it (again)

@johncarlosbaez @BartoszMilewski Diaspora, and then Incandescence, had an interpersonal take on this: What if the life itself is so successful that it is possible to collectively exhaust all the interesting bits galaxy-wide?

@BartoszMilewski @johncarlosbaez The Culture has 400 years cutoff, which seems... arbitrarily little to the point of being "deathist".

@enigmatico > there isn't much to do with them aside of that

All of my dudes are "playing" gamified squats on Quests. Can't long session *that* unless you're one athletic MFer, but then you're usually fine with some discomfort anyway 😅

@enigmatico Okay, I've just checked quests specifically and, yeah, the numbers up there are BS. The quests have only a few million sales in 2023 while having up to half the market.

IDK.. still looks far from being forgotten.

OTOH, the human visual system is quite shite^W noisy in low light too. And that's even with all the built-in "neural denoising".

Maybe if it's neurons were activated by light instead of being suppressed (yes, it's inverted in there too) there would be far less noise. But that may push it out to bright light instead. And being activated most of the time will give higher levels of oxidative stress/faster degradation.
Tradeoffs everywhere...

Show thread

@enigmatico Does the headset matter? If you can your stick your face in it, it's VR, no?

I doubt the "cardboards" are in there. That fad should have been peaked and then passed a few years ago by now.

Been fever-dreamin' some DIY material layering and light sources (before I get to the chapter 7 of the second book).

The amount of noise from emissive materials is.. ugh. Apparently this is why we bother with "light sources" instead of just dropping some light bulbs here and there.

Show thread

Now I wonder what artifacts should be there for this to count as a successful kata/exercise.
Should I be able to reproduce it from scratch now? Teach how to do it?
Publish some packages?
Blog about how silly it is to use C++ for teaching stuff?
Take some jabs at course material (some quirks survived into v4.0 of it)?
So many options, so little time... What should have best return on time invested? :blobcatthink:

Show thread
Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.