Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chamber 14 stair pit #48

Merged
merged 4 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion assets/materials/static.skm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1268,4 +1268,10 @@ materials:
gSPGeometryMode:
clear: [G_LIGHTING]
gDPSetCycleType: G_CYC_1CYCLE


# Portal surfaces are defined by level geometry, which requires a material.
# This material exists to create invisible portal surfaces. For example, to
# place portals over other, more complex geometry.
transparent_portal_surface:
gSPGeometryMode:
set: [G_CULL_BACK, G_CULL_FRONT]
Binary file modified assets/test_chambers/materials.blend
Binary file not shown.
Binary file modified assets/test_chambers/test_chamber_09/test_chamber_09.blend
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/test_chambers/test_chamber_09/test_chamber_09.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cutscenes:
- goto pit_loop
CHECK_STAIRS:
- label stair_loop
- wait_for_signal should_raise_stairs
- wait_for_signal should_raise_stairs 5
- play_animation stairs stairs_ascend
- wait_for_animation stairs
- delay 2
Expand Down
10 changes: 6 additions & 4 deletions documentation/levels/level_objects/static.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# @static

Static level geometry. Used to generate level mesh and portal surface
data.
Static level geometry. Used to generate level mesh and portal surface data.

## Name structure

Expand Down Expand Up @@ -39,10 +38,13 @@ surfaces are portalable. The following material names allow portals to be placed
* `concrete_modular_wall001d`
* `concrete_modular_ceiling001a`
* `concrete_modular_floor001a`
* `transparent_portal_surface`

This behavior can be overridden by using the `no_portals` argument. To accept
portals, the geometry must also have a coplanar static collision object or be
animated by a [bone](./anim.md) that also animates a dynamic collision object.
portals, the geometry must also have associated collision so that it can be hit.
This can be done by placing a coplanar static collision object or through
animation with a [bone](./anim.md) that also animates a dynamic collision
object.

A mesh's UV coordinates are only used if its material does not have the
`tileSizeS` and `tileSizeT` properties in its YAML definition. Otherwise, the
Expand Down
1 change: 1 addition & 0 deletions tools/level_scripts/static_export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local portalable_surfaces = {
concrete_modular_wall001d = true,
concrete_modular_ceiling001a = true,
concrete_modular_floor001a = true,
transparent_portal_surface = true,
}

local signal_elements = {}
Expand Down