Texture specs are without an example


Texture specs are without an example
#1
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.
LEGO ergo sum
Reply
RE: Texture specs are without an example
#2
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
Reply
RE: Texture specs are without an example
#3
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
Reply
RE: Texture specs are without an example
#4
I think more cross references in the spec/documentation could help in general.
Reply
RE: Texture specs are without an example
#5
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]


Attached Files
.png   texmap_example.png (Size: 20.86 KB / Downloads: 53)
Reply
RE: Texture specs are without an example
#6
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 !:"
Reply
RE: Texture specs are without an example
#7
(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
Reply
RE: Texture specs are without an example
#8
(2025-05-30, 19:42)Nils Schmidt Wrote: This is one of the !TEXMAP test files from LDPE:

I'll buy it.

w.
LEGO ergo sum
Reply
RE: Texture specs are without an example
#9
(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.
LEGO ergo sum
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)