![]() |
Leotard hips (awkwardly hacking dat-files) - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: Models and Parts (https://forums.ldraw.org/forum-18.html) +--- Forum: Parts Authoring (https://forums.ldraw.org/forum-19.html) +--- Thread: Leotard hips (awkwardly hacking dat-files) (/thread-29091.html) |
Leotard hips (awkwardly hacking dat-files) - Jeroen Hoek - 2025-09-25 For a MOC I am working on I have two minifig part variants which seem to be missing:
In the LDraw parts database I noticed that this hips-with-leotard variant does exist: So I figured I'd have a look to see if I can't just hack that one a bit with a text editor, and that actually worked: ![]() What I did was remove foot front along with the coloured toes, and repair the hole with a yellow quad. I made yellow a fixed colour, but used the variable 16 colour code for the leotard. This means that this will work for four plain leotard hips, as far as I can see:
There are more leotard bottoms, but those all seem to have additional details like spots or socks which is beyond my current skill level with LDraw files. I've created dat-files for these four based on the Tinkerbell original by Evert-Jan Boer (@ejboer). Is someone willing to have a look at what I've made to see if these can be contributed back to LDraw? I'm a little out of my depth here with regards to the process and the required metadata for the files. I've uploaded the files with their dependencies here. The files prefixed with jh in the parts-folder were added by me, the rest came along with the download for parts/73200bp01.dat. I've used the Bricklink ids to name those new files for now. Two other files are copies of the Tinkerbell pants, with the names kept the same except for the prefix. For the second one — the torso variant — I am willing to draw that back and front and see I if I can get that working, but on the LDraw website I am missing something like a tutorial which outlines how you can get from a drawing to a working LDraw file. Am I right in assuming that it basically comes down to using flat coloured triangles and quads to approximate the decorations on any surface? RE: Leotard hips (awkwardly hacking dat-files) - Peter Grass - 2025-09-25 Have a look at using img4dat https://forums.ldraw.org/thread-23242.html It should help with converting the torso image to be triangles etc. RE: Leotard hips (awkwardly hacking dat-files) - Magnus Forsberg - 2025-09-25 (8 hours ago)Jeroen Hoek Wrote: I made yellow a fixed colour, but used the variable 16 colour code for the leotard. This practise is not allowed in ldraw. The "print" must be fixed, and the "plastic" uncoloured. |