Reversing .stbsp
#185
Replies: 3 comments 2 replies
-
How Respawn Generates
|
Beta Was this translation helpful? Give feedback.
-
Columns
Exporting>>> from bsp_tool.extensions.stbsp import StreamBsp
>>> StreamBsp.from_file(".../Titanfall2/r2/maps/mp_complex3.stbsp").columns_as_obj("complex3.obj") Colourising
>>> for m in D.materials:
... if len(m.name) == 8:
... rgba = int(m.name, 16)
... r = rgba >> 24
... g = (rgba >> 16) & 0xFF
... b = (rgba >> 8) & 0xFF
... a = rgba & 0xFF
... m.diffuse_color = [255 / x if x != 0 else 0 for x in (r, g, b, a)]
|
Beta Was this translation helpful? Give feedback.
-
Column DataEmpty ColumnsSince we use columns, there's loads of empty space |
Beta Was this translation helpful? Give feedback.
-
.stbsp
files contain helper data for texture streamingOur biggest official resource on their creation & use is this GDC talk:
bsp_tool.extensions.stbsp.StreamBsp
maps the formatBeta Was this translation helpful? Give feedback.
All reactions