handmade.network » Forums » Sharing my renderer project
Floresy
Tom
24 posts

None

#16703 Sharing my renderer project
1 month, 1 week ago Edited by Tom on Nov. 6, 2018, 8:47 p.m. Reason: Initial post

Hello everyone, I wanted to share with you my OpenGL rendering demo. It was written by myself, in a mostly C-style of C++, and can run in a web browser thanks to Emscripten. It's main dependencies are SQLite for managing/serializing custom entities (a bit overkill, but i'm comfortable with SQL), SDL for the web platform layer, and a few libraries from the expanded stblibs list.

I've also put together a break down of one frame of the renderer here.

As a note, any kind of use on a mobile device is untested, but on a decently new laptop or desktop it should run.
Let me know what you think, and if you have any questions!
(also let me know if there's a better place to post this kind of thing, it's been a while since i've posted here)

0xdedededede.....
mrmixer
Simon Anciaux
493 posts
#16704 Sharing my renderer project
1 month, 1 week ago

Do you have a .exe instead of the browser version (it seem a bit slow on my machine)?

Floresy
Tom
24 posts

None

#16706 Sharing my renderer project
1 month, 1 week ago

Yeah, the web version is a little rougher than a plain exe, any pointers anyone has for profiling a program running in a browser would be appreciated.

Here's a link to an exe download, though I realize now, I got so used to exit with Alt-F4 that it's the only way to close the app.

0xdedededede.....
mrmixer
Simon Anciaux
493 posts
#16711 Sharing my renderer project
1 month, 1 week ago

The exe crashes on my machine.



Here is some feedback from the web version. Keep in mind that I'm not a graphics expert and that I've never implemented anything that you did.

I don't know if it's due to the web version, but the rendering resolution seems really low. That might be a result of all the effects on the image.

There is a lot of aliasing, the shadow resolution seems far too low and there is quite a lot of surface (shadow) acne. The depth of field / tilt-shift effect is too strong or the transition is too fast, and several time in the demo things I'd like to see are out of focus (the top of towers for example). The tone mapping in my opinion washes the colors too much, there is no enough contrast in the final render.

One think I would like with that kind of demo is to be able to enable/disable/configure the different effects.

Thanks for sharing.
Floresy
Tom
24 posts

None

#16712 Sharing my renderer project
1 month, 1 week ago

Thanks for putting in so much time and effort looking at this, and for posting the console & error.

0xdedededede.....
LaresYamoir
17 posts
#16830 Sharing my renderer project
3 weeks, 3 days ago Edited by LaresYamoir on Nov. 22, 2018, 3:10 a.m.

This is a really cool demo. I only played around a little bit with webgl/emscripten myself, maybe I should give it another go. However I also encountered the same graphical problems with the web demo (didn't try the exe). Would be great if you could fix those.