TEXMAP addition to Official Library Spec


RE: TEXMAP addition to Official Library Spec
#23
(2024-10-07, 20:06)Travis Cobbs Wrote: I don't know how LeoCAD works, but the !TEXMAP spec states that texture files should be looked for in the "textures/" folder, and if not found there, then in the folder containing the model. So having texture.png in the same directory as model.ldr is supposed to work.

I just copied example code from LeoCAD docs: https://www.leocad.org/docs/texmap.html

Code:
0 !TEXMAP START PLANAR 100 10 100 100 10 -100 -100 10 100 bottom.png
4 16 100 1 -100 100 1 100 -100 1 100 -100 1 -100
0 !TEXMAP END

0 !TEXMAP START PLANAR -100 -200 10 100 -200 10 -100 0 10 side.png
4 16 100 -200 120 100 0 120 -100 0 120 -100 -200 120
0 !TEXMAP END

0 !TEXMAP START PLANAR 0 -200 100 0 -200 -100 0 0 100 side.png
4 16 120 -200 100 120 0 100 120 0 -100 120 -200 -100
0 !TEXMAP END


Saved it as texmap.ldr, and placed it in a separate folder together with bottom.png and side.png images.

But opening this file in LeoCAD shows only untextured faces:

   


UPDATE: LeoCAD does not supports images placed in the same folder with LDraw file, and images embeded into LDraw file with "!DATA" command.

But LeoCAD supports texture image if it placed in "<path-to-library>/parts/textures/" folder.


Attached Files Thumbnail(s)
   
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: TEXMAP addition to Official Library Spec - by Eugen - 2024-10-07, 23:19

Forum Jump:


Users browsing this thread: 1 Guest(s)