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

Templated render stages #1177

Merged
merged 4 commits into from
Nov 29, 2024
Merged

Conversation

HifiExperiments
Copy link
Member

@HifiExperiments HifiExperiments commented Oct 21, 2024

we have a lot of XXXXStage classes, which are responsible for passing data from various places to the various tasks that actually render different effects (like the skybox, bloom, AO, etc.). as we've added more, they've gotten a bit out of control, and it's cumbersome to add more. the classes were all very similar, so I've created some templated classes in Stage.h to deduplicate a lot of code.

@HifiExperiments HifiExperiments added needs CR This pull request needs to be code reviewed needs QA This pull request needs to be tested labels Oct 21, 2024
@HifiExperiments HifiExperiments force-pushed the stages branch 2 times, most recently from e083854 to 1b5fdb4 Compare October 22, 2024 04:06
Copy link
Member

@ksuprynowicz ksuprynowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice :)
It will make work on renderer a lot easier

@ksuprynowicz ksuprynowicz added CR approved This pull request has been successfully code reviewed and removed needs CR This pull request needs to be code reviewed labels Nov 1, 2024
@ksuprynowicz
Copy link
Member

I tested it in desktop mode and everything works perfectly, we just need to test in VR now.

@ksuprynowicz
Copy link
Member

I had a crash with this message, but it seems tricky to reproduce and it's possible that it's unrelated:

[11/28 22:41:32] [WARNING] [default] Failed to get a valid storageView for faceSize= 16384   faceOffset= 5570740 out of valid file  "/home/ksuprynowicz/.local/share/Overte/Interface/ktx_cache/60d2133ec824c215837adef82a73ed53.ktx"

@ksuprynowicz
Copy link
Member

Other than this it works well in desktop mode, everything renders correctly.

@HifiExperiments
Copy link
Member Author

yeah definitely unrelated, looks like maybe ktx corruption. this was just purely refactoring how we pass around some objects, basically if lighting and effects are working then it’s all good! thank you for testing

@ksuprynowicz
Copy link
Member

I will test it in VR and then I think it will be safe to merge

@ksuprynowicz
Copy link
Member

Works perfectly in VR too :)

@ksuprynowicz ksuprynowicz added QA approved This pull request has been successfully tested and removed needs QA This pull request needs to be tested labels Nov 29, 2024
@ksuprynowicz ksuprynowicz merged commit b8b6222 into overte-org:master Nov 29, 2024
6 checks passed
@HifiExperiments HifiExperiments deleted the stages branch November 29, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CR approved This pull request has been successfully code reviewed QA approved This pull request has been successfully tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants