stride3d / stride3d/stride

Clean UI with no post FX broken when no model present in the scene.

Open
#1,508 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type:

Official Release

Version:

4.1.0.1457-beta

Platform(s):

Windows

Describe the bug:

After performing steps for clean UI with no post processing (steps can be found here: https://github.com/herocrab/StrideCleanUI ), if a scene without a model is created (scene contains only camera and entity with UI component) the post FX still happens, and after loading a new scene a warning pops up that says:

[SceneCameraRenderer]: Warning: SceneCameraRenderer [82781b1c-a13f-4f6c-90fa-fce37b46a656] has no camera assigned to its Slot[Main]. Make sure a camera is enabled and assigned to the corresponding Slot.

To Reproduce:

Steps to reproduce the behavior:

  1. Create new project and perform the steps as shown in the link above.
  2. Create new Scene and set the created scene as the default scene in game settings.
  3. In the newly created scene add a camera and an Entity with a UI component attached to it.
  4. Create basic page with one button and text and attach the page to the UI component of the entity.
  5. Create a new sync script which will set the button.Click method to change scenes, attach script to camera (The scene has to be changed through the Click method, otherwise the warning doesn't pop up).
  6. After launching game the post FX should still happen and after clicking the button the warning should pop up.
  7. Add any model or entity containing model component to the created scene and the problem should be resolved.
Expected behavior:

The post FX shouldn't happen even if a model isn't added to the scene and the warning shouldn't pop up.

Screenshots:

No model added
image
image

Warning that pops up after changing scene
image

After adding the default ground model that comes with the project template:
image
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the clean-UI setup from the linked StrideCleanUI steps with a camera, UI entity, and no model, then compare it with the same scene containing a model. Trace the scene change through the camera and post-processing behavior, and verify that post FX remains disabled and no missing-camera warning appears after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.