2
0

Daniel Velasquezさんのシェーダー入門を紹介してみる

Last updated at Posted at 2023-12-04

こんにちは。静岡アドベントカレンダーに、引き続き若干孤独に投稿を続けるはるまきです。
よかったら皆さんもよろしくお願いします。
いつもの皆さんの元気な様子が知りたい。初めての方とのwebならではの交流を楽しみたい。そう願ってやみません。

さて、今日は、Daniel Velasquezさんの「INTRO TO SHADERS」が楽しかったので紹介してみたいと思います。(ちなみに有料でメール講座をされている方のようで、PRも一緒に送られてきます。念のため付記。)

早速試してみる

こちらのURLにアクセスして、

メールアドレスを入力したら、メールが届きます。
何回かに分けてメールは届きますが、初回の内容に含まれるgithubプロジェクトからcloneして動かせば、すぐに動くshaderが体験できました:beers:

Daniel Velasquezさんの名言をピックアップして紹介

メールの内容が面白いです。
shaderを初体験する以上の価値が、メール文面にある気がします。
ちょっとピックアップして紹介してみます。

1通目のメールより抜粋

DEBUGGING IS A VISUAL PROCESS
Colors are numbers, and numbers are colors.

デバッグは見た目でわかるようにして確認してみるのがわかりやすいよ。
GPUで一度に何千ものピクセルを動かすのだから、視覚的なデバッグの勘を養うといいよ。

3通目のメールより抜粋

To be clear, I have ideas of how to make certain parts of my vision. But when I'm coding, I'm as clueless as they come about how it's gonna work. What I initially planned never works, and the end result I never make what I intend to make.

But while failing at what I envisioned, a new idea comes along and I often follow it. It's a matter of trusting the process and experimenting. These breakdowns are very much me going back and fully understanding what I did because in the moment I had no clue. Not a “I knew all along…. my grandpa's deck has no pathetic cards😎” moment.

I just plugged values until it worked🙉

作るものについて、最初に計画はしているけど、うまくいかなかったり、作っている間にアイデアが思いついたりする。
かなり試行錯誤して「うまくいくまで値を突っ込んだ」りする。
実験中に思いついたものがいかに多いかわかるだろう。

4通目のメールより抜粋

Sine and Cosine are math functions. Not only that, they are trigonometric functions. Really. Spooky. Stuff. But for our purposes, all you need to know is this: Sine and cosine are functions that create infinite waves and circles like you saw in the last lesson:

サインとかコサインとかめっちゃきもい。
けど私たちに必要なのはこのこと:サイン、コサインは、無限の波と円を作り出す。

5通目

5通目からは特に抜粋しないけど、ここでMixや歪みについて教えてもらえます。
あと、メールの中にクイズがあった(1通目にもあった。他のメールにもあったかな?...なかった気がする)。

6通目(さいご)

It took a couple of iterations to make a sketch that looked decent both in grid and non-grid. But the tools we're gonna learn in this lesson are gonna help you create and iterate on grid sketches.

何度か繰り返して試してみて、ちゃんと見られるものにできた、と言ってくれているみたいです。
心折らず、繰り返しよくなるまで試す...!

そんな感じで

何か面白いの作ってみたいな。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0