4 ms·
As someone who hasn't done graphics programming(or anything like this), it's amazing to me how 'simple' directives can yield such things. Is this type of logic
by silisili 5y ago
As someone who hasn't done graphics programming(or anything like this), it's amazing to me how 'simple' directives can yield such things. Is this type of logic still used in games/graphic programming today?
- MrLeap 5y agoIt can, and it does, sort of! There's a bit more boilerplate in most environments designed for shipping things, but one of the more high power/terseness activities is writing a shader that can render signed distance fields. https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm https://www.iquilezles.org/www/articles/distfunctions/distfu... compose a few of these together and you can manifest some pretty nuts infinity fractals. Here's a video I made playing with the functions Inigo's provided. https://twitter.com/LeapJosh/status/1439876813258256385 https://twitter.com/LeapJosh/status/1439876813258256385
- silisili 5y agoThanks - that's really interesting stuff. Not immediately obvious to me what it would be used for, but mesmerizing nonetheless.
- MrLeap 5y agoVisual effects in games and movies is a direct usage. If I wanted to have a brick wall I could progressively melt with a large laser, I'd render it with an SDF. SDFs are good for anything with volume, as mesh based rendering is intrinsically 'hollow'. It's not the only solution for things like that, there's also voxel and particle based rendering, as well as reasonable hybrids. It's just another tool in the toolbox.
- scohesc 5y agoSort of related to games/graphics programming - There's an open source CAD program called OpenSCAD that allows you to create 3D models with code that can be simple, but gets complex fast. I personally tried using it to create models for 3D printing, but got overwhelmed and decided to go to other tools. https://openscad.org/ https://openscad.org/