Transparent stickers on transparent bricks with opaque print


Transparent stickers on transparent bricks with opaque print
#1
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?
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Transparent stickers on transparent bricks with opaque print
#2
(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.
Reply
RE: Transparent stickers on transparent bricks with opaque print
#3
(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.
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Transparent stickers on transparent bricks with opaque print
#4
Big Grin 
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: 51)

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


Attached Files
.dat   3065s01.dat (Size: 465 bytes / Downloads: 2)
.dat   3065p40252-4.dat (Size: 1,006 bytes / Downloads: 3)
.dat   3065p40252-5.dat (Size: 1,008 bytes / Downloads: 3)
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Transparent stickers on transparent bricks with opaque print
#5
(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.


Attached Files Thumbnail(s)
           

.dat   3069bp40252-3.dat (Size: 469 bytes / Downloads: 2)
.dat   11477p40252-7.dat (Size: 521 bytes / Downloads: 4)
.ldr   40252_mini_vw_beetle.ldr (Size: 23.12 KB / Downloads: 3)
.dat   85984p40252-1.dat (Size: 465 bytes / Downloads: 3)
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Transparent stickers on transparent bricks with opaque print
#6
(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.
Jaco van der Molen
lpub.binarybricks.nl
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 2 Guest(s)