42minirt / miniRT

Simple RayTracer with miniLibX
0 stars 0 forks source link

テスト #11

Closed ak0327 closed 1 year ago

ak0327 commented 1 year ago

チェック項目などなど

ak0327 commented 1 year ago

rt_fileが多くなってきたので rt_file(ok,ng)をminiRTに渡し、 exit statusでハンドリングの成否をチェックするスクリプトを作っておきたいかも

ngだと勝手に終了するが、okだとどうやって終了させよう escとか?

ak0327 commented 1 year ago

修正点memo

fixed 6.rt ``` A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 40 L 0, 0, 5 1.0 255,255,255 sp 0, 0, 5 2 255, 0, 0 pl 0, -1, 0 0, 1, 0 0, 255, 0 ``` ![Screenshot 2023-05-25 at 15 09 09](https://github.com/42minirt/miniRT/assets/51146172/e6b78baf-e8ea-4fdc-a4db-5e14b8ebd8b5) - [ ] Light touch sphereで描画がバグる 6.rt ``` A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 40 L 1, 0, 5 1.0 255,255,255 sp 0, 0, 5 2 255, 0, 0 pl 0, -1, 0 0, 1, 0 0, 255, 0 ``` ![Screenshot 2023-05-25 at 15 11 01](https://github.com/42minirt/miniRT/assets/51146172/55ff1b42-6875-4785-94e6-b6b222119239)
ak0327 commented 1 year ago
fixed ``` A 0.1 255, 255, 255 C 0,0,-10 0, 0, 1 180 L 10,10,0 1.0 255,255,255 sp 0,0,10 2 255,0,0 pl 1, 0, 0 1, 0, 0 0,255,0 ``` ![Screenshot 2023-05-25 at 15 17 31](https://github.com/42minirt/miniRT/assets/51146172/0e6043e9-32fe-474f-9f9c-3024f2df5deb)
ak0327 commented 1 year ago
fixed ``` # test draw window 2:1 # corn A 0.1 255, 255, 255 C 0,0,-10 0, 0, 1 40 L -5,5,-5 1.0 255,255,255 pl 0, -1, 0 0, 1, 0 150,150,150 co 0, -0.5, 3 -0.2, 1, 0 1 0.000001 200,200,250 checker 150,150,200 co -2, 0, 3 0, 0, -1 1 0.000001 200,250,200 checker 150,200,150 co 2, 0, 3 1, 1, 0.2 1 0.000001 250,200,200 checker 250,150,150 ``` ![Screenshot 2023-05-25 at 15 48 40](https://github.com/42minirt/miniRT/assets/51146172/ef85acb6-512d-4152-b7af-d118567d4c5e)
- [x] くさ 浮動小数点の精度因ならどうしようもない ``` # test draw window 2:1 # corn A 0.1 255, 255, 255 C 0,0,-10 0, 0, 1 40 L -5,5,-5 1.0 255,255,255 pl 0, -1, 0 0, 1, 0 150,150,150 co 0, -0.5, 3 -0.2, 1, 0 1 0.0000001 200,200,250 checker 150,150,200 co -2, 0, 3 0, 0, -1 1 0.0000001 200,250,200 checker 150,200,150 co 2, 0, 3 1, 1, 0.2 1 0.0000001 250,200,200 checker 250,150,150 ``` ![Screenshot 2023-05-25 at 15 50 25](https://github.com/42minirt/miniRT/assets/51146172/9e560e58-b7eb-41a9-8c5f-3424bceaa9e5)
ak0327 commented 1 year ago
fixed ``` # test draw window 2:1 # cylinder A 0.1 255, 255, 255 C 0,0,-10 0, 0, 1 40 L -5,5,-5 1.0 255,255,255 pl 0, -1, 0 0, 1, 0 150,150,150 cy -1, 0, 3 -1, 1, 1 0.001 2 200,250,200 checker 150,200,150 cy -2, 0, 3 -1, 1, 1 0.01 2 200,250,200 checker 150,200,150 cy 0, -0.5, 3 -0.2, 1, 0 0.01 2 200,200,250 checker 150,150,200 cy 2, 0, 3 1, 1, 0.2 0.01 2 250,200,200 checker 250,150,150 cy 1, 0, 3 1, 1, 0.2 0.001 2 250,200,200 checker 250,150,150 ``` ![Screenshot 2023-05-25 at 15 57 58](https://github.com/42minirt/miniRT/assets/51146172/1caaaf8b-7312-482a-8064-21721469a366)
ak0327 commented 1 year ago

pl 0, -1, 0 0, 1, 0 255,150,150 checker 255, 200, 200 pl -2, 0, 0 1, 1, 0 150,255,150 checker 200, 255, 200 pl 10, 0, 0 -1, -1, 0 150,150,255 checker 200, 200, 255


![Screenshot 2023-05-25 at 16 06 12](https://github.com/42minirt/miniRT/assets/51146172/346370f7-1635-48ff-8c18-28e362fb922d)
ak0327 commented 1 year ago
fixed ``` # test draw window 2:1 # sphere A 0.1 255, 255, 255 C 0,0,-10 0, 0, 1 40 L 0,10,-5 1.0 255,255,255 pl 0, -1, 0 0, 1, 0 255,150,150 checker 255, 200, 200 pl -2, 0, 0 1, 1, 0 150,255,150 checker 200, 255, 200 pl 10, 0, 0 -1, 0, 0 150,150,255 checker 200, 200, 255 pl 10, 2, 0 0, -1, 0 150,150,150 checker 255, 255, 255 ``` ![Screenshot 2023-05-25 at 16 09 58](https://github.com/42minirt/miniRT/assets/51146172/70a94d19-5eed-4500-9213-45442efd3ae4)
ak0327 commented 1 year ago
fixed ``` # test draw window 2:1 # cy A 0.1 255, 255, 255 C 0,0,-10 0, 0, 1 40 # L -20,20,-20 1.0 255,255,255 L 0, 0, 0 1.0 255,255,255 pl 0, -1, 0 0, 1, 0 250,150,150 cy 0, 0, 10 0, 0, -1 5 100 200,200,250 checker 150,150,200 ``` ![Screenshot 2023-05-25 at 16 24 41](https://github.com/42minirt/miniRT/assets/51146172/6ff77df8-33d5-4070-9823-5e84fee4d368)
corn 同じディメンジョン 205.rt (co_005.rt) ![Screenshot 2023-05-25 at 16 26 28](https://github.com/42minirt/miniRT/assets/51146172/06e6d457-8604-4f59-bc4b-8721bcb35025)
ak0327 commented 1 year ago
fixed ``` # test draw window 2:1 # sp A 0.1 255, 255, 255 C 0,0,-10 0, 0, 1 40 L 10,-10,-5 1.0 255,255,255 L 10, 10,-5 1.0 255,255,255 pl 0, -0.1, 0 0, 1, 0 150,150,150 sp 0, 0 , 0 1 255,0,0 ``` ![Screenshot 2023-05-25 at 16 42 09](https://github.com/42minirt/miniRT/assets/51146172/da1df90f-e38a-46de-a025-80a9fda81e36)
上面のLをコメントアウトした様子 ![Screenshot 2023-05-25 at 16 42 00](https://github.com/42minirt/miniRT/assets/51146172/2b1a7e2f-3a42-4a9b-a959-340c179d0f4f)
ak0327 commented 1 year ago
ak0327 commented 1 year ago

未着手 鏡面 複数の物体の組み合わせ 物体が丁度重なった場合 など

molhot commented 1 year ago

6.rtに関して

diffuseの中で交点と光源の間に物体がある場合計算しないようにしたところ真っ暗になった これで良い。。。?

molhot commented 1 year ago

描画のバグっぽいのは消えたっぽい。。。?

fixed > # 修正点memo > * [x] image_pathの指定、`./`始まりがNGになっているので要修正 > * [x] bump mapが反映されていない?凹凸が表現されていない > * [x] Light in sphere on plane で設置面から光が漏れる(Light in sphereはOK) > > 6.rt > > ``` > A 0.1 255, 255, 255 > C 0,0,-5 0, 0, 1 40 > L 0, 0, 5 1.0 255,255,255 > sp 0, 0, 5 2 255, 0, 0 > pl 0, -1, 0 0, 1, 0 0, 255, 0 > ``` > > ![Screenshot 2023-05-25 at 15 09 09](https://user-images.githubusercontent.com/51146172/240817996-e6b78baf-e8ea-4fdc-a4db-5e14b8ebd8b5.png) > > * [x] Light touch sphereで描画がバグる > 6.rt > ``` > A 0.1 255, 255, 255 > C 0,0,-5 0, 0, 1 40 > L 1, 0, 5 1.0 255,255,255 > sp 0, 0, 5 2 255, 0, 0 > pl 0, -1, 0 0, 1, 0 0, 255, 0 > ``` > > ![Screenshot 2023-05-25 at 15 11 01](https://user-images.githubusercontent.com/51146172/240818465-55ff1b42-6875-4785-94e6-b6b222119239.png) スクリーンショット 2023-05-28 14 50 11 描画のバグっぽいのは消えたっぽい。。。?
molhot commented 1 year ago

これを対応するならcheckintersectionの計算を行う際に法線ベクトルを逆にして、交点があったほうを法線ベクトルにしちゃえばよさそうですね、確認後修正するなら修正しちゃいます

fixed > * [x] Lがplで隠れているはず > -> plの法線ベクトルを(-1,0,0)にすると真っ暗になった(specularはあるが対応中のため問題なし) > -> plの裏表が法線ベクトルで決まっているが、裏表は区別しないほうが描画的に良さげ...? > > ``` > A 0.1 255, 255, 255 > C 0,0,-10 0, 0, 1 180 > L 10,10,0 1.0 255,255,255 > sp 0,0,10 2 255,0,0 > pl 1, 0, 0 1, 0, 0 0,255,0 > ``` > > ![Screenshot 2023-05-25 at 15 17 31](https://user-images.githubusercontent.com/51146172/240819615-0e6043e9-32fe-474f-9f9c-3024f2df5deb.png) これを対応するならcheckintersectionの計算を行う際に法線ベクトルを逆にして、交点があったほうを法線ベクトルにしちゃえばよさそうですね、確認後修正するなら修正しちゃいます
molhot commented 1 year ago
fixed > * [x] corn height 0.000001くらいから描画がバグる(浮動小数点の精度の問題かも) > 202.rt ( co_002.rt) > > ``` > # test draw window 2:1 > # corn > A 0.1 255, 255, 255 > C 0,0,-10 0, 0, 1 40 > L -5,5,-5 1.0 255,255,255 > > > pl 0, -1, 0 0, 1, 0 150,150,150 > > co 0, -0.5, 3 -0.2, 1, 0 1 0.000001 200,200,250 checker 150,150,200 > co -2, 0, 3 0, 0, -1 1 0.000001 200,250,200 checker 150,200,150 > co 2, 0, 3 1, 1, 0.2 1 0.000001 250,200,200 checker 250,150,150 > ``` > > ![Screenshot 2023-05-25 at 15 48 40](https://user-images.githubusercontent.com/51146172/240826338-ef85acb6-512d-4152-b7af-d118567d4c5e.png) > > > * [x] くさ 浮動小数点の精度因ならどうしようもない > > ``` > # test draw window 2:1 > # corn > A 0.1 255, 255, 255 > C 0,0,-10 0, 0, 1 40 > L -5,5,-5 1.0 255,255,255 > > > pl 0, -1, 0 0, 1, 0 150,150,150 > > co 0, -0.5, 3 -0.2, 1, 0 1 0.0000001 200,200,250 checker 150,150,200 > co -2, 0, 3 0, 0, -1 1 0.0000001 200,250,200 checker 150,200,150 > co 2, 0, 3 1, 1, 0.2 1 0.0000001 250,200,200 checker 250,150,150 > ``` > > ![Screenshot 2023-05-25 at 15 50 25](https://user-images.githubusercontent.com/51146172/240826701-9e560e58-b7eb-41a9-8c5f-3424bceaa9e5.png) くさWWWWWWWWWWWW
molhot commented 1 year ago
  • [ ] plane 後で見る(位置調整中のバグ、原因不明) 101.rt (pl_001.rt)
# test draw window 2:1
# sphere
A   0.1                                                 255, 255, 255
C   0,0,-10        0, 0, 1   40
L   0,10,-5                               1.0            255,255,255

pl   0, -1, 0        0, 1, 0                           255,150,150   checker 255, 200, 200
pl  -2, 0, 0         1, 1, 0                           150,255,150   checker 200, 255, 200
pl   10, 0, 0       -1, -1, 0                          150,150,255   checker 200, 200, 255

Screenshot 2023-05-25 at 16 06 12

全く同じになる

molhot commented 1 year ago

これ球体消えちゃいましたなんで??

fixed > A 0.1 255, 255, 255 > C 0,0,-10 0, 0, 1 40 > L 10,-10,-5 1.0 255,255,255 > L 10, 10,-5 1.0 255,255,255 > > pl 0, -0.1, 0 0, 1, 0 150,150,150 > > sp 0, 0 , 0 1 255,0,0 これ球体消えちゃいましたなんで??
molhot commented 1 year ago
fixed # test draw window 2:1 # sp A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 40 L 10,-10,-5 1.0 255,255,255 L 0, 10,-3 1.0 255,255,255 #pl 0, -0.1, 0 0, 1, 0 150,150,150 sp 0, 0, 0 1 255,0,0 [](url) スクリーンショット 2023-05-28 20 28 25
molhot commented 1 year ago
  • [ ] plane 後で見る(位置調整中のバグ、原因不明) 101.rt (pl_001.rt)
# test draw window 2:1
# sphere
A   0.1                                                 255, 255, 255
C   0,0,-10        0, 0, 1   40
L   0,10,-5                               1.0            255,255,255

pl   0, -1, 0        0, 1, 0                           255,150,150   checker 255, 200, 200
pl  -2, 0, 0         1, 1, 0                           150,255,150   checker 200, 255, 200
pl   10, 0, 0       -1, -1, 0                          150,150,255   checker 200, 200, 255

Screenshot 2023-05-25 at 16 06 12

平面と電気が重ねっているときどうすべきなのか

ak0327 commented 1 year ago
fixed ``` A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 30 L 0, 5, -5 1.0 255,255,255 sp 0, 0, 1 2.0 255,0,0 image "img/1k_earth.ppm" "img/1k_earth_normal.ppm" # cy 0.3, -0.5, 0 1, 0, 0 0.5 0.5 255, 0 , 255 ```
ak0327 commented 1 year ago
fixed ``` A 0.1 255, 255, 255 C 0,1,-2 0, -0.1, 1 40 # L 0, 5, -5 1.0 255,255,255 L -0.1, 1, -1 1.0 255,255,255 sp 0, 1, 0 2.0 255,0,0 image "img/1k_earth.ppm" "img/1k_earth_normal.ppm" pl 0, 0 , 0 0, 1, 0 255,150,150 image "" "img/normalmap_example.ppm" # pl 0, 0 , 0 0, 1, 0 255,150,150 # cy 0.3, -0.5, 0 1, 0, 0 0.5 0.5 255, 0 , 255 ``` ![Screenshot 2023-05-31 at 14 43 59](https://github.com/42minirt/miniRT/assets/51146172/4c349a21-9b87-459a-8edc-64af7ef3f81c) - [x] 変な気がする(これはOK) ``` A 0.1 255, 255, 255 C 0,1,-2 0, -0.1, 1 40 # L 0, 5, -5 1.0 255,255,255 L -0.1, 1, -1 1.0 255,255,255 sp 0, 1, 0 2.0 255,0,0 pl 0, 0 , 0 0, 1, 0 255,150,150 # pl 0, 0 , 0 0, 1, 0 255,150,150 # cy 0.3, -0.5, 0 1, 0, 0 0.5 0.5 255, 0 , 255 ``` ![Screenshot 2023-05-31 at 16 13 39](https://github.com/42minirt/miniRT/assets/51146172/05da8def-59cd-4079-b7a9-0ea26a0ae001)
molhot commented 1 year ago

ファイル内にコメントアウトしたものがあるとエラーになってしまう

ok # test draw window 2:1 # sphere A 0.1 255, 255, 255 C 0,0,0 0, 0, 1 40 L 0,10,0 1.0 255,255,255#test pl 0, -1, 0 0, 1, 0 255,150,150 checker 255, 200, 200 pl -2, 0, 0 1, 1, 0 150,255,150 checker 200, 255, 200 pl 10, 0, 0 -1, -1, 0 150,150,255 checker 200, 200, 255
molhot commented 1 year ago

※ 気になる点

ak0327 commented 1 year ago

INFでも描画できるのは良くなさそう...🥺

ak0327 commented 1 year ago
読み取った値(double)のチェックを追加 ```c bool is_vec_in_range(t_vec vec) { const double x = vec.x; const double y = vec.y; const double z = vec.z; return ((DBL_MIN <= x && x <= DBL_MAX) \ && (DBL_MIN <= y && y <= DBL_MAX) \ && (DBL_MIN <= z && z <= DBL_MAX)); } ``` FLTにするかDBLにするか... 0.00000がDBL範囲外と判定される謎現象があったのでこっちになった ```c bool is_vec_in_range(t_vec vec) { const double x = vec.x; const double y = vec.y; const double z = vec.z; if (isinf(x) || isnan(x)) return (false); if (isinf(y) || isnan(y)) return (false); if (isinf(z) || isnan(z)) return (false); return (true); } ```
ak0327 commented 1 year ago
ok ![Screenshot 2023-05-31 at 22 56 59](https://github.com/42minirt/miniRT/assets/51146172/6c1c605d-3fe2-4ef0-95e2-a36150c35413) ``` A 0.1 255, 255, 255 C 0,0,-50 0, 0, 1 60 L 0, 0.9, 2.5 1.0 255,255,255 sp -0.4, -0.65, 3 0.7 255,0,0 perfect_ref sp 0.5, -0.65, 2.5 0.7 0,0,255 # 白い床 pl 0, -1 , 0 0, 1, 0 255,255,255 checker 0,0,0 # 白い天井 pl 0, 1 , 0 0, -1, 0 255,255,255 # 白い壁 pl 0, 0 , 5 0, 0, -1 255,255,0 # red pl -1, 0 , 0 1, 0, 0 255,0,0 # green pl 1, 0 , 0 -1, 0, 0 0,255,0 ```
ak0327 commented 1 year ago

https://help.autodesk.com/view/ARNOL/JPN/?guid=arnold_user_guide_ac_tutorials_ac_specular_brdf_html

molhot commented 1 year ago
fixed > # test draw window 2:1 > # sp > A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 40 L 10,-10,-5 1.0 255,255,255 L 0, 10,-3 1.0 255,255,255 > > #pl 0, -0.1, 0 0, 1, 0 150,150,150 > > sp 0, 0, 0 1 255,0,0 スクリーンショット 2023-05-28 20 28 25 カラーをaddに変えたがaddされない、原因解明中
molhot commented 1 year ago
スクリーンショット 2023-06-01 10 31 53

specularは直ったが影は残ってしまっている。。。?

ak0327 commented 1 year ago

というか上面のdiffuseが乗ってそう

fixed ``` # sp A 0.1 255, 255, 255 C 0,-5,-5 0, 1, 1 120 L 10,-10,-5 1.0 255,255,255 L 10, 10,-5 1.0 255,255,255 pl 0, -1, 0 0, 1, 0 150,150,150 sp 0, 0 , 0 1 255,0,0 ``` ![Screenshot 2023-06-01 at 18 16 03](https://github.com/42minirt/miniRT/assets/51146172/381af568-9cd9-425c-a324-0b7c0e9007cb) -> fixed ![Screenshot 2023-06-01 at 18 34 38](https://github.com/42minirt/miniRT/assets/51146172/cf8d0479-c5d9-4891-8165-825785c38d49)
ak0327 commented 1 year ago
fixed ``` A 0.1 255, 255, 255 C 0,5,-5 0, -1, 1 120 # C 0,-5,-5 0, 1, 1 120 L 10,-10,-5 1.0 255,255,255 # L 10, 10,-5 1.0 255,255,255 pl 0, -1, 0 0, 1, 0 150,150,150 image "" "img/normalmap_example.ppm" sp 0, 0 , 0 1 255,0,0 ``` ![Screenshot 2023-06-01 at 19 02 16](https://github.com/42minirt/miniRT/assets/51146172/0e12e5d1-7578-4fb9-8e01-7f50a84838cf)
## 修正完了 plだけでなく、spの内部の光なども漏れていた original normal と bump normal両方について dot(n, l)や ray, int_pos, lightの位置関係がdrawableの条件のみ描画するようにした * planeのnormal取得はここで: https://github.com/42minirt/miniRT/blob/57ed0ffc01ffd770afe133a9151a3785df6feec1/srcs/raytrace/raytrace.c#L72 * dot(n. l) 計算 : https://github.com/42minirt/miniRT/commit/3dac4d3bcd36edb60b3d7c169701700b825e9ba4 ``` A 0.1 255, 255, 255 C 0,5,-5 0, -1, 1 40 # C 0,-5,-5 0, 1, 1 120 L 10, 10,-5 1.0 255,255,255 L 10,-10,-5 1.0 255,0,255 L 0, 0,0 1.0 0,255,0 pl 0, -1, 0 0, 1, 0 150,150,150 image "" "img/normalmap_example.ppm" sp 0, 0 , 0 1 255,0,0 image "" "img/normalmap_example.ppm" ``` ![Screenshot 2023-06-02 at 9 44 08](https://github.com/42minirt/miniRT/assets/51146172/fa5fdfb2-62ed-43a1-bfda-3bf93c783c77) 光漏れてたやつ sp 内部にgreen、pl裏面にpinkのLight ![Screenshot 2023-06-02 at 9 27 23](https://github.com/42minirt/miniRT/assets/51146172/aedb525e-2f20-4b99-a784-e6f9cae8a634)
ak0327 commented 1 year ago

できてそう!(結構重い)

ok test.rt ``` A 0.1 255, 255, 255 C 0,2,-10 0, -0.2, 1 50 # C 0,-5,-5 0, 1, 1 120 L 0, 10,-5 1.0 255,255,255 # L 10,-10,-5 1.0 255,0,255 # L 0, 0,0 1.0 0,255,0 pl 0, -1, 0 0, 1, 0 150,150,150 image "" "img/normalmap_example.ppm" pl -5, -1, 0 1, 1, -1 150,150,150 image "img/cat.ppm" "" pl 0, 0, 5 0, 0, 1 150,150,150 perfect_ref sp 0, 0 , 0 1 255, 0, 0 image "" "img/normalmap_example.ppm" sp 0, -0.5 , -3 1 255, 0, 0 image "img/1k_earth.ppm" "img/1k_earth_normal.ppm" cy 2, 0, -2 0, 1, 0.5 1.0 2 250,200,200 image "" "img/normalmap_example.ppm" co -2, 0, -2 0.2, 1, 0 2.0 2 250,200,200 image "" "img/normalmap_example.ppm" ``` ![Screenshot 2023-06-02 at 10 11 29](https://github.com/42minirt/miniRT/assets/51146172/ef75d1db-26cd-451d-9016-aa8ded763d88)
ak0327 commented 1 year ago
ok test_obj/sl_004.rt ``` A 0.1 255, 255, 255 C 0,0,0 0, 0, 1 160 L 0,0,0 0.5 255,255,255 pl 0, -10, 0 0, 1, 0 100,0,0 pl 0, 10, 0 0, 1, 0 100,0,0 checker 100, 50, 50 pl -10, 0, 0 1, 0, 0 0,100,0 pl 10, 0, 0 1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -10 0, 0, 1 0,0,100 pl 0, 0, 10 0, 0, 1 0,0,100 checker 50, 50, 100 #################################################################################### # sl 0, 0, 0 1, 0, 0 1.0 30.0 0,255,0 # sl 0, 0, 0 1, 0.5, 0 1.0 30.0 0,255,0 # sl 0, 0, 0 0.5, 1, 0 1.0 30.0 0,255,0 # sl 0, 0, 0 0, 1, 0 1.0 30.0 0,255,0 # sl 0, 0, 0 -0.5, 1, 0 1.0 30.0 0,255,0 # sl 0, 0, 0 -1, 0.5, 0 1.0 30.0 0,255,0 # sl 0, 0, 0 -1, 0, 0 1.0 30.0 0,255,0 sl 0, 0, 0 1, -1, 0 1.0 30.0 255,0,0 sl 0, 0, 0 1, -0.5, 0 1.0 30.0 255,0,0 sl 0, 0, 0 0.5, -1, 0 1.0 30.0 255,0,0 sl 0, 0, 0 0, -1, 0 1.0 30.0 255,0,0 sl 0, 0, 0 -0.5, -1, 0 1.0 30.0 255,0,0 sl 0, 0, 0 -1, -0.5, 0 1.0 30.0 255,0,0 sl 0, 0, 0 -1, -1, 0 1.0 30.0 255,0,0 ``` ![Screenshot 2023-06-05 at 16 56 40](https://github.com/42minirt/miniRT/assets/51146172/bbd85701-a152-4990-a1a9-c4f38922ef91)
ak0327 commented 1 year ago
ok plの法線ベクトルの方向は関係なさそう test_obj/sl_005.rt ``` A 0.1 255, 255, 255 C 0,0,0 0, 0, 1 160 L 0,0,0 0.5 255,255,255 pl 0, -10, 0 0, 1, 0 100,0,0 pl 0, 10, 0 0, 1, 0 100,0,0 checker 100, 50, 50 pl -10, 0, 0 1, 0, 0 0,100,0 pl 10, 0, 0 1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -10 0, 0, 1 0,0,100 pl 0, 0, 10 0, 0, 1 0,0,100 checker 50, 50, 100 #################################################################################### sl 0, 0, 0 0, 1 , 0 1.0 30.0 255,0,0 sl 0, 0, 0 0, 1 , 1 1.0 30.0 255,0,0 sl 0, 0, 0 0, 0.75, 1 1.0 30.0 255,0,0 sl 0, 0, 0 0, 0.5 , 1 1.0 30.0 255,0,0 sl 0, 0, 0 0, 0.25, 1 1.0 30.0 255,0,0 sl 0, 0, 0 0, 0 , 1 1.0 30.0 255,0,0 sl 0, 0, 0 0, -0.25, 1 1.0 30.0 0,255,0 sl 0, 0, 0 0, -0.5 , 1 1.0 30.0 0,255,0 sl 0, 0, 0 0, -0.75, 1 1.0 30.0 0,255,0 sl 0, 0, 0 0, -1 , 1 1.0 30.0 0,255,0 sl 0, 0, 0 0, -1 , 0.5 1.0 30.0 0,255,0 sl 0, 0, 0 0, -1 , 0 1.0 30.0 0,255,0 ``` ![Screenshot 2023-06-05 at 17 02 06](https://github.com/42minirt/miniRT/assets/51146172/1c27a225-001e-40f7-ab34-47d842552b29)
ak0327 commented 1 year ago
fixed test_obj/cy003.rt ``` A 0.1 255, 255, 255 C 0,0,-15 0, 0, 1 60 L 0,40,-20 1 255,255,255 pl 0, -50, 0 0, -1, 0 100,0,0 pl 0, 50, 0 0, -1, 0 100,0,0 checker 100, 50, 50 pl -50, 0, 0 -1, 0, 0 0,100,0 pl 50, 0, 0 -1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -50 0, 0, -1 0,0,100 pl 0, 0, 50 0, 0, -1 0,0,100 checker 50, 50, 100 #################################################################################### cy 10, 3, 10 0, 0, 1 1 2 200,200,250 checker 150,150,200 cy 5, 3, 10 0, 1, 0.5 1 2 200,200,250 checker 150,150,200 cy 0, 3, 10 0, 1, 1 1 2 200,200,250 checker 150,150,200 cy -5, 3, 10 0, 0.5, 0.5 1 2 200,200,250 checker 150,150,200 cy -10, 3, 10 0, 1, 0 1 2 200,200,250 checker 150,150,200 cy 10, -3, 10 0, 0, -1 1 2 200,200,250 checker 150,150,200 cy 5, -3, 10 0, 1, -0.5 1 2 200,200,250 checker 150,150,200 cy 0, -3, 10 0, 1, -1 1 2 200,200,250 checker 150,150,200 cy -5, -3, 10 0, 0.5, -0.5 1 2 200,200,250 checker 150,150,200 cy -10, -3, 10 0, 1, 0 1 2 200,200,250 checker 150,150,200 ``` ![Screenshot 2023-06-05 at 17 23 22](https://github.com/42minirt/miniRT/assets/51146172/fb06c702-66c9-49ad-ab7d-83538b0b0fc2) Lを(0,0,-15)に移動 ![Screenshot 2023-06-05 at 17 25 25](https://github.com/42minirt/miniRT/assets/51146172/b91eee24-21ab-42b5-aee4-37e208e014fd)
ak0327 commented 1 year ago
ok test_obj/cy_005.rt ``` A 0.1 255, 255, 255 C 0,0,-15 0, 0, 1 60 L 0,0,-20 1 255,255,255 pl 0, -50, 0 0, -1, 0 100,0,0 pl 0, 50, 0 0, -1, 0 100,0,0 checker 100, 50, 50 pl -50, 0, 0 -1, 0, 0 0,100,0 pl 50, 0, 0 -1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -50 0, 0, -1 0,0,100 pl 0, 0, 50 0, 0, -1 0,0,100 checker 50, 50, 100 #################################################################################### cy 10, 3, 10 0, 0, 1 1 2 200,200,250 checker 150,150,200 cy 5, 3, 10 1, 0, 0.5 1 2 200,200,250 checker 150,150,200 cy 0, 3, 10 1, 0, 1 1 2 200,200,250 checker 150,150,200 cy -5, 3, 10 0.5, 0, 0.5 1 2 200,200,250 checker 150,150,200 cy -10, 3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 cy 10, -3, 10 0, 0, -1 1 2 200,200,250 checker 150,150,200 cy 5, -3, 10 1, 0, -0.5 1 2 200,200,250 checker 150,150,200 cy 0, -3, 10 1, 0, -1 1 2 200,200,250 checker 150,150,200 cy -5, -3, 10 0.5, 0, -0.5 1 2 200,200,250 checker 150,150,200 cy -10, -3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 ``` ![Screenshot 2023-06-05 at 17 28 27](https://github.com/42minirt/miniRT/assets/51146172/aa8a25d2-4038-4d7c-afcb-5f9085430a44)
ak0327 commented 1 year ago
fixed test_obj/cy_006.rt ``` A 0.1 255, 255, 255 C 0,25,-15 0, -1, 1 40 L 0,20, -20 1 255,255,255 pl 0, -50, 0 0, -1, 0 100,0,0 pl 0, 50, 0 0, -1, 0 100,0,0 checker 100, 50, 50 pl -50, 0, 0 -1, 0, 0 0,100,0 pl 50, 0, 0 -1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -50 0, 0, -1 0,0,100 pl 0, 0, 50 0, 0, -1 0,0,100 checker 50, 50, 100 #################################################################################### # cy 10, 3, 10 0, 0, 1 1 2 200,200,250 checker 150,150,200 # cy 5, 3, 10 1, 0, 0.5 1 2 200,200,250 checker 150,150,200 # cy 0, 3, 10 1, 0, 1 1 2 200,200,250 checker 150,150,200 # cy -5, 3, 10 0.5, 0, 0.5 1 2 200,200,250 checker 150,150,200 # cy -10, 3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 # # cy 10, -3, 10 0, 0, -1 1 2 200,200,250 checker 150,150,200 # cy 5, -3, 10 1, 0, -0.5 1 2 200,200,250 checker 150,150,200 # cy 0, -3, 10 1, 0, -1 1 2 200,200,250 checker 150,150,200 # cy -5, -3, 10 0.5, 0, -0.5 1 2 200,200,250 checker 150,150,200 # cy -10, -3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 cy -10, 3, 10 1, 0, 0 1 2 200,200,250 image "img/cat.ppm" "" cy -5, 3, 10 1, 1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 0, 3, 10 0, 1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 5, 3, 10 0, 1, 1 1 2 200,200,250 image "img/cat.ppm" "" cy 10, 3, 10 0, 0, 1 1 2 200,200,250 image "img/cat.ppm" "" cy -10, -3, 10 -1, 0, 0 1 2 200,200,250 image "img/cat.ppm" "" cy -5, -3, 10 -1, -1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 0, -3, 10 0, -1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 5, -3, 10 0, -1, -1 1 2 200,200,250 image "img/cat.ppm" "" cy 10, -3, 10 0, 0, -1 1 2 200,200,250 image "img/cat.ppm" "" ``` ![Screenshot 2023-06-05 at 17 45 50](https://github.com/42minirt/miniRT/assets/51146172/4efa98de-dbab-424d-b90d-4e9d834b9ca4) ok! ![Screenshot 2023-06-05 at 17 50 56](https://github.com/42minirt/miniRT/assets/51146172/db6a43c1-67b8-42ae-b28f-12ec6245c02f)
ak0327 commented 1 year ago
ok test_obj/co_006.rt ``` A 0.1 255, 255, 255 C 0,25,-15 0, -1, 1 40 L 0,20, -20 1 255,255,255 pl 0, -50, 0 0, -1, 0 100,0,0 pl 0, 50, 0 0, -1, 0 100,0,0 checker 100, 50, 50 pl -50, 0, 0 -1, 0, 0 0,100,0 pl 50, 0, 0 -1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -50 0, 0, -1 0,0,100 pl 0, 0, 50 0, 0, -1 0,0,100 checker 50, 50, 100 #################################################################################### # co 10, 3, 10 0, 0, 1 1 2 200,200,250 checker 150,150,200 # co 5, 3, 10 1, 0, 0.5 1 2 200,200,250 checker 150,150,200 # co 0, 3, 10 1, 0, 1 1 2 200,200,250 checker 150,150,200 # co -5, 3, 10 0.5, 0, 0.5 1 2 200,200,250 checker 150,150,200 # co -10, 3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 # # co 10, -3, 10 0, 0, -1 1 2 200,200,250 checker 150,150,200 # co 5, -3, 10 1, 0, -0.5 1 2 200,200,250 checker 150,150,200 # co 0, -3, 10 1, 0, -1 1 2 200,200,250 checker 150,150,200 # co -5, -3, 10 0.5, 0, -0.5 1 2 200,200,250 checker 150,150,200 # co -10, -3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 co -10, 3, 10 1, 0, 0 3 2 200,200,250 image "img/cat.ppm" "" co -5, 3, 10 1, 1, 0 3 2 200,200,250 image "img/cat.ppm" "" co 0, 3, 10 0, 1, 0 3 2 200,200,250 image "img/cat.ppm" "" co 5, 3, 10 0, 1, 1 3 2 200,200,250 image "img/cat.ppm" "" co 10, 3, 10 0, 0, 1 3 2 200,200,250 image "img/cat.ppm" "" co -10, -3, 10 -1, 0, 0 3 2 200,200,250 image "img/cat.ppm" "" co -5, -3, 10 -1, -1, 0 3 2 200,200,250 image "img/cat.ppm" "" co 0, -3, 10 0, -1, 0 3 2 200,200,250 image "img/cat.ppm" "" co 5, -3, 10 0, -1, -1 3 2 200,200,250 image "img/cat.ppm" "" co 10, -3, 10 0, 0, -1 3 2 200,200,250 image "img/cat.ppm" "" ``` ![Screenshot 2023-06-05 at 17 55 30](https://github.com/42minirt/miniRT/assets/51146172/f8341592-9806-4583-9707-a9c97129a071) いや、問題なくz方向向いてる気がする...?? co_007.rt ``` A 0.1 255, 255, 255 # C 0,25,-15 0, -1, 1 40 C -15,0,0 1, 0, 0 120 # L 0,20, -20 1 255,255,255 L -20,20, 0 1 255,255,255 pl 0, -50, 0 0, -1, 0 100,0,0 pl 0, 50, 0 0, -1, 0 100,0,0 checker 100, 50, 50 pl -50, 0, 0 -1, 0, 0 0,100,0 pl 50, 0, 0 -1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -50 0, 0, -1 0,0,100 pl 0, 0, 50 0, 0, -1 0,0,100 checker 50, 50, 100 #################################################################################### co 0, 0, -5 0, 0, 1 3 2 200,200,250 image "img/cat.ppm" "" co 0, 0, 5 0, 0, -1 3 2 200,200,250 image "img/cat.ppm" "" ``` ![Screenshot 2023-06-05 at 18 01 16](https://github.com/42minirt/miniRT/assets/51146172/0e8d1091-b773-432e-8b10-824c6f184241)
ak0327 commented 1 year ago

planeはimageの方向大丈夫そう

ok pl_001.rt くそだるかった ``` A 0.1 255, 255, 255 C 0,0,0 0, 1, 1 120 L 0,0, 0 1 255,255,255 pl 0, -5, 0 0, 1, 0 100,0,0 image "img/cat.ppm" "" pl 0, 5, 0 0, 1, 0 100,0,0 image "img/cat.ppm" "" pl -5, 0, 0 1, 0, 0 0,100,0 image "img/cat.ppm" "" pl 5, 0, 0 1, 0, 0 0,100,0 image "img/cat.ppm" "" pl 0, 0, -5 0, 0, 1 0,0,100 image "img/cat.ppm" "" pl 0, 0, 5 0, 0, 1 0,0,100 image "img/cat.ppm" "" #################################################################################### pl 0, 0, 8 1, 0, 1 100,0,0 image "img/cat.ppm" "" pl 0, 0, 8 1, 0, -1 100,0,0 image "img/cat.ppm" "" pl 0, 0, -8 1, 0, 1 100,0,0 image "img/cat.ppm" "" pl 0, 0, -8 1, 0, -1 100,0,0 image "img/cat.ppm" "" pl 0, -8, 0 1, 1, 0 100,0,0 image "img/cat.ppm" "" pl 0, -8, 0 1, -1,0 100,0,0 image "img/cat.ppm" "" pl 0, -8, 0 0, 1, 1 100,0,0 image "img/cat.ppm" "" pl 0, -8, 0 0, -1,1 100,0,0 image "img/cat.ppm" "" pl 0, 8, 0 1, 1, 0 100,0,0 image "img/cat.ppm" "" pl 0, 8, 0 1, -1,0 100,0,0 image "img/cat.ppm" "" pl 0, 8, 0 0, 1, 1 100,0,0 image "img/cat.ppm" "" pl 0, 8, 0 0, -1,1 100,0,0 image "img/cat.ppm" "" ``` ![Screenshot 2023-06-05 at 18 24 28](https://github.com/42minirt/miniRT/assets/51146172/9f79b85b-223d-43a0-944e-3316f454c0e0)
molhot commented 1 year ago
判別できてるっぽい > * [x] plane 後で見る(位置調整中のバグ、原因不明) > 101.rt (pl_001.rt) > > ``` > # test draw window 2:1 > # sphere > A 0.1 255, 255, 255 > C 0,0,-10 0, 0, 1 40 > L 0,10,-5 1.0 255,255,255 > > pl 0, -1, 0 0, 1, 0 255,150,150 checker 255, 200, 200 > pl -2, 0, 0 1, 1, 0 150,255,150 checker 200, 255, 200 > pl 10, 0, 0 -1, -1, 0 150,150,255 checker 200, 200, 255 > ``` > > ![Screenshot 2023-05-25 at 16 06 12](https://user-images.githubusercontent.com/51146172/240830172-346370f7-1635-48ff-8c18-28e362fb922d.png) スクリーンショット 2023-06-05 20 06 35 判別できてるっぽい
ak0327 commented 1 year ago
cornel box ``` A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 40 L 0, 0.9, 2.5 1.0 255,255,255 sp -0.25, -0.5, 3 1 255,0,0 perfect_ref pl 0,-1 , 0 0, 1, 0 255,255,255 pl 0, 1 , 0 0, 1, 0 255,255,255 pl 0, 0 , 5 0, 0, 1 255,255,255 pl -1, 0 , 5 1, 0, 0 255,000,000 pl 1, 0 , 5 1, 0, 0 000,255,000 ``` ![Screenshot 2023-06-06 at 9 43 18](https://github.com/42minirt/miniRT/assets/51146172/f463d553-241e-4286-bf88-0a18bd8a5081)
ak0327 commented 1 year ago
fixed test_obj/sp_001.rt ``` A 1.0 255, 255, 255 C 0,0,-45 0, 0, 1 120 L 0,5,-5 1.0 255,255,255 #################################################################################### # sp 0.0, 0.0, 0 100 250, 00, 00 image "img/cat.ppm" "" sp 0,0,0 100 255,0,0 image "img/1k_earth.ppm" "img/1k_earth_normal.ppm" ```
ak0327 commented 1 year ago
ak0327 commented 1 year ago
fixed ``` A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 120 L 0,0,0 1 255,255,255 co 0, -2, 0 0, 1, 0 1 2 200,200,250 ```
ak0327 commented 1 year ago

validationを追加

if (norm(vec) < (1.0 / EPSILON_DIVISOR))
    return (false);
ak0327 commented 1 year ago
fixed co_005.rt ``` A 0.1 255, 255, 255 C 0,25,-15 0, -1, 1 40 L 0,20, -20 1 255,255,255 pl 0, -50, 0 0, -1, 0 100,0,0 pl 0, 50, 0 0, -1, 0 100,0,0 checker 100, 50, 50 pl -50, 0, 0 -1, 0, 0 0,100,0 pl 50, 0, 0 -1, 0, 0 0,100,0 checker 50, 100, 50 pl 0, 0, -50 0, 0, -1 0,0,100 pl 0, 0, 50 0, 0, -1 0,0,100 checker 50, 50, 100 #################################################################################### # cy 10, 3, 10 0, 0, 1 1 2 200,200,250 checker 150,150,200 # cy 5, 3, 10 1, 0, 0.5 1 2 200,200,250 checker 150,150,200 # cy 0, 3, 10 1, 0, 1 1 2 200,200,250 checker 150,150,200 # cy -5, 3, 10 0.5, 0, 0.5 1 2 200,200,250 checker 150,150,200 # cy -10, 3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 # # cy 10, -3, 10 0, 0, -1 1 2 200,200,250 checker 150,150,200 # cy 5, -3, 10 1, 0, -0.5 1 2 200,200,250 checker 150,150,200 # cy 0, -3, 10 1, 0, -1 1 2 200,200,250 checker 150,150,200 # cy -5, -3, 10 0.5, 0, -0.5 1 2 200,200,250 checker 150,150,200 # cy -10, -3, 10 1, 0, 0 1 2 200,200,250 checker 150,150,200 cy -10, 3, 10 1, 0, 0 1 2 200,200,250 image "img/cat.ppm" "" cy -5, 3, 10 1, 1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 0, 3, 10 0, 1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 5, 3, 10 0, 1, 1 1 2 200,200,250 image "img/cat.ppm" "" cy 10, 3, 10 0, 0, 1 1 2 200,200,250 image "img/cat.ppm" "" cy -10, -3, 10 -1, 0, 0 1 2 200,200,250 image "img/cat.ppm" "" cy -5, -3, 10 -1, -1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 0, -3, 10 0, -1, 0 1 2 200,200,250 image "img/cat.ppm" "" cy 5, -3, 10 0, -1, -1 1 2 200,200,250 image "img/cat.ppm" "" cy 10, -3, 10 0, 0, -1 1 2 200,200,250 image "img/cat.ppm" "" ``` ![Screenshot 2023-06-08 at 11 44 08](https://github.com/42minirt/miniRT/assets/51146172/23bd4883-9e60-4f4f-8462-3e333e280889) ![Screenshot 2023-06-08 at 12 39 48](https://github.com/42minirt/miniRT/assets/51146172/20e6052a-ea95-44e9-a3c1-c2a1d3020297)
ak0327 commented 1 year ago
fixed mult_008.rt ``` A 0.1 255, 255, 255 C -5.0, 200.0, -600.0 0, -0.2, 1.0 50 L 0,500,-500 1.0 255,255,255 pl 0, 0, 0 0, 1, 0 80,80,80 checker 0, 0, 0 pl -200,0,200 1,1,-1 80,80,80 checker 0, 0, 0 pl 400,0,200 1,0,0.2 80,80,80 checker 0, 0, 0 sp 0,50,-150 100 130,130,0 image "./img/1k_earth.ppm" "./img/1k_earth_normal.ppm" miniRT!! ```
ak0327 commented 1 year ago
progress bar 作ってみた😚 https://github.com/42minirt/miniRT/blob/77f92e8c72ac2646b08361df78390d71b912999b/srcs/main.c#L111-L114
ak0327 commented 1 year ago
fixed 遠くの方が明るいのはなぜなんだろう... ``` A 0.1 255, 255, 255 C 0,1,-10 0, 0, 1 60 L 0,5,10 1 255,255,255 pl 0, 0, 0 0, 1, 0 100,0,0 ``` ![Screenshot 2023-06-09 at 13 41 26](https://github.com/42minirt/miniRT/assets/51146172/d503ca0d-2841-4347-ab68-30f4e385a73f) これとか plとLが近い時に濃淡ができる ``` A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 60 # L -10,10,-10 1 255,255,255 L 0, 0.5,-1 1 255,255,255 # sp 0, 0,0 1 0,255,0 # sp 1, 0,0 1 255,0,0 sp 0, 0, 0 1 255,0,0 # cy 0, 0, 0 0, 1, 1 1 1 200,200,250 pl 0, -0.5, 0 0, 1, 0 150,150,150 ``` ![Screenshot 2023-06-09 at 14 02 59](https://github.com/42minirt/miniRT/assets/51146172/c36eba17-7b38-43ff-95ce-698f2d18cc14) diffuseでムラができているっぽい diffuse only ![Screenshot 2023-06-09 at 14 09 31](https://github.com/42minirt/miniRT/assets/51146172/18a4e60f-828a-48df-9c1d-afd3012ce6df) specular only ![Screenshot 2023-06-09 at 14 09 55](https://github.com/42minirt/miniRT/assets/51146172/81db1cb5-d2c2-4f48-9f92-9b12a184be54)
これ、diffuse + specularの重ね合わせでムラが生じているだけかも...?? 物理現象ではあるが直感的ではないんだよなあ... plのspecularが大きすぎる? plのksをめっちゃ小さくすればいいのか! ついでに全体のksも下げてみる
共通のks=0x555555へ低減した 加えて、plのみksを変更してみた ks=0x222222 (red=0x22, green=0x22, blue=0x22)くらいが丁度良さそう? ``` A 0.1 255, 255, 255 C 0,0,-5 0, 0, 1 100 # L -10,10,-10 1 255,255,255 L 0, 0.5,-1 1 255,255,255 # sp 0, 0,0 1 0,255,0 # sp 1, 0,0 1 255,0,0 sp 0, 0, 0 1 255,0,0 # cy 0, 0, 0 0, 1, 1 1 1 200,200,250 pl 0, -0.5, 0 0, 1, 0 150,150,150 ``` ks=0xFFFFFF ![Screenshot 2023-06-10 at 11 09 46](https://github.com/42minirt/miniRT/assets/51146172/bfda5839-f8bd-4e14-b259-dc7bae84cb4e) ks=0x999999 ![Screenshot 2023-06-10 at 11 12 47](https://github.com/42minirt/miniRT/assets/51146172/ef33bba7-188c-40c8-b946-6d428ab29b04) ks=0x555555 ![Screenshot 2023-06-10 at 11 10 16](https://github.com/42minirt/miniRT/assets/51146172/60be7c73-275d-4d51-8c27-8bb1b4b59c17) ks=0x222222 ![Screenshot 2023-06-10 at 11 10 29](https://github.com/42minirt/miniRT/assets/51146172/6c8b27b7-eecd-4396-a962-ffdfaa839b26) ks=0x000000 ![Screenshot 2023-06-10 at 11 10 42](https://github.com/42minirt/miniRT/assets/51146172/04b142a4-b3c0-4d56-aedd-3b64262b4981) ks=0x222222でcornel boxもいい感じになったかも https://github.com/42minirt/miniRT/issues/11#issuecomment-1577733503 ![Screenshot 2023-06-10 at 11 14 05](https://github.com/42minirt/miniRT/assets/51146172/e5c21c1c-db1f-4301-a840-97874a55820c) https://github.com/42minirt/miniRT/issues/11#issuecomment-1570290873 ![Screenshot 2023-06-10 at 13 21 57](https://github.com/42minirt/miniRT/assets/51146172/eba3a347-29da-4edb-8cb8-74eaca005b1e)
ak0327 commented 1 year ago

細かい変更関係