LDraw.org Discussion Forums

Full Version: Texture mapping
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8
Hi all,

I've been very busy with texture mapping in the past days and did some bricks and tiles with nice "prints" for some projects I've been working on.

Now, I have need for a round 1x1 tile with a pattern.
So I made a square PNG image with transparent background (which works perfectly with the bricks and tiles) and mapped that on the surface.
Alas, this texture mapped surface remained planar and square so no such luck there.
Then I thought I'd made the plane on which is mapped transparent, but that had a bad result.

Would it be possible either way to apply texture mapping on other surfaces than rectangular, like for example the 4-4disc primitive?
I see no reason why this shouldn't work... Got some screenshots/sample code? See also this round dish with texmap: http://www.ldraw.org/cgi-bin/ptdetail.cg...960p0b.dat
(2017-06-28, 11:10)Philippe Hurbain Wrote: [ -> ]I see no reason why this shouldn't work... Got some screenshots/sample code? See also this round dish with texmap: http://www.ldraw.org/cgi-bin/ptdetail.cg...960p0b.dat

I was trying to create the Round Tile 1 x 1 with Brickheadz eye pattern. See attached.
This is the result:

[attachment=2817]

Note that the patterns on the bricks and tiles are low-res as I am testing things.
(2017-06-28, 12:04)Jaco van der Molen Wrote: [ -> ]
(2017-06-28, 11:10)Philippe Hurbain Wrote: [ -> ]I see no reason why this shouldn't work... Got some screenshots/sample code? See also this round dish with texmap: http://www.ldraw.org/cgi-bin/ptdetail.cg...960p0b.dat

I was trying to create the Round Tile 1 x 1 with Brickheadz eye pattern. See attached.
This is the result:

Note that the patterns on the bricks and tiles are low-res as I am testing things.

OK, I studied the file you provided and see I am doing things way too difficult and my code and method is not correct.
I'll try to correct.

Edit: done.


Code:
0 Tile  1 x  1 Round with Brickheadz eye Pattern
0 Name: 98138bh-eye.dat
0 Author: Jaco van der Molen
0 !LDRAW_ORG Unofficial_Part
0 BFC CERTIFY CCW
0 !KEYWORDS Brickheadz, eye
0 // Tile 1x1 round without top face
1 16 0 0 0 1 0 0 0 1 0 0 0 1 s\98138s01.dat
0 !TEXMAP START PLANAR   -9 0 9   9 0 9   -9 0 -9   bh-eye.png
0 !: 1 16 0 0 0 9 0 0 0 9 0 0 0 9 4-4disc.dat
0 !TEXMAP FALLBACK
1 16   0 0 0   9 0 0   0 0 0   0 0 9   4-4disc.dat
0 !TEXMAP END
OK...
- the underlying "sticker box" needs to be removed
- The texture must be applied to a disc, and not to a quad!
With this considerations, you get the attached subpart.

Then...
Since the structure is very simple, you don't even need the subpart (see part attached with texmap code directly embedded). For modularity reasons you may prefer the subpart way nonetheless!

...and finally... you don't need this at all since brickheads eye is on PT for a while http://www.ldraw.org/cgi-bin/ptdetail.cg...138p0l.dat ;D
OK, cross posts... I see you got it, except for part on PT...
(2017-06-28, 12:32)Philippe Hurbain Wrote: [ -> ]OK...
- the underlying "sticker box" needs to be removed
- The texture must be applied to a disc, and not to a quad!
With this considerations, you get the attached subpart.

Then...
Since the structure is very simple, you don't even need the subpart (see part attached with texmap code directly embedded). For modularity reasons you may prefer the subpart way nonetheless!

...and finally... you don't need this at all since brickheads eye is on PT for a while http://www.ldraw.org/cgi-bin/ptdetail.cg...138p0l.dat ;D

I see. I was working way too difficult, still in "sticker" mode, since that is where I started a few days ago.

I was kind of dumb not looking for the part on the PT, but I was so busy creating and playing around with texture mapping I just went on.

Update on the patterns for this Jack Sparrow Brickhead (I do hope the patterns are not on the PT)
I made a hi res (still vector PNG) image of the belt pattern on the 1x3 brick.

[attachment=2821]
Haha, I made that Brickheadz eye pattern a while ago, I needed it and it's a super simple pattern  Wink

If you need/want scans/photos of other printed Brickheadz parts, I happen to have all of them (well, aside from the stupidly huge amount of exclusive SDCC models Dodgy ) so just let me know.
(2017-06-28, 20:16)Merlijn Wissink Wrote: [ -> ]Haha, I made that Brickheadz eye pattern a while ago, I needed it and it's a super simple pattern  Wink

If you need/want scans/photos of other printed Brickheadz parts, I happen to have all of them (well, aside from the stupidly huge amount of exclusive SDCC models Dodgy ) so just let me know.

LOL

Can you please scan all Brickheadz parts? As sharp and hi-res if you can make them.
I will "remake" them in Vector PNG files (in Fireworks/Illustrator).
Pages: 1 2 3 4 5 6 7 8