Commit graph

145 commits

Author SHA1 Message Date
dbc959ef80
Merge pull request #12 from vonhyou/utils
add script to build and run
2024-03-04 03:02:17 -05:00
e7180edc95
fix logic err 2024-03-04 03:01:41 -05:00
2258643a46
add run script 2024-03-04 02:57:58 -05:00
ca0f0194ed
Merge branch 'master' of github.com:vonhyou/ray-tracer-comp371 2024-03-04 02:49:27 -05:00
6ccab91d73
Merge pull request #11 from vonhyou/direct-illum
Direct illumination
2024-03-04 02:49:05 -05:00
0aa8696cf4
delete debug info 2024-03-04 02:48:33 -05:00
6d81bd4530
calc correct light 2024-03-04 02:43:10 -05:00
b5878e06c9
bugfix: clamp 2024-03-04 02:25:59 -05:00
efab58561a
commit 2024-03-03 23:22:47 -05:00
f98939c206
update gitignore 2024-03-03 22:43:27 -05:00
6b1f026427
make area light 2024-03-03 21:52:38 -05:00
27bdd95fa6
calculate ambient, diffuse and specular 2024-02-29 01:16:49 -05:00
bb8819013c
work on direct illumination 2024-02-29 00:15:00 -05:00
184812c533
calculate nearest hit 2024-02-28 00:58:29 -05:00
a8a00d386e
bugfix: color shadow 2024-02-27 23:36:12 -05:00
43a8204032
make getters const 2024-02-27 21:23:24 -05:00
94f1898b51
rewrite output 2024-02-27 20:35:41 -05:00
812317f2ee
write background color 2024-02-22 19:49:26 -05:00
8f7d369092
Merge branch 'master' of github.com:vonhyou/ray-tracer-comp371 2024-02-21 01:57:03 -05:00
d808e05449
Merge pull request #10 from vonhyou/ray
Add ray class and impl ray casting
2024-02-21 01:56:13 -05:00
bcc65cb98e
Merge pull request #8 from vonhyou/ray
Ray class and ray casting
2024-02-21 01:35:05 -05:00
0633159427
finish ray casting 2024-02-21 01:33:06 -05:00
bd99b001bb
check if plane intersect with ray 2024-02-20 23:32:29 -05:00
0b38f93655
use p1 to p4 instead of a matrix 2024-02-20 22:37:38 -05:00
295bdc0c89
use p1 to p4 instead of a matrix 2024-02-20 22:32:55 -05:00
f624514714
revert 2024-02-20 22:26:37 -05:00
22a96dce29
sync: try to impl intersection detection for rectangles 2024-02-20 20:45:20 -05:00
0006e3f0f4
erase magic number 2024-02-19 20:42:11 -05:00
85d8025cd6
fix orientation 2024-02-19 20:41:08 -05:00
6488a9dd9f
rewrite getRay 2024-02-19 20:36:31 -05:00
324b226f98
remove debug code 2024-02-19 17:31:32 -05:00
0d4d15209f
bugfix: incorrect type 2024-02-19 17:30:29 -05:00
ffaf3aa450
use fov to calc viewport height 2024-02-19 15:54:43 -05:00
e4e2d26a16
add ray constructor 2024-02-19 14:18:22 -05:00
29c5fe91d9
impl ray casted render 2024-02-19 01:47:35 -05:00
ed42a0f9ca
remove debug codes 2024-02-19 01:16:49 -05:00
d06d07217f
use save ppm 2024-02-19 01:15:30 -05:00
1d19b6bcc4
rewrite output 2024-02-19 01:10:30 -05:00
9a8e09207d
impl getters 2024-02-18 23:52:03 -05:00
49fd22cbb6
design ray class 2024-02-18 23:50:10 -05:00
2f7a9f4cbd
modify name getter 2024-02-18 23:49:55 -05:00
77533a8ca0
Merge pull request #7 from vonhyou/parser
Parser
2024-02-18 22:08:19 -05:00
e13fd8a438
add light parser 2024-02-18 20:52:59 -05:00
73b90f7535
add geometry parser 2024-02-18 20:21:43 -05:00
9f63434b12
add geometry parser 2024-02-15 18:02:19 -05:00
a42eae91de
remove redundant path 2024-02-15 17:12:41 -05:00
7d273f9420
parse and write scene 2024-02-13 23:45:29 -05:00
03b6bbbb8e
parse scenes 2024-02-13 23:21:42 -05:00
2f4d439e97
update RT class 2024-02-13 22:36:04 -05:00
e308c901f5
bugfix: center and centre 2024-02-13 22:35:34 -05:00