Objects don't take the light of where they stand: too bright indoors and at night
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Start by reading the C# side of EnableVobWorldLight in #479 and the Lit-World and Lit-SingleMesh lighting paths mentioned here; compare them with the referenced zCVob::CalcStaticLighting behavior. Check how objects obtain their ground polygon and baked light, including the no-floor case. Done means objects reflect their surroundings indoors and at night, and nearby baked lights affect the world as described.
索引モデルが issue の本文から書いたものです。
説明
Description
- Objects ignore the light of their spot. Static objects (tables, beds, kettles) are drawn with
Lit-World, but with a flat full base light (no baked light of their own) times the day colour. Items and NPCs useLit-SingleMesh(sun + ambient). None of them gets the light of the floor they stand on. Indoors and at night they are much brighter than the world around them. - The world barely brightens near fires. Static lights are added per vertex, and Gothic's world polygons are large, so a fire in the middle of a room hardly reaches the polygon corners.
Expected Behavior (original engine)
- Each
zCVobhaslightColorStat,lightColorDyn,lightDirectionStatandgroundPoly. The engine computes the static light per object (zCVob::CalcLightSampleAtOrigin,zCPolygon::GetLightStatAtPos). - Enhanced-Gothic-Renderer does the same on top of the original engine (
zCVob.h,CalcStaticLighting):- a ray down from the bounding box centre onto the ground polygon;
- the baked light at the hit point (lightmap indoors, vertex light outdoors);
- grey 160 when there is no floor.
- Static
zCVobLights only exist in the bake (vertex light and lightmaps).
Actual Behavior
See the description. Seen on Quest 3 in G1 and G2 (huts and Khorinis at night). It's the same on PC, since the shaders are the same.
Environment Information
- Reproducibility: Always
- Platform: all
- Game Version: main 83a1aebd2
Notes
- Already in BoroBongo's work: in
experimental/game-completion-candidate-vibecoded-borobongo:- the world's lightmaps are rendered;
- static lights are per pixel in
Lit-World; - objects in light-mapped areas (caves, mines, houses) take the lightmap light around them (
EnableVobWorldLight,_VobLightTint).
- In #479 (split/16): only the C# side of
EnableVobWorldLight. Without the shader part it has no visible effect. - Not covered anywhere: outdoor objects at night.
- Quest cost: one light colour per object, taken once at build time (again when an object moves), is almost free. Per-pixel lights cost GPU time, and G2 Khorinis at 120 Hz is already GPU-bound.
- Related: #41 (lightmaps).
- Sources:
- 主要言語
- C#
- スター
- 33
- フォーク
- 1
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 51
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Gothic-Unity-Project/Gothic-Unity のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
Gothic-Unity-Project/Gothic-Unity#487 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 49/100
Gothic-Unity-Project/Gothic-Unity#489 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Gothic-Unity-Project/Gothic-Unity#486 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Gothic-Unity-Project/Gothic-Unity#485 ·
メンテナーはふだん 1 日以内に返信
-
XRIT - Items in slots get HVR's size (no more flying with a coin on the hip)対応中かも @JaXt0r が 9 日前に担当しました。 オープンbug
Gothic-Unity-Project/Gothic-Unity#446 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
Gothic-Unity-Project/Gothic-Unity の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Facepunch/sbox-public#12284 ·
メンテナーはふだん 6 日以内に返信
-
bug untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
CarlosAdrianM/Nesto#610 ·
-
[bug-bash] print maps a missing item's HTTP 404 to exit 1 instead of documented not-found exit 5オープンbug bug-bash
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Azure/CosmosDBShell#279 ·
メンテナーはふだん 1 日以内に返信