Wie man die Würfel Textur von Python Ursina Motor machtPython

Python-Programme
Anonymous
 Wie man die Würfel Textur von Python Ursina Motor macht

Post by Anonymous »

Ich frage mich, wie man eine einfache Würfelstruktur in der Python Panda3D -Wrapper, Ursina < /code> Engine -Bibliothek erstellt.
Hier ist der Code, den ich ausprobiert habe.

Code: Select all

from ursina import *

app = Ursina()
window.fps_counter.enabled = False

class Voxel(Button):
def __init__(self, position=(0,0,0), texture='red.png'):
super().__init__(
parent = scene,
position=position,
model='cube',
origin_y=0.5,
texture=texture,
color=color.color(0,0, random.uniform(0.9, 1.0)),
scale = 1.0
)

for x in range(3):
for y in range(3):
for z in range(3):
voxel = Voxel(position=(x,y,z))
EditorCamera()
app.run()
< /code>
[list]
[*] Ich möchte wissen, wie man UV -Karte erstellt (eine, die ich gemacht habe, ist wirklich schlecht). < /li>
 Ich möchte Um die UV -Karte in Ursina 
Motorwürfel Textur konvertieren zu können.
[/list]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post