|
Post by bezdomniy on Jan 3, 2020 6:56:01 GMT
Hi guys,
Thanks Jamis for the great book! I've been implementing the ray tracer in C++ to get some practice, and thought I'd learn some webdev while I'm at it.
So out my ray tracer running entirely in your web browser here: iliathoughts.com/posts/raytracer/. Some more description and a link to the code is there. I think my yaml loader should load scene descriptions used in the book and on this sub. Let me know if I've messed anything up.
Ilia.
|
|
|
Post by Jamis on Jan 6, 2020 20:54:34 GMT
Very cool! Thanks for sharing--I've dabbled a bit in wasm, but not to this point. Very cool to see how performant your ray tracer is!
- Jamis
|
|
|
Post by bezdomniy on Mar 11, 2020 0:19:46 GMT
Thanks Jamis!
Hey guys, just an update on this. Ive implemented up to chapter 15 and have a few scenes you can select from a dropdown now. Groups are working, so it renders the Christmas tree scene in reasonable time! It will even render on my phone!
Give it a go!
|
|
madox
New Member
Posts: 22
|
Post by madox on Mar 14, 2020 2:19:08 GMT
Very cool! are you using emscripten?
|
|
|
Post by Jamis on Mar 14, 2020 21:35:29 GMT
The scenes all look great! Thanks for sharing, this is really cool.
|
|
|
Post by bezdomniy on Mar 20, 2020 10:10:34 GMT
Thanks! Yes, compiled with emscripten.
|
|
|
Post by bezdomniy on Sept 21, 2020 9:35:43 GMT
Hey guys, Did some more work on the ray tracer over the last little while and have finally gotten around to porting the additions to the webassembly version. Concurrency using web workers, texture mapping and 3d models have been added since last time. You can also select the frame and then use the up,down,left,right arrows to orbit around it. The last 3 scenes in the dropdown are examples of textures and 3d models. The "Hippy models" scene has over 300,000 triangles so it'll take 15-60 seconds to render, so be patient if you run that one. Check it out (just scroll past the text): iliathoughts.com/posts/raytracer2/(if it doesn't work on skybox or hippy models, try reloading the page and reducing the web workers number in the dropdown. Since model and texture files are large, and there is no shared memory happening between the web workers, using lots of threads could cause you to run out of memory).
Cheers,
Ilia
|
|
|
Post by Jamis on Sept 22, 2020 12:44:36 GMT
Really nice work! The render time is really snappy.
|
|
|
Post by chrisd on Sept 30, 2020 21:56:45 GMT
I have performance envy. The results are very impressive. Well done!
|
|