Compare commits

...

3 Commits

Author SHA1 Message Date
fd20af06ae Round-5 props in the game: beer cans, hand can, cigar, phone, lawn mower, farm machines
Bonchellon's round-5 models (ArtSource/Blender/remaster_v3_tools, 27 Nov) were made as
drop-in replacements: same names, children, pivots and material slots. Swapped in:
SM_BeerCan, SM_BeerCanCrushed, SM_HandCan, SM_HandCigar, SM_Phone, SM_Tool_LawnMower and
the four farm machines (icons only). The seven hand tools keep today's stylized remake,
SM_Tool_Shears is unused and SM_PhoneHand is a hand (none in first person).
Assets rebuilt (BuildAll); -demotreats, -demophone, -demohands run clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:51:57 +06:00
dd0430048b Trailer: HUD takes showed the phone's screen; cut.py renders in parallel
- The trailer, BotCapture and PhoneScreen picked "any" UIDocument; since the phone has
  its own (drawn into its screen in the hand) the first-person takes captured the
  phone's home screen instead of the HUD. They take UIRoot's document now.
- cut.py renders a whole film in GC_CUT_WORKERS processes (20 by default), each a
  stretch of frames as near-lossless x264, joined and encoded once on NVENC with the
  sound. Shake and grain are seeded by frame, so the result does not depend on the
  split. Main trailer 57 -> 13 min.
- polden.py and story.py read the single rolls folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:46:37 +06:00
9f6b749bad Store media shot again on the current build: screenshots, showcase, trailers
The trailer rolls lived in a folder that is gone, so everything was shot again
(-demotrailer, -stills) from today's build: new tools, deck props, console, T logo.
- 14 store screenshots from the -stills takes
- showcase WEBMs and banners rebuilt (Tools/Steam/showcase.py)
- the demo trailer is now an edl for cut.py (Tools/Trailer/edl_demo.py)
- tools find the project from their own location instead of the old path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:46:36 +06:00
55 changed files with 4934 additions and 4843 deletions

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: ce2b7e8f901495d4287d9c0124557bc6, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -25,16 +25,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -64,7 +63,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 628972642435df640ae1f7afe07f8883, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 800439d2feda5b14cba773f5b057145f, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 2f8b51c5ef986fe4286813dc960d2222, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -25,16 +25,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -64,7 +63,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 6ec544eeccd6d464d84821cc63bb7b29, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: dbe3e100380c76b4a8b5380713e07614, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -25,16 +25,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -64,7 +63,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 7285a16fb80d7fe4bb8d228ee871afcf, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

BIN
Assets/Art/Models/SM_BeerCan.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_BeerCanCrushed.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_HandCan.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_HandCigar.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Phone.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_HandPump.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_HydroCannon.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_LawnMower.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_MegaSiphon.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_SlurpGun.fbx (Stored with Git LFS)

Binary file not shown.

View File

@ -1,6 +1,6 @@
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &409071045743709538 --- !u!1 &203672820896705212
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -8,8 +8,8 @@ GameObject:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 5456911402751827933} - component: {fileID: 4287098148456496287}
- component: {fileID: 3202088512133634808} - component: {fileID: 5840257662663046449}
m_Layer: 13 m_Layer: 13
m_Name: Post m_Name: Post
m_TagString: Untagged m_TagString: Untagged
@ -17,13 +17,13 @@ GameObject:
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!4 &5456911402751827933 --- !u!4 &4287098148456496287
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 409071045743709538} m_GameObject: {fileID: 203672820896705212}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002} m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002}
@ -32,13 +32,13 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 6080256564837846337} m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &3202088512133634808 --- !u!65 &5840257662663046449
BoxCollider: BoxCollider:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 409071045743709538} m_GameObject: {fileID: 203672820896705212}
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_IncludeLayers: m_IncludeLayers:
serializedVersion: 2 serializedVersion: 2
@ -159,6 +159,59 @@ BoxCollider:
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 8.3328, y: 0.3, z: 3.8280003} m_Size: {x: 8.3328, y: 0.3, z: 3.8280003}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &1859175087556939142
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8440449561500553591}
- component: {fileID: 5801914591155947391}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8440449561500553591
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1859175087556939142}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &5801914591155947391
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1859175087556939142}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &1971325548543075741 --- !u!1 &1971325548543075741
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -201,9 +254,9 @@ Transform:
- {fileID: 1108610811231582257} - {fileID: 1108610811231582257}
- {fileID: 9079409668988869866} - {fileID: 9079409668988869866}
- {fileID: 53782875249114572} - {fileID: 53782875249114572}
- {fileID: 7079769537369895109} - {fileID: 8440449561500553591}
- {fileID: 6857051631880245469} - {fileID: 2857231799803690203}
- {fileID: 5456911402751827933} - {fileID: 4287098148456496287}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &6163206358755032998 --- !u!114 &6163206358755032998
@ -439,59 +492,6 @@ BoxCollider:
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25} m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &4019366694137688275
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6857051631880245469}
- component: {fileID: 1059624524526610825}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6857051631880245469
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4019366694137688275}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &1059624524526610825
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4019366694137688275}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &4756717939176039937 --- !u!1 &4756717939176039937
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -545,7 +545,7 @@ BoxCollider:
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 8.3328, y: 0.2615999, z: 0.25} m_Size: {x: 8.3328, y: 0.2615999, z: 0.25}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &7708810605813070895 --- !u!1 &5675504714872131057
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -553,8 +553,8 @@ GameObject:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 7079769537369895109} - component: {fileID: 2857231799803690203}
- component: {fileID: 9064368887260361192} - component: {fileID: 5846303309610934194}
m_Layer: 13 m_Layer: 13
m_Name: Post m_Name: Post
m_TagString: Untagged m_TagString: Untagged
@ -562,28 +562,28 @@ GameObject:
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!4 &7079769537369895109 --- !u!4 &2857231799803690203
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7708810605813070895} m_GameObject: {fileID: 5675504714872131057}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002} m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6080256564837846337} m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &9064368887260361192 --- !u!65 &5846303309610934194
BoxCollider: BoxCollider:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7708810605813070895} m_GameObject: {fileID: 5675504714872131057}
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_IncludeLayers: m_IncludeLayers:
serializedVersion: 2 serializedVersion: 2
@ -596,7 +596,7 @@ BoxCollider:
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25} m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1001 &889884445882827272 --- !u!1001 &889884445882827272
PrefabInstance: PrefabInstance:

View File

@ -36,8 +36,8 @@ Transform:
- {fileID: 4846672235693918781} - {fileID: 4846672235693918781}
- {fileID: 5795024438146558760} - {fileID: 5795024438146558760}
- {fileID: 98854460548414821} - {fileID: 98854460548414821}
- {fileID: 5997051366575794423} - {fileID: 6785117535145784148}
- {fileID: 1515585914810031869} - {fileID: 3043806648717141134}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9073465022817526665 --- !u!114 &9073465022817526665
@ -97,8 +97,8 @@ MonoBehaviour:
loco: {fileID: 5795024438146558760} loco: {fileID: 5795024438146558760}
wagons: wagons:
- {fileID: 98854460548414821} - {fileID: 98854460548414821}
- {fileID: 5997051366575794423} - {fileID: 6785117535145784148}
- {fileID: 1515585914810031869} - {fileID: 3043806648717141134}
Bins: Bins:
UpdateTraits: UpdateTraits:
MinSecondsBetweenUpdates: 0 MinSecondsBetweenUpdates: 0
@ -258,7 +258,7 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 492452458267548302} m_PrefabInstance: {fileID: 492452458267548302}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &1333848485600639254 --- !u!1001 &3294241807218279269
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 2 serializedVersion: 2
@ -355,10 +355,10 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &1515585914810031869 stripped --- !u!4 &3043806648717141134 stripped
Transform: Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 1333848485600639254} m_PrefabInstance: {fileID: 3294241807218279269}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &4430033088543879560 --- !u!1001 &4430033088543879560
PrefabInstance: PrefabInstance:
@ -426,108 +426,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
m_PrefabInstance: {fileID: 4430033088543879560} m_PrefabInstance: {fileID: 4430033088543879560}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &6103352816833138460
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &5997051366575794423 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 6103352816833138460}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6333936261267688643 --- !u!1001 &6333936261267688643
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -634,3 +532,105 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
m_PrefabInstance: {fileID: 6333936261267688643} m_PrefabInstance: {fileID: 6333936261267688643}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &6459055835294078143
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &6785117535145784148 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 6459055835294078143}
m_PrefabAsset: {fileID: 0}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ namespace GrassCutter
var cam = CameraFx.Cam ? CameraFx.Cam : Camera.main; var cam = CameraFx.Cam ? CameraFx.Cam : Camera.main;
if (cam) cam.targetTexture = _scene; if (cam) cam.targetTexture = _scene;
_cam = cam; _cam = cam;
var doc = Object.FindAnyObjectByType<UIDocument>(); var doc = UIRoot.I ? UIRoot.I.GetComponent<UIDocument>() : Object.FindAnyObjectByType<UIDocument>();
if (doc && doc.panelSettings) if (doc && doc.panelSettings)
{ {
doc.panelSettings.targetTexture = _ui; doc.panelSettings.targetTexture = _ui;

View File

@ -18,7 +18,8 @@ namespace GrassCutter
void Eyes(bool on) void Eyes(bool on)
{ {
var fx = _cam.GetComponent<CameraFx>(); var fx = _cam.GetComponent<CameraFx>();
var doc = FindAnyObjectByType<UIDocument>(); // the HUD's own document: the phone has one of its own, drawn into its screen in the hand
var doc = UIRoot.I ? UIRoot.I.GetComponent<UIDocument>() : null;
if (on) if (on)
{ {
_cam.transform.SetParent(Me.head, false); _cam.transform.SetParent(Me.head, false);

View File

@ -71,7 +71,7 @@ namespace GrassCutter
Tex.Create(); Tex.Create();
Web = new PhoneWeb((float)WebH / W, (float)H / W); Web = new PhoneWeb((float)WebH / W, (float)H / W);
var main = UnityEngine.Object.FindAnyObjectByType<UIDocument>(FindObjectsInactive.Include); var main = UIRoot.I ? UIRoot.I.GetComponent<UIDocument>() : UnityEngine.Object.FindAnyObjectByType<UIDocument>(FindObjectsInactive.Include);
var ps = UnityEngine.Object.Instantiate(main.panelSettings); var ps = UnityEngine.Object.Instantiate(main.panelSettings);
ps.targetTexture = Tex; ps.targetTexture = Tex;
ps.scaleMode = PanelScaleMode.ConstantPixelSize; ps.scaleMode = PanelScaleMode.ConstantPixelSize;

View File

@ -1,52 +1,6 @@
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!114 &-7807794487406278988 --- !u!114 &-9016509909795878054
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 899c54efeace73346a0a16faa3afe726, type: 3}
m_Name: Vignette
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.Vignette
active: 1
color:
m_OverrideState: 1
m_Value: {r: 0, g: 0, b: 0, a: 1}
center:
m_OverrideState: 1
m_Value: {x: 0.5, y: 0.5}
intensity:
m_OverrideState: 1
m_Value: 0.22
smoothness:
m_OverrideState: 1
m_Value: 0.5
rounded:
m_OverrideState: 1
m_Value: 0
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: MeadowPost
m_EditorClassIdentifier: Unity.RenderPipelines.Core.Runtime::UnityEngine.Rendering.VolumeProfile
components:
- {fileID: 573892585795089527}
- {fileID: 8566174107737367540}
- {fileID: 8785192645970852607}
- {fileID: -7807794487406278988}
- {fileID: 1448850160265645311}
--- !u!114 &573892585795089527
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -96,7 +50,7 @@ MonoBehaviour:
dirtIntensity: dirtIntensity:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 0 m_Value: 0
--- !u!114 &1448850160265645311 --- !u!114 &-6346572262961526006
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -115,7 +69,7 @@ MonoBehaviour:
tint: tint:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 0 m_Value: 0
--- !u!114 &8566174107737367540 --- !u!114 &-4541764590550623516
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -155,7 +109,53 @@ MonoBehaviour:
maxNits: maxNits:
m_OverrideState: 1 m_OverrideState: 1
m_Value: 1000 m_Value: 1000
--- !u!114 &8785192645970852607 --- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: MeadowPost
m_EditorClassIdentifier: Unity.RenderPipelines.Core.Runtime::UnityEngine.Rendering.VolumeProfile
components:
- {fileID: -9016509909795878054}
- {fileID: -4541764590550623516}
- {fileID: 7981495688305454960}
- {fileID: 2563535767476398020}
- {fileID: -6346572262961526006}
--- !u!114 &2563535767476398020
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 899c54efeace73346a0a16faa3afe726, type: 3}
m_Name: Vignette
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.Vignette
active: 1
color:
m_OverrideState: 1
m_Value: {r: 0, g: 0, b: 0, a: 1}
center:
m_OverrideState: 1
m_Value: {x: 0.5, y: 0.5}
intensity:
m_OverrideState: 1
m_Value: 0.22
smoothness:
m_OverrideState: 1
m_Value: 0.5
rounded:
m_OverrideState: 1
m_Value: 0
--- !u!114 &7981495688305454960
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 3 m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}

BIN
Docs/Steam/screenshots/01_crew_rows.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/02_crew_mowing.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/03_house_stilts.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/04_drones.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/05_machines.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/06_unload_bay.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/07_belts.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/08_vending.jpg (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Docs/Steam/screenshots/11_acid_rain.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/12_ufo.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/13_house_night.jpg (Stored with Git LFS)

Binary file not shown.

BIN
Docs/Steam/screenshots/14_twister.jpg (Stored with Git LFS)

Binary file not shown.

View File

@ -8,7 +8,7 @@ import os
from PIL import Image, ImageDraw, ImageEnhance, ImageFont from PIL import Image, ImageDraw, ImageEnhance, ImageFont
PROJECT = r"D:\PROJECTS\LOCAL\GrassCutter" PROJECT = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".."))
OUT = os.path.join(PROJECT, r"Docs\Steam\achievements") OUT = os.path.join(PROJECT, r"Docs\Steam\achievements")
FONT = os.path.join(PROJECT, r"Assets\Fonts\LilitaOne-Regular.ttf") FONT = os.path.join(PROJECT, r"Assets\Fonts\LilitaOne-Regular.ttf")
S = 512 S = 512

View File

@ -5,7 +5,7 @@ The 33 awards' names and descriptions in every language the store page speaks, f
import json import json
import os import os
OUT = r"D:\PROJECTS\LOCAL\GrassCutter\Docs\Steam\achievements\achievements_loc.json" OUT = os.path.join(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..")), "Docs", "Steam", "achievements", "achievements_loc.json")
# how each language writes 1000 and 0.01 # how each language writes 1000 and 0.01
NUM = dict(english=(",", "."), russian=("\u00a0", ","), french=("\u00a0", ","), italian=(".", ","), german=(".", ","), spanish=(".", ","), NUM = dict(english=(",", "."), russian=("\u00a0", ","), french=("\u00a0", ","), italian=(".", ","), german=(".", ","), spanish=(".", ","),

View File

@ -11,7 +11,7 @@ import cv2
import numpy as np import numpy as np
from PIL import Image, ImageDraw, ImageFont from PIL import Image, ImageDraw, ImageFont
PROJECT = r"D:\PROJECTS\LOCAL\GrassCutter" PROJECT = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".."))
ROLLS = os.path.join(PROJECT, r"Builds\Trailer\rolls") ROLLS = os.path.join(PROJECT, r"Builds\Trailer\rolls")
OUT = os.path.join(PROJECT, r"Docs\Steam\showcase") OUT = os.path.join(PROJECT, r"Docs\Steam\showcase")
FONT = os.path.join(PROJECT, r"Assets\Fonts\LilitaOne-Regular.ttf") FONT = os.path.join(PROJECT, r"Assets\Fonts\LilitaOne-Regular.ttf")

View File

@ -4,7 +4,7 @@ The store page's words in every language the game ships in, poured into the same
""" """
import os import os
OUT = r"D:\PROJECTS\LOCAL\GrassCutter\Docs\Steam\store_text" OUT = os.path.join(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..")), "Docs", "Steam", "store_text")
BROWSER = "Microsoft Edge / Google Chrome" BROWSER = "Microsoft Edge / Google Chrome"
T = { T = {

View File

@ -21,7 +21,7 @@ from PIL import Image, ImageDraw, ImageFont
W, H, FPS = 1920, 1080, 60 W, H, FPS = 1920, 1080, 60
SR = 48000 SR = 48000
PROJECT = r"D:\PROJECTS\LOCAL\GrassCutter" PROJECT = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".."))
TRACK = os.path.join(PROJECT, r"ArtSource\Trailer\mowin.mp3") TRACK = os.path.join(PROJECT, r"ArtSource\Trailer\mowin.mp3")
FONT = os.path.join(PROJECT, r"Assets\Fonts\LilitaOne-Regular.ttf") FONT = os.path.join(PROJECT, r"Assets\Fonts\LilitaOne-Regular.ttf")
@ -303,7 +303,8 @@ class Logo:
# ───────────────────────── the render ───────────────────────── # ───────────────────────── the render ─────────────────────────
def render(edl, out, span=None): def render(edl, out, span=None, part=None):
"""part=(first, last) renders just those output frames, picture only: what parallel() hands each worker."""
clock = Clock(edl.KEEP) clock = Clock(edl.KEEP)
song = decode(getattr(edl, "TRACK", TRACK)) * getattr(edl, "TRACK_GAIN", 1.0) song = decode(getattr(edl, "TRACK", TRACK)) * getattr(edl, "TRACK_GAIN", 1.0)
kick = pulse(song) kick = pulse(song)
@ -314,19 +315,23 @@ def render(edl, out, span=None):
for s in shots: for s in shots:
rolls.setdefault(s.take, Roll(os.path.join(edl.ROLLS, s.take))) rolls.setdefault(s.take, Roll(os.path.join(edl.ROLLS, s.take)))
wav = out + ".wav" wav = out + ".wav"
mix(song, clock, getattr(edl, "SFX", []), wav)
first, last = 0, int(clock.total * FPS) first, last = 0, int(clock.total * FPS)
if span: if span:
first, last = int(clock.out(span[0]) * FPS), int(clock.out(span[1]) * FPS) first, last = int(clock.out(span[0]) * FPS), int(clock.out(span[1]) * FPS)
cmd = ["ffmpeg", "-y", "-v", "error", "-f", "rawvideo", "-pix_fmt", "bgr24", "-s", f"{W}x{H}", "-r", str(FPS), "-i", "-", enc = ["-c:v", "h264_nvenc", "-preset", "p6", "-rc", "vbr", "-cq", "20", "-b:v", "16M", "-maxrate", "30M", "-pix_fmt", "yuv420p"]
"-ss", f"{first / FPS:.3f}", "-t", f"{(last - first) / FPS:.3f}", "-i", wav, vin = ["ffmpeg", "-y", "-v", "error", "-f", "rawvideo", "-pix_fmt", "bgr24", "-s", f"{W}x{H}", "-r", str(FPS), "-i", "-"]
"-map", "0:v", "-map", "1:a", "-c:v", "h264_nvenc", "-preset", "p6", "-rc", "vbr", "-cq", "20", "-b:v", "16M", "-maxrate", "30M", if part:
"-pix_fmt", "yuv420p", "-c:a", "aac", "-b:a", "320k", "-shortest", out] # a part is an intermediate: near-lossless x264 on the CPU, since a GeForce opens only 8 NVENC sessions at once
first, last = part
cmd = vin + ["-c:v", "libx264", "-preset", "ultrafast", "-crf", "12", "-pix_fmt", "yuv420p", out]
else:
mix(song, clock, getattr(edl, "SFX", []), wav)
cmd = vin + ["-ss", f"{first / FPS:.3f}", "-t", f"{(last - first) / FPS:.3f}", "-i", wav,
"-map", "0:v", "-map", "1:a"] + enc + ["-c:a", "aac", "-b:a", "320k", "-shortest", out]
pipe = subprocess.Popen(cmd, stdin=subprocess.PIPE) pipe = subprocess.Popen(cmd, stdin=subprocess.PIPE)
hits = getattr(edl, "FLASH", []) hits = getattr(edl, "FLASH", [])
types = getattr(edl, "TYPE", []) types = getattr(edl, "TYPE", [])
pool = ThreadPoolExecutor(6) pool = ThreadPoolExecutor(6)
rng = random.Random(3)
idx = 0 idx = 0
def active(tt): def active(tt):
@ -357,6 +362,8 @@ def render(edl, out, span=None):
for n in range(first, last): for n in range(first, last):
t = n / FPS t = n / FPS
tt = clock.track(t) tt = clock.track(t)
# seeded by the frame, so any stretch renders the same on its own (the parallel parts rely on it)
rng = random.Random(n * 7919 + 3)
s = active(tt) s = active(tt)
if s is None: if s is None:
pipe.stdin.write(np.zeros((H, W, 3), np.uint8).tobytes()) pipe.stdin.write(np.zeros((H, W, 3), np.uint8).tobytes())
@ -398,9 +405,41 @@ def render(edl, out, span=None):
print(f"{idx}/{last - first}", flush=True) print(f"{idx}/{last - first}", flush=True)
pipe.stdin.close() pipe.stdin.close()
pipe.wait() pipe.wait()
if not part:
os.remove(wav) os.remove(wav)
def parallel(edl_path, edl, out, workers):
"""The whole film in `workers` processes at once, each a stretch of frames (picture only), then joined without
re-encoding and the mixed sound laid under it. Same frames as one long render, many times faster."""
import time
clock = Clock(edl.KEEP)
total = int(clock.total * FPS)
cuts = [round(total * k / workers) for k in range(workers + 1)]
parts = [f"{out}.part{k}.mp4" for k in range(workers)]
env = dict(os.environ, OPENCV_FOR_THREADS_NUM="3", OMP_NUM_THREADS="3")
t0 = time.time()
procs = [subprocess.Popen([sys.executable, "-I", os.path.abspath(__file__), edl_path, parts[k], "--part", str(cuts[k]), str(cuts[k + 1])], env=env)
for k in range(workers)]
song = decode(getattr(edl, "TRACK", TRACK)) * getattr(edl, "TRACK_GAIN", 1.0)
wav = out + ".wav"
mix(song, clock, getattr(edl, "SFX", []), wav)
bad = [k for k, p in enumerate(procs) if p.wait() != 0]
if bad:
raise SystemExit(f"parts failed: {bad}")
lst = out + ".parts.txt"
with open(lst, "w") as f:
for p in parts:
f.write("file '" + os.path.abspath(p).replace(os.sep, "/") + "'" + chr(10))
# one pass on the GPU makes the final film from the joined parts
subprocess.run(["ffmpeg", "-y", "-v", "error", "-f", "concat", "-safe", "0", "-i", lst, "-i", wav, "-map", "0:v", "-map", "1:a",
"-c:v", "h264_nvenc", "-preset", "p6", "-rc", "vbr", "-cq", "20", "-b:v", "16M", "-maxrate", "30M", "-pix_fmt", "yuv420p",
"-c:a", "aac", "-b:a", "320k", "-shortest", out], check=True)
for p in parts + [lst, wav]:
os.remove(p)
print(f"{total} frames in {time.time() - t0:.0f} s with {workers} workers", flush=True)
if __name__ == "__main__": if __name__ == "__main__":
# the cuts share looks.py and vertical.py from here, and -I leaves this folder off the path # the cuts share looks.py and vertical.py from here, and -I leaves this folder off the path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
@ -410,4 +449,12 @@ if __name__ == "__main__":
sys.modules["cut"] = sys.modules["__main__"] sys.modules["cut"] = sys.modules["__main__"]
spec.loader.exec_module(edl) spec.loader.exec_module(edl)
setup(*getattr(edl, "SIZE", (1920, 1080))) setup(*getattr(edl, "SIZE", (1920, 1080)))
render(edl, sys.argv[2], (float(sys.argv[3]), float(sys.argv[4])) if len(sys.argv) > 4 else None) args = sys.argv[3:]
if args[:1] == ["--part"]:
cv2.setNumThreads(3)
render(edl, sys.argv[2], part=(int(args[1]), int(args[2])))
elif len(args) >= 2:
render(edl, sys.argv[2], (float(args[0]), float(args[1])))
else:
# the whole film: in parallel (GC_CUT_WORKERS, 20 by default on this 32-thread machine)
parallel(sys.argv[1], edl, sys.argv[2], int(os.environ.get("GC_CUT_WORKERS", "20")))

View File

@ -7,8 +7,8 @@ import os
from cut import PROJECT from cut import PROJECT
from looks import BAR, BARE, BEAT, DUSK, GOLD, HOT, LOGO, NIGHT, PLAY, clip, runner # noqa: F401 from looks import BAR, BARE, BEAT, DUSK, GOLD, HOT, LOGO, NIGHT, PLAY, clip, runner # noqa: F401
# shot again on the build of 5 November: the new crew, the deck, the house, drones, belts, vending machines, weather # shot again on the build of 1 December: the new tools, deck props, console, the T logo
ROLLS = os.path.join(PROJECT, "Builds", "Trailer", "rolls_1105") ROLLS = os.path.join(PROJECT, "Builds", "Trailer", "rolls")
KEEP = [(2.2, 60.58), (75.1, 97.77), (116.1, 170.0)] KEEP = [(2.2, 60.58), (75.1, 97.77), (116.1, 170.0)]
PUNCH, SHAKE, ABERRATE = 0.012, 3.5, 1.4 PUNCH, SHAKE, ABERRATE = 0.012, 3.5, 1.4

50
Tools/Trailer/edl_demo.py Normal file
View File

@ -0,0 +1,50 @@
"""The demo's trailer: the main trailer's cold open, its first and last choruses and its ending, about 55 seconds, with
an end card for the free demo. Same takes, same song, same grades, only less of it.
py -I cut.py edl_demo.py ../../Builds/Trailer/GrassCuttersTogether_Demo_Trailer.mp4
"""
import importlib.util
import os
from cut import Logo, Type
# cut.py loads whichever edl it is given under the name "edl", so the main one is loaded here under its own name
_spec = importlib.util.spec_from_file_location("edl_main", os.path.join(os.path.dirname(os.path.abspath(__file__)), "edl.py"))
_main = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(_main)
ROLLS, SHOTS, PUNCH, SHAKE, ABERRATE, LOGO = _main.ROLLS, _main.SHOTS, _main.PUNCH, _main.SHAKE, _main.ABERRATE, _main.LOGO
SFX, _TYPE = _main.SFX, _main.TYPE
# cold open (the planet), the first chorus, the last chorus, the ending
KEEP = [(2.2, 13.4), (22.9, 38.23), (116.1, 131.03), (147.72, 170.0)]
FLASH = [(22.9, 0.5), (116.1, 0.6), (159.0, 0.7)]
def REACT(t):
if t < 22.9:
return 0.25
if t < 38.3:
return 0.6
if t < 147.7:
return 0.7
if t < 159:
return 0.0
return 0.4
def BLACK(t):
if t < 2.7:
return 1 - (t - 2.2) / 0.5
if t > 168.6:
return min(1.0, (t - 168.6) / 1.2)
return 0.0
TYPE = [ty for ty in _TYPE if not isinstance(ty, Logo) and ty.text not in ("WISHLIST NOW ON STEAM", "CO-OP FOR 1 TO 16 PLAYERS")]
TYPE += [
Type("PLAY THE FREE DEMO", 160.6, 170.0, 84, y=0.74, how="rise"),
Type("WISHLIST NOW ON STEAM", 162.0, 170.0, 54, y=0.84, how="rise", colour=(226, 240, 200)),
Logo(LOGO, 159.0, 170.0, 1180, 0.38),
]
SFX = [s for s in SFX if any(a <= s[0] < b for a, b in KEEP)]

View File

@ -30,7 +30,7 @@ B = 60 / 129.2 # the music's beat
def roll(take): def roll(take):
base = take.split("@")[0] base = take.split("@")[0]
for d in ("rolls_z", "rolls3", "rolls_1105"): for d in ("rolls_z", "rolls"):
if os.path.isdir(os.path.join(TR, d, base)): if os.path.isdir(os.path.join(TR, d, base)):
return os.path.join(TR, d, take) return os.path.join(TR, d, take)
raise SystemExit("no take " + take) raise SystemExit("no take " + take)

View File

@ -16,7 +16,7 @@ import numpy as np
from cut import PROJECT, SR, Logo, Shot, Type, decode from cut import PROJECT, SR, Logo, Shot, Type, decode
from looks import AUDIO, GOLD, HOT, LOGO, NIGHT, PLAY, SPACE, clip # noqa: F401 from looks import AUDIO, GOLD, HOT, LOGO, NIGHT, PLAY, SPACE, clip # noqa: F401
ROLLS = os.path.join(PROJECT, r"Builds\Trailer\rolls3") ROLLS = os.path.join(PROJECT, r"Builds\Trailer\rolls")
OUT = os.path.join(PROJECT, r"Builds\Trailer\story") OUT = os.path.join(PROJECT, r"Builds\Trailer\story")
os.makedirs(OUT, exist_ok=True) os.makedirs(OUT, exist_ok=True)
PUNCH, SHAKE, ABERRATE = 0.006, 1.2, 0.6 PUNCH, SHAKE, ABERRATE = 0.006, 1.2, 0.6