tinyraytracer icon indicating copy to clipboard operation
tinyraytracer copied to clipboard

I ported this to javascript.

Open manthrax opened this issue 5 years ago • 4 comments

I enjoyed reading this, so I ported it to javascript!

I added some premature optimization by making it render incrementally via generator functions, and by caching datastructure allocations.. those changes are easily removed if desired.

Here it is running: http://vectorslave.com/trt/trt.html

Here's the code: trt-js.zip

Cheers!

manthrax avatar Jan 22 '19 09:01 manthrax

Very cool, thank you!

ssloy avatar Jan 22 '19 12:01 ssloy

maybe @manthrax you can make a pull request to add this version?

mkyung avatar Jan 25 '19 06:01 mkyung

@manthrax , would you please so kind as to put it to github ? I'd like to collect a gallery of different realizations.

ssloy avatar Jan 25 '19 09:01 ssloy

@ssloy Здравствуйте! Мне так же понравилась ваша реализация рэйтрейсинга, если интересно, то вот моя реализация на js: https://github.com/powernic/jsraytracing

powernic avatar Jan 25 '19 12:01 powernic