Need help on to place two different images on Tube

Hello,

I am having some issue with Tube, I want to show 2 different images on Tube. One at inner side and another at outer side. But given example is with single image with split option https://playground.babylonjs.com/#165IV6#74 , but I want to show ntIgFT6.jpg image at inner side of tube and this image https://i.imgur.com/mXSq301.jpeg want to show at outer side of tube.

Can anyone help me on this? Thanks in advance.

Other than combining your two images into one single split image I cannot think of a way of doing it.

Oops have thought of another thought but no idea whether it would work. Its to place one image as a decal!!???

1 Like

This isn’t efficient, but you could create two tube meshes to do this.

PG: https://playground.babylonjs.com/#165IV6#5093

2 Likes

Hi bghgary,

Thanks for your solution but if you see properly front side Tube image, the card image is not showing front view, its looking like mirror view. Can you correct that issue in your sample?

Regards,
Ritesh

Here you are - https://playground.babylonjs.com/#165IV6#5094

mat.diffuseTexture.vScale = -1;
2 Likes