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

Exception noted when using bloom renderpass #6113

Open
MAG-AdrianMeredith opened this issue Mar 6, 2024 · 7 comments
Open

Exception noted when using bloom renderpass #6113

MAG-AdrianMeredith opened this issue Mar 6, 2024 · 7 comments
Assignees
Labels
area: graphics Graphics related issue enhancement

Comments

@MAG-AdrianMeredith
Copy link

Description

I'm seeing an exception after testing the lastest builds when using the new renderpasses. Looking at the code in vscode makes it quite clear that it can be undefined so looks like a simple oversight

image

exception here
playcanvas.mjs:32653 Uncaught TypeError: Cannot read properties of null (reading 'id')
at ForwardRenderer.buildFrameGraph (playcanvas.mjs:32653:1)
at AppBase.renderComposition (playcanvas.mjs:42356:1)
at AppBase.render (playcanvas.mjs:42352:1)
at eval (playcanvas.mjs:42761:1)

I don't have an example repo case but hopefully the ide warning is enough

@mvaligursky
Copy link
Contributor

Could you please look in the debugger to see when this happens? Render actions are created for rendering of layers, so typically this cannot be null. Is there maybe an instance of RenderPassForward with no layers added to it?

@MAG-AdrianMeredith
Copy link
Author

Looks like it happens when we use our "Outline" posteffect it appears to be creating 3 renderActions, with the last one being totally empty. Any background information on what creates render actions?

Screenshot 2024-03-06 at 14 56 32

@MAG-AdrianMeredith
Copy link
Author

Do post effects still work in the new world or does this need porting to render passes?

@mvaligursky
Copy link
Contributor

Post-effects work if you do not use render passes.
If you use render passes, you cannot use post-effects as those are not converted to render passes.

@MAG-AdrianMeredith
Copy link
Author

Thats probably the issue then would it be unreasonable to log an error to the console in this case?

@mvaligursky
Copy link
Contributor

Yeah that's definitely on the list. For now it's just a work in progress that's not released for public use. When we'll get it release-ready and documented, we'll port multiple engine examples to use it, make sure issues / errors are reported and similar.

I'll see if I can add some assets for case early though.

@MAG-AdrianMeredith
Copy link
Author

Thanks for your help, this is is why I wanted to test things to see what breaks ;). I'll give it another go again next release or two

@mvaligursky mvaligursky self-assigned this Apr 2, 2024
@mvaligursky mvaligursky added area: graphics Graphics related issue enhancement labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

No branches or pull requests

2 participants