Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I ported this to javascript. #4

Open
manthrax opened this issue Jan 22, 2019 · 4 comments
Open

I ported this to javascript. #4

manthrax opened this issue Jan 22, 2019 · 4 comments

Comments

@manthrax
Copy link

manthrax commented Jan 22, 2019

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!

@ssloy
Copy link
Owner

ssloy commented Jan 22, 2019

Very cool, thank you!

@ssloy ssloy pinned this issue Jan 22, 2019
@mkyung
Copy link

mkyung commented Jan 25, 2019

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

@ssloy
Copy link
Owner

ssloy commented Jan 25, 2019

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

@ssloy ssloy unpinned this issue Jan 25, 2019
@powernic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants