LDraw.org Discussion Forums
Transparent stickers on transparent bricks with opaque print - 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: Transparent stickers on transparent bricks with opaque print (/thread-23026.html)



Transparent stickers on transparent bricks with opaque print - Jaco van der Molen - 2018-11-12

Hi all,

I was wondering how to make transparent stickers on transparent bricks with opaque print.
Like the windows on the side in set 40252. 

[Image: 40252-1.jpg]

Reading this thread I don't quite follow
https://forums.ldraw.org/thread-22204.html

I thought I'd just make a png image with transparent background and the azure blue triangular shape.
But applying that and make the brick transparent makes the pattern transparent too.

Can I achieve an opaque pattern?


RE: Transparent stickers on transparent bricks with opaque print - Roland Melkert - 2018-11-12

(2018-11-12, 21:45)Jaco van der Molen Wrote: Can I achieve an opaque pattern?
Currently the only sure way is to put it on a polygon matching the non transparent shape.

So in pseudo for a 100x100 sticker:

Code:
0 My textured sticker
0 UNOFFICIAL PART
0 BFC CERTIFY CCW

1 16   0 -0.25 0   50 0 0   0 0.25 0   0 0 50   box5.dat

0 !TEXMAP START PLANAR   -50 -0.25 50   50 -0.25 50   -50 -0.25 -50   image.png
1..5+  inner sticker shape
0 !TEXMAP END

1..5+  outer sticker shape (filling it to an rectangle for use on top of the box5

Note the lack of fallback code as the two parts always make the whole with or without the texture.


RE: Transparent stickers on transparent bricks with opaque print - Jaco van der Molen - 2018-11-13

(2018-11-12, 22:25)Roland Melkert Wrote:
(2018-11-12, 21:45)Jaco van der Molen Wrote: Can I achieve an opaque pattern?
Currently the only sure way is to put it on a polygon matching the non transparent shape.

So in pseudo for a 100x100 sticker:

Code:
0 My textured sticker
0 UNOFFICIAL PART
0 BFC CERTIFY CCW

1 16   0 -0.25 0   50 0 0   0 0.25 0   0 0 50   box5.dat

0 !TEXMAP START PLANAR   -50 -0.25 50   50 -0.25 50   -50 -0.25 -50   image.png
1..5+  inner sticker shape
0 !TEXMAP END

1..5+  outer sticker shape (filling it to an rectangle for use on top of the box5

Note the lack of fallback code as the two parts always make the whole with or without the texture.

Ah, OK. I see.
I'll see what I can make of that.


RE: Transparent stickers on transparent bricks with opaque print - Jaco van der Molen - 2018-11-13

I made parts for the side windows like a patterned part with LDraw geometry to mimic the sticker.


.png   40252.png (Size: 430.74 KB / Downloads: 56)

I made the other parts as textured parts with images and planning to pattern the surfboard too (though I do not know how yet)


RE: Transparent stickers on transparent bricks with opaque print - Jaco van der Molen - 2018-11-13

(2018-11-13, 11:52)Jaco van der Molen Wrote: I made parts for the side windows like a patterned part with LDraw geometry to mimic the sticker.

I made the other parts as textured parts with images and planning to pattern the surfboard too (though I do not know how yet)

And here are the other parts and model file.


RE: Transparent stickers on transparent bricks with opaque print - Jaco van der Molen - 2018-11-13

(2018-11-12, 21:45)Jaco van der Molen Wrote: Hi all,

I was wondering how to make transparent stickers on transparent bricks with opaque print.
Like the windows on the side in set 40252. 

Reading this thread I don't quite follow
https://forums.ldraw.org/thread-22204.html

I thought I'd just make a png image with transparent background and the azure blue triangular shape.
But applying that and make the brick transparent makes the pattern transparent too.

Can I achieve an opaque pattern?

I am sorry, for now I see I totally missed this discussion: https://forums.ldraw.org/thread-23013.html which covers the same question.