LDraw.org Discussion Forums
Online Renderer - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: Rendering Techniques (https://forums.ldraw.org/forum-20.html)
+--- Thread: Online Renderer (/thread-1167.html)

Online Renderer - Jamie B. - 2011-10-30

Given that browsers now support WebGL (Firefox, Chrome, and Safari), you could do a browser-based part and model viewer.

Would anyone be interested in that?

Re: Online Renderer - Steffen - 2011-11-04

I had that very same thoughts as well, see this thread


Re: Online Renderer - Jean-Philippe Ouellet - 2011-11-26

I started such a project a while ago, I am extremely busy at the moment, but as things calm down in the real world I'll have more time to get it to a releasable state.

Without giving away too much information (I don't wanna promise things I can't deliver)... It renders parts at the moment. I still need to work on adding directional lighting for the shading to look like it's from this decade, but it works.

I'm writing almost the entire thing from scratch, not relying on any existing (generic) WebGL libraries. I've written the shaders from scratch to be as optimized as possible for use specific to LDraw. The only external library I used was glMatrix. We don't have fancy textures or anything, but we have TONS of polygons, for example a simple 4x2 brick has 472 lines and 700 triangles. To completely render a frame in the canvas from start to finish (with only a 2x4 brick) takes about 6ms in chrome, and 22ms in firefox.

Here's the obligatory 3001.dat render:
[Image: YVgmn.png]

question to forum admins: merge 3 threads? - Steffen - 2011-11-27

Suggestion: I would like to ask the three threads


merged into a single thread "LDraw App / LDraw Web Renderer"