Making Cursed Textures with OpenGL and C

preview_player
Показать описание
References:
Рекомендации по теме
Комментарии
Автор

"Cursed" is a redundant adjective when talking about opengl

PugMaxer
Автор

his thumbnail is getting better everyday

RedStone
Автор

Hi,
About the C `(void)` parameter, it is a little bit more complicated than `()` is variadic. In the old ages of C before it was ratified, the K&R syntax made it possible to do forward declaration without providing the arguments using `()`. So it is technically possible to do interesting mess with that, like changing the prototype of a function call. That can allow to perform type checked calls like `syscall` per translation units.

MichelHermier
Автор

Given that cos only return numbers between -1 and 1 and the minimun value greater than zero the function rand_float return is 1 / RAND_MAX the actual range you were trying to find is ±sqrt(-2 * ln(1 / RAND_MAX)) or simply ±sqrt(2 * ln(RAND_MAX)). And if we consider that RAND_MAX is 2^31 - 1 (witch probably is) your range is ±6.5555.

lucascorreia
Автор

Great content yet again!

If I recall from my linear algebra course, what you actually did to the image was apply the inverse of the box miller transformation to the image. The glsl would essentially take an image in "normal" space and sample it into Cartesian space. To go the other way (transform a Cartesian image into "normal" space) you would need to use the inverse of the box-muller transformation.

TheASaurus
Автор

You're one of the smartest programmers I know. I'm surprised you're still manually announcing you going live. Couldn't you script something in like 3 minutes. Lol

blablabla
Автор

Хм, интересно! Это выглядит как развертка текстуры на сферу. Примерно также выглядят HDRi карты и их удобно накладывать на сферу через OpenGLвское textureCube или через Equirectangular projection (see wiki). Надо попробовать на GLSL еще эту тектуру наложить на сферу и посмотреть как это будет выглядеть.

TiMbuilding
Автор

58:15 So cursed it even seeps into the youtube compression algorithm!

Soykaf_
Автор

This Mr. Incredible thumbnail is the best thing I've seen today. 😂😂😂

smooll_d
Автор

Thanks for the fun videos. I feel like my programming has improved dramatically since I started watching your videos. I especially like how streamlined and methodical your workflow often is.



Rejection sampling is a fun trick if if one needs to sample from any arbitrary distribution, one just has to keep the constraints in mind.

xelaxander
Автор

Now it's time to implement 'Cursed' parameter and see what math will do with my boi.

rogo
Автор

>Normal distribution function is like parabola

aurorazuoris
Автор

I'm sorry for an irrelevant question, but I have the same microphone, and I just want to know how you make it sound so nice. Можно по русски)))

themultiverse
Автор

is he using a hhkb with emacs, he's pretty fast with all those weird finger combinations ..or he is using something else, bc when he went backwards (words) he only typed one keystroke..

hanazuki
Автор

You probably should've added and not multiplied `k` to change phase and not frequency. I think that's what you were trying to do, someone even said you to try **add** `k`, but you **multiplied** by it

hatkidchan_
Автор

Do you use the standard emacs keybindings or evil mode?

venuse