quad2dat program


Re: quad2dat program
#12
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.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
quad2dat program - by Remco Canten - 2013-08-21, 19:27
Re: quad2dat program - by Michael Heidemann - 2013-08-22, 19:12
Re: quad2dat program - by Remco Canten - 2013-08-22, 21:48
Re: quad2dat program - by Willy Tschager - 2013-08-23, 7:35
Re: quad2dat program - by Michael Heidemann - 2013-08-23, 19:55
Re: quad2dat program - by Magnus Forsberg - 2013-08-23, 21:03
Re: quad2dat program - by Michael Heidemann - 2013-08-23, 21:30
Re: quad2dat program - by Magnus Forsberg - 2013-08-23, 22:10
Re: quad2dat program - by Michael Heidemann - 2013-08-24, 20:45
Re: quad2dat program - by Travis Cobbs - 2013-08-25, 19:08
Re: quad2dat program - by Michael Heidemann - 2013-08-25, 19:19
Re: quad2dat program - by Michael Heidemann - 2013-08-26, 21:08
Re: quad2dat program - by Tim Gould - 2013-08-26, 22:10
Re: quad2dat program - by Travis Cobbs - 2013-08-26, 22:50
Re: quad2dat program - by Rolf Osterthun - 2013-08-27, 10:02
Re: quad2dat program - by Rolf Osterthun - 2013-08-29, 20:17
Re: quad2dat program - by Tim Gould - 2013-08-29, 21:41
Re: quad2dat program - by Philippe Hurbain - 2013-08-30, 8:28
Re: quad2dat program - by Philippe Hurbain - 2013-09-13, 9:42
Re: quad2dat program - by Rolf Osterthun - 2013-09-16, 20:02
Re: quad2dat program - by Philippe Hurbain - 2013-09-17, 7:16

Forum Jump:


Users browsing this thread: 1 Guest(s)