LDraw.org Discussion Forums
Texture specs are without an example - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: General (https://forums.ldraw.org/forum-12.html)
+--- Forum: Official File Specifications/Standards (https://forums.ldraw.org/forum-32.html)
+--- Thread: Texture specs are without an example (/thread-28846.html)



Texture specs are without an example - Willy Tschager - 2025-05-29

We need a fully working texture example (preferable a tile or something small) at the end of the specs:

https://www.ldraw.org/texmap-spec.html

showing how a code should look like. The explanation at the top is not enough. Please post something below.

w.


RE: Texture specs are without an example - Jeff Jones - 2025-05-29

have this code
Code:
0 !TEXMAP START PLANAR -36.1299 0 36.1299 36.1299 0 36.1299 -36.1299 0 -36.1299 32533p234.png
0 !: 1 16 0 0 0 1 0 0 0 1 0 0 0 1 s\32505s01.dat
0 !: 1 16 0 0 0 -1 0 0 0 1 0 0 0 1 s\32505s01.dat
0 !: 1 16 0 0 0 1 0 0 0 1 0 0 0 1 s\32505s02.dat
0 !TEXMAP END
will this work as an example


RE: Texture specs are without an example - Hageta - 2025-05-29

Additionally a link to the example for the mpd spec could be added. That one includes an embedded image.

https://www.ldraw.org/article/47.html#example


RE: Texture specs are without an example - Hageta - 2025-05-29

I think more cross references in the spec/documentation could help in general.


RE: Texture specs are without an example - Nils Schmidt - 2025-05-30

This is one of the !TEXMAP test files from LDPE:

Code:
0 BFC CERTIFY CW

0 !TEXMAP START PLANAR 0 0 0 10 0 0 0 10 0 checker.png
0 !: 4 16 0 0 0 10 0 0 10 10 0 0 10 0
0 !TEXMAP FALLBACK
4 16 0 0 0 10 0 0 10 10 0 0 10 0
0 !TEXMAP END

1 15 15 0 0 5 0 0 0 1 0 0 0 5 48\4-4disc.dat
1 16 15 0 0 5 0 0 0 1 0 0 0 5 48\4-4edge.dat
1 16 15 10 0 5 0 0 0 1 0 0 0 5 48\4-4edge.dat
0 !TEXMAP START CYLINDRICAL 15 10 0 15 0 0 15 10 -5 360 checker.png GLOSSMAP gloss.png
0 !: 1 16 15 0 0 5 0 0 0 10 0 0 0 5 48\4-4cyli.dat
0 !TEXMAP FALLBACK
1 16 15 0 0 5 0 0 0 10 0 0 0 5 48\4-4cyli.dat
0 !TEXMAP END

0 !TEXMAP START SPHERICAL 25 5 0 25 5 -5 25 0 -5 360 180 checker.png
0 !: 1 16 25 5 0 5 0 0 0 5 0 0 0 5 48\8-8sphe.dat
0 !TEXMAP FALLBACK
1 16 25 5 0 5 0 0 0 5 0 0 0 5 48\8-8sphe.dat
0 !TEXMAP END

[Image: attachment.php?aid=12916]


RE: Texture specs are without an example - Orion Pobursky - 2025-05-30

You don't have to have the fallback if the non-fallback and fallback geometry are identical. It can just be:
Code:
0 !TEXMAP START PLANAR 0 0 0 10 0 0 0 10 0 checker.png
4 16 0 0 0 10 0 0 10 10 0 0 10 0
0 !TEXMAP END

Note the lack of "0 !:"


RE: Texture specs are without an example - Orion Pobursky - 2025-05-30

(2025-05-30, 20:01)Orion Pobursky Wrote: You don't have to have the fallback if the non-fallback and fallback geometry are identical. It can just be:
Code:
0 !TEXMAP START PLANAR 0 0 0 10 0 0 0 10 0 checker.png
4 16 0 0 0 10 0 0 10 10 0 0 10 0
0 !TEXMAP END

Note the lack of "0 !:"

Actually in the above case it could be shorted even further to:
Code:
0 !TEXMAP NEXT PLANAR 0 0 0 10 0 0 0 10 0 checker.png
4 16 0 0 0 10 0 0 10 10 0 0 10 0



RE: Texture specs are without an example - Willy Tschager - 2025-05-31

(2025-05-30, 19:42)Nils Schmidt Wrote: This is one of the !TEXMAP test files from LDPE:

I'll buy it.

w.


RE: Texture specs are without an example - Willy Tschager - 2025-05-31

(2025-05-29, 15:56)Hageta Wrote: Additionally a link to the example for the mpd spec could be added. That one includes an embedded image.

https://www.ldraw.org/article/47.html#example

Good point. I'll add it.

w.