LDraw.org Discussion Forums

Full Version: stud.io special line types
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

there are some lines in a stud.io file that I don't understand.

Example for line-3-triangle:
Code:
3 -1 12 0 10 14.345 2 10 -14.345 2 10 0.345 0.954 0.329 0.897 0.524 0.897
3 -1 16 32 -6 19 32 -10 -19 32 -10
The second line is fine, but the first line has six additional floats - most probably two additional points. Is this a shortcut for some kind of triangle-stripe? As not all lines have the same number of arguments, this seems to be some kind of option? The corresponding part is not existing in LDraw-world, so I can't replace it.

Example for line-5-auxline:
Code:
5 -2 7.654 4.000 -18.478 7.654 8.000 -18.478
This line is missing the control points as far as I can see. The auxline here is inside the inlined part 4032.dat, which is moved to 4032a.dat in LDraw. The corresponding auxline there is:
Code:
5 24 7.6537 4 -18.4776 7.6537 8 -18.4776 14.14 4 -14.14 0 4 -20
The color is ok (Bricklink -2 matches to LDraw 24), and the coordinates just have one digit less precision. But it seems the stud.io-file skipped the control-points. Is there some default for the control-points? As this part is just an inlined version of an official part, I could easily replace it, but I would like to know how this works.

Thanks in advance for any hint.
(2022-03-26, 8:59)Stefan Frenz Wrote: [ -> ]Hi there,

there are some lines in a stud.io file that I don't understand.

Example for line-3-triangle:
Code:
3 -1 12 0 10 14.345 2 10 -14.345 2 10 0.345 0.954 0.329 0.897 0.524 0.897
3 -1 16 32 -6 19 32 -10 -19 32 -10
The second line is fine, but the first line has six additional floats - most probably two additional points. Is this a shortcut for some kind of triangle-stripe? As not all lines have the same number of arguments, this seems to be some kind of option? The corresponding part is not existing in LDraw-world, so I can't replace it.

Example for line-5-auxline:
Code:
5 -2 7.654 4.000 -18.478 7.654 8.000 -18.478
This line is missing the control points as far as I can see. The auxline here is inside the inlined part 4032.dat, which is moved to 4032a.dat in LDraw. The corresponding auxline there is:
Code:
5 24 7.6537 4 -18.4776 7.6537 8 -18.4776 14.14 4 -14.14 0 4 -20
The color is ok (Bricklink -2 matches to LDraw 24), and the coordinates just have one digit less precision. But it seems the stud.io-file skipped the control-points. Is there some default for the control-points? As this part is just an inlined version of an official part, I could easily replace it, but I would like to know how this works.

Thanks in advance for any hint.

The additional values in the line type 3 are UV coordinates. I don't know if there are any instances of line type 4 with UV coordinates, but I imagine the same pattern would apply. The UV coordinates correspond to the vertex positions in the same line.

In some ways, the way Stud.io handles textures is easier than the official TEXMAP standard, but there are additional aspects to the Stud.io texturing standard that are less easy to process. This is how I handle it.
(2022-04-02, 12:04)Matthew Morrison Wrote: [ -> ]The additional values in the line type 3 are UV coordinates.

Thank you very much! Smile  As LDInspector does not support textures, I can skip them without mingled feelings. Smile