Skip to content

i want to know how to use custom 3d models #254

Closed Answered by PixelTomato
hacker101red asked this question in Q&A
Discussion options

You must be logged in to vote

To create an entity with a custom model, you should be able to do something like this:

from ursina import *

app = Ursina()

custom_model = load_model("name_of_model_file.obj")
Entity(model=custom_model)

app.run()

Make sure to replace "name_of_model_file.obj" with the actual path of your custom model relative to your project's directory and you should see your custom model appear on the screen when you run your script.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@kowshik1234
Comment options

@pokepetter
Comment options

@kowshik1234
Comment options

@pokepetter
Comment options

@kowshik1234
Comment options

Answer selected by hacker101red
Comment options

You must be logged in to vote
2 replies
@PixelTomato
Comment options

@hacker101red
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants