Mix two textures

Hi,

I have twi textures and want to pun one iside other in XY coordinates.
For example, I have a square and one circle, I need to put the circle in the square in XY.
How can I do it?
Thanks!!

113344-demo.png

I want to say two textures, not “twi”

Not quite understanding what you are asking for here. First of all when you say XY coordinates you mean 2d? and also isn’t the circle inside the square in the picture you have there?

The image is the final expected result, I have two images, the circle and the square, y need to put one inside other. Thanks!

There’s a couple ways to go about this but this also depends on how you are going to be combining those textures. Are you going to be fusing them in-game or do you just want a texture that consist of those two to use? If it is the latter than you can just combine them in a program like Photoshop. The other way to do this is to perhaps use alpha channels. You can mask out the circle in your Square picture and then add the textures to overlay them.

I need to combine in-game, I found a way, but with alpha channel, and I need the two images not transparent.
Can you explain some ways?
Thanks!!!

You can always press “Edit”, and you also wrote “pun” and “iside”

You have to mask out the circle from the square (this would cause a black circle in it) and mask out everything that is outside of the circle in its texture (or just make its surrounding black on the original picture), then you can add this two texture, and your material is ready.

Oh I couldn’t see the XY one first. For a good example for that, check out the Epic Games’ free project BlackJack. They make something similar to this with the front pages of the cards. Every card’s texture in the same picture, and then they filter out what they currently need with coordinates.