pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.23k stars 328 forks source link

how to load multi textures for one model #672

Closed billyboo84 closed 7 months ago

billyboo84 commented 7 months ago

I want an FPS with Ursina and I'm trying to put several textures on a single entity but I don't know how to do it. here is my code

texture1=load_texture("step1f.png")
texture2=load_texture('graytall.png')

test=Entity(model='e1m2', collider='mesh', scale=200,texture=[texture1,texture2])

it would be great if someone could help me

pokepetter commented 7 months ago

You can't. You either have to use an atlas texture/trim sheet, or you have to use multiple entities.