Welcome! Log In Create A New Profile

Advanced
Re: quad2dat program
avatarAugust 26, 2013 02:08PM
I think the problem I am faced are well known, but I like to write them down, so we can discuss them.

My quick hack in vb.net looks for each pixel and generates a line type 4 of it.
By doing this also a little sticker takes a couple of KB/MB.
To minimize the size I need to combine the little quads as far as possible.
To do this, I need to have the colour adjusted, because only quads with the same colour can be combined.
Due to the scanning with 256 colours there are, also in plain white and blue (f.e) many differenct white and blue values.
But how should I (by application) decide which colour is the right one? - I do not know.

The colour mapping to existing LDraw colours did not what I expected (there are still too many colours envolved and the formerly nearly one colour surface is brocken because some colours are matched to dark color value and other to light colour value, so visible it distorted the picture).

So I think the best way for a sticker is to leave the colours like they are scanned.

To minimize the filesize in my opinion it is the best to scan each line, and if the neighbour quad has the same colour combine them. (I did not code this yet). This should (I guess) cut the number of lines by 50%.

If somebody has a better idea, please let me know.
SubjectAuthorViewsPosted
quad2dat program Remco Canten455August 21, 2013 12:27PM
Re: quad2dat program Michael Heidemann176August 22, 2013 12:12PM
Re: quad2dat program Remco Canten181August 22, 2013 02:48PM
Re: quad2dat program Willy Tschager158August 23, 2013 12:35AM
Re: quad2dat program Michael Heidemann174August 23, 2013 12:55PM
Re: quad2dat program Magnus Forsberg166August 23, 2013 02:03PM
Re: quad2dat program Michael Heidemann161August 23, 2013 02:30PM
Re: quad2dat program Magnus Forsberg163August 23, 2013 03:10PM
Re: quad2dat program Attachments Michael Heidemann164August 24, 2013 01:45PM
Re: quad2dat program Travis Cobbs150August 25, 2013 12:08PM
Re: quad2dat program Michael Heidemann150August 25, 2013 12:19PM
Re: quad2dat program Michael Heidemann181August 26, 2013 02:08PM
Re: quad2dat program Tim Gould173August 26, 2013 03:10PM
Re: quad2dat program Travis Cobbs177August 26, 2013 03:50PM
Re: quad2dat program Rolf Osterthun217August 27, 2013 03:02AM
Re: quad2dat program Attachments Rolf Osterthun179August 29, 2013 01:17PM
Re: quad2dat program Tim Gould139August 29, 2013 02:41PM
Re: quad2dat program Philippe Hurbain140August 30, 2013 01:28AM
Re: quad2dat program Philippe Hurbain150September 13, 2013 02:42AM
Re: quad2dat program Rolf Osterthun157September 16, 2013 01:02PM
Re: quad2dat program Philippe Hurbain310September 17, 2013 12:16AM



Sorry, only registered users may post in this forum.

Click here to login