basilisk-engine 0.1.47__py3-none-any.whl → 0.1.49__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of basilisk-engine might be problematic. Click here for more details.
- basilisk/mesh/mesh.py +2 -2
- basilisk/scene.py +3 -1
- {basilisk_engine-0.1.47.dist-info → basilisk_engine-0.1.49.dist-info}/METADATA +1 -1
- {basilisk_engine-0.1.47.dist-info → basilisk_engine-0.1.49.dist-info}/RECORD +6 -6
- {basilisk_engine-0.1.47.dist-info → basilisk_engine-0.1.49.dist-info}/WHEEL +0 -0
- {basilisk_engine-0.1.47.dist-info → basilisk_engine-0.1.49.dist-info}/top_level.txt +0 -0
basilisk/mesh/mesh.py
CHANGED
|
@@ -30,7 +30,7 @@ class Mesh():
|
|
|
30
30
|
bvh: NarrowBVH
|
|
31
31
|
"""BVH for accessing triangle intersections with a line"""
|
|
32
32
|
|
|
33
|
-
def __init__(self, data: str | os.PathLike | np.ndarray, custom_format:bool=False) -> None:
|
|
33
|
+
def __init__(self, data: str | os.PathLike | np.ndarray, custom_format:bool=False, generate_bvh: bool=True) -> None:
|
|
34
34
|
"""
|
|
35
35
|
Mesh object containing all the data needed to render an object and perform physics/collisions on it
|
|
36
36
|
Args:
|
|
@@ -102,7 +102,7 @@ class Mesh():
|
|
|
102
102
|
self.center_of_mass /= self.volume
|
|
103
103
|
|
|
104
104
|
# data structrues
|
|
105
|
-
self.bvh = NarrowBVH(self)
|
|
105
|
+
self.bvh = NarrowBVH(self) if generate_bvh else None
|
|
106
106
|
|
|
107
107
|
def get_inertia_tensor(self, scale: glm.vec3) -> glm.mat3x3:
|
|
108
108
|
"""
|
basilisk/scene.py
CHANGED
|
@@ -40,6 +40,7 @@ class Scene():
|
|
|
40
40
|
|
|
41
41
|
self.engine = engine
|
|
42
42
|
self.ctx = engine.ctx
|
|
43
|
+
self.sky = None
|
|
43
44
|
self.shader = shader if shader else engine.shader
|
|
44
45
|
self.camera = FreeCamera()
|
|
45
46
|
self.light_handler = LightHandler(self)
|
|
@@ -287,4 +288,5 @@ class Scene():
|
|
|
287
288
|
def shader(self, value):
|
|
288
289
|
self._shader = value
|
|
289
290
|
value.set_main(self)
|
|
290
|
-
if self.light_handler: self.light_handler.write(value)
|
|
291
|
+
if self.light_handler: self.light_handler.write(value)
|
|
292
|
+
if self.sky: self.sky.write()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
basilisk/__init__.py,sha256=23OM1kiXMU44J2TVp66efVSrbQAeiuTDmcdhNAftFfY,1134
|
|
2
2
|
basilisk/config.py,sha256=Ajm3BjCryuX5bmJglqRZDR1SjE0sDjTbulta5GZ67hA,1712
|
|
3
3
|
basilisk/engine.py,sha256=rUI4DCeCFCMPBxd-A3DSZKHXu-CVb1I3F5nJ6MhNrU4,6016
|
|
4
|
-
basilisk/scene.py,sha256=
|
|
4
|
+
basilisk/scene.py,sha256=S0aoVMxA3SEO0ON3MTs1GF1JVLMi_TX7KNconeCAbYc,12389
|
|
5
5
|
basilisk/audio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
basilisk/audio/sound.py,sha256=h2dQ3IKb_SRKNZqNuk-fdNg_Xfz0P7sqEXA33qiBXG4,692
|
|
7
7
|
basilisk/bsk_assets/Roboto-Regular.ttf,sha256=kqYnZjMRQMpbyLulIChCLSdgYa1XF8GsUIoRi2Gcauw,168260
|
|
@@ -52,7 +52,7 @@ basilisk/input_output/mouse.py,sha256=SqkUtfYTW252DXXHS1dDaytFWChsuYGEQ238jUIfOW
|
|
|
52
52
|
basilisk/input_output/path.py,sha256=GpFYe3Uu6VZAuKh9Q2nQM1H8immiCp_snznLG9FKcvU,441
|
|
53
53
|
basilisk/mesh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
54
|
basilisk/mesh/cube.py,sha256=PN6JvW3T8LzPYRnaGo6wsisRK0QI-ZbvMYDT9xs7iN8,1044
|
|
55
|
-
basilisk/mesh/mesh.py,sha256=
|
|
55
|
+
basilisk/mesh/mesh.py,sha256=ujPisedr2TR33O_SHynle84LDRE9qSCKyGGpiPCGokA,9808
|
|
56
56
|
basilisk/mesh/mesh_from_data.py,sha256=puRa8ycBjX2LbQB-ZOjJiXuNHh16laWgSqbgjHdlhcQ,4988
|
|
57
57
|
basilisk/mesh/model.py,sha256=qm1lo23nBjkR-JxXvHzIO3DLa2bNWsMRX4Ilm_5uemY,11722
|
|
58
58
|
basilisk/mesh/narrow_aabb.py,sha256=oMB_djlWOxpLAsuxeA8_KQafSOcRkDMCu5okvPYuLMQ,3779
|
|
@@ -109,7 +109,7 @@ basilisk/shaders/particle.frag,sha256=IskhyXelHs9GqABKwTYSwooWL0nP-nkmXl6a5iT6Q3
|
|
|
109
109
|
basilisk/shaders/particle.vert,sha256=oiBz6S_2dzqioAhyzVYT1ZKOED4h4R6IoP-UJ8KRHhU,3227
|
|
110
110
|
basilisk/shaders/sky.frag,sha256=dJRdSbg16aZYYjxdoG1spVQRIVBGNVdyX0rqp4ER6v8,556
|
|
111
111
|
basilisk/shaders/sky.vert,sha256=oAnrknEgsd9MawE_zx8P0u9nUSFEBYBg5ykBmWpqZ_g,332
|
|
112
|
-
basilisk_engine-0.1.
|
|
113
|
-
basilisk_engine-0.1.
|
|
114
|
-
basilisk_engine-0.1.
|
|
115
|
-
basilisk_engine-0.1.
|
|
112
|
+
basilisk_engine-0.1.49.dist-info/METADATA,sha256=2tI9CZylpfNdgEmAG4iRs3kagtjIUs0nxXqh99gh63g,3793
|
|
113
|
+
basilisk_engine-0.1.49.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
114
|
+
basilisk_engine-0.1.49.dist-info/top_level.txt,sha256=enlSYSf7CUyAly1jmUCNNGInTbaFUjGk4SKwyckZQkw,9
|
|
115
|
+
basilisk_engine-0.1.49.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|