Improve terrain rendering

オープン
#3,936 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
44/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, unity

調査の方向性

Start by running the Bepu sample and selecting its heightfield scene to reproduce the terrain triangles being culled near the bottom of the screen. Read the heightfield model component and the sample's terrain material setup; the issue describes uniform subdivision and built-in Phong tessellation as the relevant options. Done means providing an alternative tessellator or terrain mesh generation method that handles large height changes and avoids the premature culling.

索引モデルが issue の本文から書いたものです。

説明

area-Graphics area-Physics area-Shaders bug enhancement
Stride version

Latest git

Platforms

Windows, Linux, Android, macOS, iOS, Game Studio (editor)

Graphics API

No response

What happens

The idea with PR #3758 was to get physics working and provide a fairly simple and straightforward rendering package that users or maintainers can build on top of.

As of writing, the heightfield model component is a uniformly dense plane that can be stretched on the whole field or around the camera. The sample comes with a default setup for the terrain material using the built-in phong tessellation to effectively act as a dumb LOD for terrain detail. Our phong is very aggressive when culling, it doesn't expect any change in height from generated vertices, meaning that triangles that are near the frustum and with a significant slope may be culled too early, as can be seen in the video below.

C9kbfsyib3.webm

This is not necessarily a show stopper as users my increase the uniform subdivision on the component and remove tessellation to fix this issue, but it would be nice to provide an alternative tessellator that expects large changes in height, or implement one of the many existing methods for terrain mesh generation.

Steps to reproduce
  1. Spawn bepu sample after #3919 is merged in
  2. Run the sample
  3. Select the heightfield scene
  4. Notice the triangles intersecting with the bottom of the screen occasionally being culled
Log and callstack

Screenshots and other details

No response

主要言語
C#
スター
8k
フォーク
1.2k
平均マージ
2日 7時間
マージ済み PR(30日)
316

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stride3d/stride のほかの issue

stride3d/stride の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。