Welcome! Log In Create A New Profile

Advanced
Re: WebGL renderer
avatarNovember 22, 2012 01:02AM
Quote
Steffen
the improvements which I spontaneously like to collect here, jumping to my eye or mind, are

(a) rotation center:
The center of rotation currently seems to be hardcoded 0/0/0.
I would better like to have it at the model's center, like in LDView.
Using the mouse currently in your web app feels so different than LDView,
that it confuses me. I would love to see a big similarity in mouse handling between the 2 tools.

Yes that's hardcoded now. I don't know if ldview calculates the center automatically or uses some metadata in the file. i have to make some tests.
About the mouse, i just thrown in a working system, it surely can be improved, and it needs zooming with the wheel :)

Quote
Steffen
(b) incremental parts display:
perhaps it is very easy to do, and you could show the model already while it is loading.
the user can watch the downloaded parts appear in the model.
I think it could be quite cheap to do, because you already know all the matrices etc, just the "real" part data is missing.
Thus, you could already build up the necessary data structures, and skip them on rendering, while the model is not fully loaded.
I think this would be an evern more "incremental" load than displaying the progress status message :D

Yeah i considered it too.. Seeing the model progressively being built would be awesome. It might not be very hard but needs some modifications on the program.

Quote
Steffen
(d) default color 16:
Nicola, you seem to currently use 0/0/0 always for default color 16.
I would prefer if you would use the color specified explicitly in LDConfig.ldr (some "medium" default grey).
To you already use that file? You can always get the most recent version also from the ldraw.org site.

I've yet to understand completely how color works, but i got that 16 is actually the "current color", and i correcly substitute it with what "parent lines" says, it's not hardcoded to 0. What i miss is the whole "complementary" colors and code 24.

Quote
Steffen
(e) edges:
you currently are not rendering edges at all.
I would like to have a checkbox or button for toggling that on and off.
It should be nearly trivial to add the drawing of them to your existing implementation.

Normal edges would be trivial, conditional edges will be not :) They're one of the most puzzling quirks of LDraw file model. Basically you cannot just send them to OpenGL as a bunch of vectors, you have to manually test one by one and decide if you should draw them with a quite complex algorithm. It looks like some kind of hardcoded, precalculated "toon shading" like algorithm?
What i'd like to do is to use them to see if faces should be smooth or flat (basically what they tell is if the two faces should be "curved" or separated) so that i can render curved part nicely, but that require some work.

Quote
Steffen
Nicola, I am again falling of my chair, impressed.
I just tested the attached file, which uses an LSYNTH synthesized cable,
plus unofficial parts, it loaded quickly and smooth, and looked beautiful!

That's not my merit, LSynth generates standard faces, i didn't do anything special for it :)

Quote
Steffen
var flip = geometry._inverting ^ (det<0.0) ^ (!ccw); // kungfu

hahahaha, liked that

Lol, that code required quite a lot of trial and error :) Another quirk of LDraw is how it mixes CCW and CW faces and how it "inverts" subparts :)
SubjectAuthorViewsPosted
WebGL renderer Nicola2323November 16, 2012 06:58AM
Re: WebGL renderer Michael Heidemann619November 16, 2012 01:08PM
Re: WebGL renderer Attachments Michael Heidemann557November 25, 2012 08:00AM
Re: WebGL renderer Nicola547November 26, 2012 01:15AM
Re: WebGL renderer Travis Cobbs715November 26, 2012 12:31PM
Re: WebGL renderer Michael Heidemann653January 01, 2013 12:03AM
Re: WebGL renderer Nicola552January 15, 2013 08:29AM
Re: WebGL renderer Attachments Nicola575January 15, 2013 12:25PM
Re: WebGL renderer Roland Melkert576January 15, 2013 02:16PM
Re: WebGL renderer Nicola586January 16, 2013 12:31AM
Re: WebGL renderer Michael Heidemann541January 16, 2013 07:57AM
Re: WebGL renderer Nicola557January 16, 2013 08:37AM
Re: WebGL renderer Philippe Hurbain619November 16, 2012 01:51PM
Re: WebGL renderer Tim Gould589November 16, 2012 02:12PM
Re: WebGL renderer Steffen639November 16, 2012 04:57PM
Re: WebGL renderer Nicola570November 17, 2012 08:23AM
Re: WebGL renderer Steffen667November 17, 2012 03:28PM
Re: WebGL renderer Tim Gould620November 17, 2012 03:57PM
Re: WebGL renderer Nicola681November 18, 2012 05:05AM
Re: WebGL renderer Travis Cobbs532November 17, 2012 06:17PM
Re: WebGL renderer Nicola630November 18, 2012 05:15AM
Re: WebGL renderer Steffen575November 18, 2012 06:14AM
Re: WebGL renderer Tim Gould626November 18, 2012 12:58PM
Re: WebGL renderer Nicola568November 21, 2012 11:23AM
Re: WebGL renderer Willy Tschager472November 21, 2012 01:49PM
Re: WebGL renderer Philippe Hurbain612November 21, 2012 09:51PM
Re: WebGL renderer Nicola627November 22, 2012 12:47AM
Re: WebGL renderer Philippe Hurbain605November 22, 2012 01:09AM
Re: WebGL renderer Willy Tschager590November 22, 2012 01:45AM
Re: WebGL renderer Philippe Hurbain595November 22, 2012 02:01AM
Re: WebGL renderer Nicola558November 22, 2012 02:26AM
Re: WebGL renderer Philippe Hurbain559November 22, 2012 02:55AM
Re: WebGL renderer Philippe Hurbain692November 22, 2012 01:05AM
Re: WebGL renderer Steffen609November 21, 2012 03:41PM
Re: WebGL renderer Steffen486November 21, 2012 03:52PM
Re: WebGL renderer Nicola526November 22, 2012 01:02AM
Re: WebGL renderer Philippe Hurbain592November 22, 2012 01:21AM
Re: WebGL renderer Steffen536November 22, 2012 12:29PM
Re: WebGL renderer Nicola566November 23, 2012 02:44AM
Re: WebGL renderer Philippe Hurbain557November 23, 2012 04:18AM
Re: WebGL renderer Steffen536November 23, 2012 11:07AM
Re: WebGL renderer Steffen532November 23, 2012 10:57AM
Re: WebGL renderer Attachments Steffen596November 21, 2012 04:02PM
Re: WebGL renderer Steffen508November 21, 2012 04:13PM
WebGL in Firefox (or other Mozilla browsers?) Steffen1030November 22, 2012 01:11PM
Re: WebGL renderer Ken Drew623November 21, 2012 05:25PM
Re: WebGL renderer Willy Tschager572November 22, 2012 08:05AM
Re: WebGL renderer Nicola555November 22, 2012 10:45AM
Re: WebGL renderer Steffen663November 22, 2012 12:34PM
Re: WebGL renderer Willy Tschager190November 13, 2014 03:51AM
Re: WebGL renderer Steffen230November 14, 2014 02:53PM
Re: WebGL renderer Nicola544November 28, 2012 02:22PM
Re: WebGL renderer Philippe Hurbain567November 29, 2012 12:19AM
Re: WebGL renderer Travis Cobbs607November 29, 2012 03:42PM
Re: WebGL renderer Nicola602December 14, 2012 03:05AM
Re: WebGL renderer Philippe Hurbain476December 14, 2012 04:29AM
Re: WebGL renderer Nicola518December 14, 2012 05:06AM
Re: WebGL renderer Philippe Hurbain489December 14, 2012 05:11AM
Re: WebGL renderer Steffen473December 15, 2012 02:44PM
Also trying LDraw in WebGL Daniel B675December 28, 2012 05:10AM
Re: Also trying LDraw in WebGL Daniel B525December 28, 2012 01:23PM
Re: Also trying LDraw in WebGL Nicola477January 15, 2013 08:31AM
Re: WebGL renderer Michael Horvath588December 31, 2012 09:28AM
Re: WebGL renderer Nicola445January 15, 2013 08:34AM
Re: WebGL renderer Michael Heidemann497January 15, 2013 08:38AM
Re: WebGL renderer Michael Horvath559January 25, 2013 02:46PM
Re: WebGL renderer Nicola465January 28, 2013 04:49AM
Re: WebGL renderer Roland Melkert519January 28, 2013 01:56PM
Re: WebGL renderer Michael Horvath187November 29, 2014 05:19PM
Re: WebGL renderer Michael Heidemann535January 28, 2013 02:19PM
Re: WebGL renderer Steffen506January 28, 2013 02:37PM
Re: WebGL renderer Travis Cobbs549January 28, 2013 02:45PM
Re: WebGL renderer Rolf Osterthun489August 21, 2013 07:52AM
Re: WebGL renderer Nicola418August 21, 2013 08:01AM
Re: WebGL renderer Willy Tschager490August 30, 2013 07:39AM
Re: WebGL renderer Nicola522August 30, 2013 07:57AM
Re: WebGL renderer Rolf Osterthun407September 12, 2013 10:23AM
Re: WebGL renderer Orion Pobursky505September 12, 2013 11:38AM
Re: WebGL renderer Steffen397September 13, 2013 06:19PM
Re: WebGL renderer Nathanel Titane145December 06, 2014 02:20PM
Re: WebGL renderer Steffen396August 30, 2013 10:29AM
Re: WebGL renderer Orion Pobursky524September 18, 2013 04:09PM
Re: WebGL renderer Rolf Osterthun512September 19, 2013 01:30AM
Re: WebGL renderer Orion Pobursky376September 19, 2013 01:40PM
Re: WebGL renderer Orion Pobursky422September 19, 2013 02:00PM
Re: WebGL renderer Orion Pobursky440September 19, 2013 02:49PM
Re: WebGL renderer Orion Pobursky512September 19, 2013 04:15PM
Re: WebGL renderer Nicola436November 19, 2013 05:39AM
Re: WebGL renderer Steffen478November 20, 2013 04:54PM
Re: WebGL renderer Orion Pobursky483November 20, 2013 05:56PM
Re: WebGL renderer Steffen406November 22, 2013 06:44PM
Re: WebGL renderer Lucas GIRARD406March 08, 2014 08:34AM
Re: WebGL renderer Nathanel Titane153December 05, 2014 11:10PM
Re: WebGL renderer Rolf Osterthun146December 06, 2014 12:28PM
Re: WebGL renderer Nathanel Titane115December 06, 2014 01:51PM
Re: WebGL renderer Nathanel Titane138December 06, 2014 03:05PM
Re: WebGL renderer Nicola347December 15, 2014 03:59AM
Re: WebGL renderer Nathanel Titane152December 06, 2014 03:05PM
Re: WebGL renderer Nathanel Titane198December 06, 2014 10:26PM



Sorry, only registered users may post in this forum.

Click here to login