2

I need to load 3 texture for a house in my ursina game

My code:

textures = ["wall","slap","window"]

class Homes(Button):
    def __init__(self,pos = (10,1,0)):
       super().__init__(
          parent = scene,
          model = 'images/house',
          texture = textures,
          scale = (5,12,5),
          position = pos,
          color = color.lime,
          origin_y = 0.5,
        )

home = Homes()
dm2
  • 4,053
  • 3
  • 17
  • 28
proking
  • 29
  • 5
  • Hi @proking, as per the recommended guidelines in stack overflow (https://stackoverflow.com/help/how-to-ask), could you please inform us of what you have already attempted and flesh out your question into full sentences? – Darrow Hartman Aug 22 '21 at 20:36
  • To apply multiple textures to a model, you'll have to bake (combine) them together and use UV mapping for the arrangement. This can be done e.g. in Blender. – Jan Wilamowski Aug 23 '21 at 02:38

0 Answers0