Questions tagged [ursina]

Ursina makes it easier to develop games, visualizations, and other kinds of software. The concise API combines with the power of the Python programming language.

Ursina makes it easier to develop games, visualizations, and other kinds of software. The concise API combines with the power of the programming language.

Links: Documentation

238 questions
0
votes
1 answer

How can I get a list of built-in texture names in Ursina

I'm new to use Ursina engine and I think is very well, but i wish to use built-in texture: load_texture('texture_name') but for now I only found 'withe_cube', is not very much, isn't it? Please, where or how can I find a built-in texture names…
EMILIO
  • 267
  • 1
  • 2
  • 8
0
votes
1 answer

Why my enemy doesn't move when moving it? (Ursina)

I have this code. [enemy.py]. # Enemy behaviour. # Entities. from ursina import Entity # Colors. from ursina.color import red # 3D Vectors. from ursina import Vec3 # Capsule model. from ursina import Capsule # Random. from random import…
sad
  • 137
  • 6
0
votes
1 answer

how do i make a car in Ursina firstpersoncontroller rotate using the 'a' and 'd' keys, not the mouse

in Ursina i am trying to make a simple 3d car game with FirstPersonController, how do i make the player/car rotate using 'a' and 'd' keys, without using the mouse. turn like a car would when you turn a corner in real life the view moves with the…
Tait Bunt
  • 1
  • 1
0
votes
1 answer

Ursina Error - AssersionError: !is_empty() at line 1045 of panda/src/pgraph/nodePath.cxx

I'm trying to make a minecraft clone in Python using Ursina but I have been stuck on one problem when removing water if a block is placed on top of it. Collisions are off for water but rest are and I've been stuck for a long time pls help! I add…
0
votes
1 answer

Python nested loop generate coordinate and save them to csv file

I hope somebody can shade some light here and help me to figure out what I am doing wrong. I am working with Ursina engine to generate some some cube to a given location, as follow terrain_z_x = 10 terrain_depth = 3 for z in range(terrain_z_x): …
Nayden Van
  • 1,133
  • 1
  • 23
  • 70
0
votes
1 answer

Ursina - Colorize custom model using MTL file

I'm using python 3.8, Windows 10, Ursina. I have a custom 3D model, created with this tool. When exporting, it includes an MTL file (which I'm guessing it uses to store the shape colors). When I go to load it in Ursina, it gives me the following…
Psychon Night
  • 53
  • 1
  • 8
0
votes
2 answers

Ursina not loading texture on model

I'm trying to import a model I found online, I've looked on YouTube and everywhere else with no luck... here's the model: https://skfb.ly/SyXJ from ursina import * app = Ursina() from ursina import load_texture window.title =…
0
votes
1 answer

Ursina - Custom model refuses to be textured

I'm using Ursina in Python 3.8 I have a custom model that I made for an entity. I have a texture for that model, exported from my 3D modeling tool as a .png image. I tried applying the texture like this: Entity(model='monolith', scale=0.2,…
Psychon Night
  • 53
  • 1
  • 8
0
votes
0 answers

I tried to run a .exe I made with ursina and I got this error

This is the error I get when running the application. File "main.py", line 4, in File "ursina\main.py", line 28, in __init__ File "direct\showbase\ShowBase.py", line 339, in __init__ File "direct\showbase\ShowBase.py", line 1024, in…
HugoCrab
  • 11
  • 2
0
votes
4 answers

Ursina engine lit_with_shadows_shader when added to a 3d model the textures disappear

Here is my code: import numba as nb from ursina import * from ursina.shaders import lit_with_shadows_shader app = Ursina() ground = Entity( model = 'untitled.gltf', z = 20, y = -3, collider = 'box', shader =…
0
votes
0 answers

Ursina game engine message: Known incorrect sRGB profile

I am trying to learn how to use Ursina engine for python, and everything seems to work alright when I'm loading up a sample project from their github, but every time I run it I get the…
0
votes
0 answers

Why aren't my functions doing what I tell them to in ursina python

The function 'aimshot()' plays a sound and an animation in a certain spot (when aiming) and the same with the function 'noaimshot()' but when not aiming. For some reason, when I try to run these functions later in the 'def input(key)' function they…
Qstz D
  • 3
  • 3
0
votes
1 answer

How do I make the second entity disappear after remapping it

I have a small game I'm working on and I made it so when you aim the gun changes spots and is more centered but when I do that, the first image of a gun is still there. Here is the code: gun1 = True if gun1 == True: gun1 =…
Qstz D
  • 3
  • 3
0
votes
2 answers

Ursina EditorCamera() toggle

this is the code I have used to toggle between having an EditorCamera in Ursina and turning it off: from ursina import * app = Ursina() def input(key): if key == 'd': editor_camera.enabled = False if key == 'e': …
Oldy
  • 5
  • 2
0
votes
1 answer

How do you get a 2D collision working with ursina (python)?

I want to start making a 2D RPG game but I am stuck trying to get the player to not be able to walk through objects and I can't figure it out. I would like it so when I walk into/hit the rock, the player will stop moving in that direstion so the…