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

[BUG] Seems spawning a prefab with any ocean is making the app freeze in HDRP + Unity 6 #1153

Open
2 tasks done
dganzella opened this issue Jul 9, 2024 · 3 comments
Open
2 tasks done

Comments

@dganzella
Copy link

dganzella commented Jul 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Have you checked the documentation to resolve your problem?

  • I have read the linked documentation and could not resolve my issue.

Current Behavior

When I try to spawn a prefab with any ocean, the app freezes.

No error log is generated and its impossible to interact with the app anymore.

Expected Behavior

Ocean be spawned, just like in editor.

Steps To Reproduce

Just install unity 6, add an ocean, and make a windows build using the HDRP pipeline

Unity Version

60000.7f

Crest Version

public const string HELP_URL_VERSION = "4.20.1";

Render Pipeline

High Definition

Editor or Standalone

Standalone

Environment

- OS: Windows 10
- GPU: GTX 3060 mobile
- Graphics API: I think direct X right
- Target Platform: Windows

Anything else?

fix plz ;_;

Update

I was able to make it work, if using graphics compositor, you must associate the ocean with the graphics compositor output camera, and not with any other camera of the composition. If you do, the app will freeze.

@dganzella
Copy link
Author

dganzella commented Jul 9, 2024

Update: seems that, even in editor (unity 6), if you move the ocean in Y (still very close to origin), it stops working and starts to render weirdly
break

update: this issue only happens if the scene window is open

@dganzella
Copy link
Author

dganzella commented Jul 10, 2024

Update: I tried using an empty scene and it worked. So there is something in our main scene that is making Crest break. I wonder if that's because we are using HDRP Graphics compositor, or because we don't use the main camera, I'm gonna update the issue later with more details

Update: After a few tests, it seems that enabling the graphics compositor (which adds an extra special camera to the scene) is the issue.

I was able to make it work, if using graphics compositor, you must associate the ocean with the graphics compositor output camera, and not with any other camera of the composition. If you do, the app will freeze.

@daleeidd
Copy link
Collaborator

Thank you for identifying that one and the solution. I wasn't able to reproduce it myself, but happy to leave it with this workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants