how to apply a texture on one side of a cube in Unity

how to apply a texture on one side of a cube in Unity

jean-gobert de coster

3 года назад

57,445 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Very good
Very good - 23.07.2023 17:30

This is a HORRIBLE tutorial. You are essentially rendering a completely new quad just to get your texture there, while there is absolutely no reason for it. It's adding 4 additional vertices to each piece of geometry.

You need to use UV mapping to apply a texture to one side of a cube without any of this overhead. You can create a dynamic mesh right in Unity if you want to do this; no need for Blender or "importing cubes".

Ответить
MacMashPotato
MacMashPotato - 11.07.2023 09:54

All that other stuff seemed like more work then just making a cube in blender

Ответить
Jessica Won
Jessica Won - 11.07.2023 00:07

Oh my goodness, thank you for this. This was very helpful!

Ответить
Bond007in
Bond007in - 01.06.2023 16:06

🤦‍♂️

Ответить
Maxvellua
Maxvellua - 15.03.2023 12:10

Thank you!

Ответить
Riser
Riser - 07.02.2023 18:41

Thanks king!

Ответить
Squidy
Squidy - 15.11.2022 02:04

i love you

Ответить
lucutes
lucutes - 22.10.2022 00:30

but what if it's not a face

Ответить
Jamie Shelley
Jamie Shelley - 12.10.2022 17:21

Great idea, thanks!

Ответить
Rodrigo Medeiros
Rodrigo Medeiros - 29.03.2022 05:45

Thank you. Your simple tutorial helped me a lot today.

Ответить
SCUBAPILOT
SCUBAPILOT - 28.03.2022 20:44

THANK YOU!!!!!!!

Ответить
Cirill Parnó
Cirill Parnó - 25.01.2022 21:34

Nice video. Thank you! Can I make this arrow in Adobe After Effect or Photoshop, because you also used a .png example? Thanks

Ответить
Harry Morris
Harry Morris - 11.01.2022 00:05

perfect, this is exactly what I was looking for!

Ответить
Nekoni
Nekoni - 29.11.2021 20:30

Do you have any suggestions for UDIMS? Is kinda similar to what you taught here... but in the case of importing a mesh with UDIM coordinates to texture

Ответить
mkmkmk
mkmkmk - 10.10.2021 00:10

thanks man, your a life saver

Ответить
GameMakingKirb
GameMakingKirb - 13.08.2021 04:32

Thank you so much! I have only used unity for three days (alr made a somewhat fun game) and now I will finally be able to make my cubes look nice :D

Ответить
prinsallan
prinsallan - 24.07.2021 12:29

Its working until I move my Cube-- with a script that rotates the cube. When I rotate the Cube, the Arrow "Jumps" from one Side to another. Im a total beginner so I really need some pointers. The Cube is set as parent and the Quad is set as child so that can't be the problem.

Ответить
bl6qs
bl6qs - 20.06.2021 20:48

thx

Ответить
Kang Gadget
Kang Gadget - 26.05.2021 12:20

That's so helpful, thanks, but how to make the white side is transparent? So in one side just arrow without white color

Ответить
Charles Bevitt
Charles Bevitt - 23.05.2021 08:41

Big big thanks! This is exactly what I needed.

Ответить
Dénes Terék
Dénes Terék - 21.04.2021 16:11

Thats what i did but it makes the game slower

Ответить
Dr Delsym
Dr Delsym - 21.04.2021 00:24

Clever

Ответить
Raptor Swire
Raptor Swire - 27.02.2021 19:11

isn't this pretty lame? I doubt this is a correct way to uv map a geometry

Ответить
M Talha Khalid
M Talha Khalid - 19.02.2021 20:18

unity has shitty unwrapping seriously

Ответить
BuxtonHouse
BuxtonHouse - 05.02.2021 14:34

Man i hope you reply. So i am building a basic house and its gonna take hours to do this for each face where can i download a cube that has already been mapped?

Ответить
Slickback
Slickback - 16.01.2021 23:50

This was so damn helpful and not even that hard to do. Thanks so much, man. I'm learning fast.

Ответить
Vaughan Valentine
Vaughan Valentine - 26.10.2020 01:45

Thank you, this tutorial allowed me (a unity user of less than two weeks) to put die faces on a cube that I can roll around on the plane. Great stuff!

Ответить
R F
R F - 03.09.2020 17:19

I want to add an area of bruising to my players face. Is there a way I could use this method to do that? I would need the bruising image to be applied to multiple faces on the character.

Is it possible for my skin texture and this bruising texture to co exist?

Ответить
Jolan XBL
Jolan XBL - 20.08.2020 10:15

That's a cool trick! I installed Unity's ProBuilder (Package Manager), which gives me a model editor so I can select the faces that way.

Ответить