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

InteractiveRenderTest improvements #6282

Merged
merged 4 commits into from
Feb 24, 2025

Conversation

johnhaddon
Copy link
Member

This improves the coverage provided by InteractiveRenderTest, which is used to test all the renderer backends in Gaffer. The motivation for this was to test problematic cases during the development of GafferRenderMan, but I'm breaking it off as a separate PR to aid digestion. This also adds support for light muting in GafferDelight, since it was required to get one of the new tests passing.

A Renderer may choose not to sample all lights for each camera sample, so renders with a red and a green light may not converge quickly enough to satisfy the assertions in `testAddLight()`. Since we want to test the _addition_ of a light, and we have other tests for lights that exist at the start of the renderer, the simple fix is to just use one light for the test.
This is a tricky case in RenderMan so warrants some specific test coverage.

The test also triggered a bug in 3Delight, in which the sampling of the light suffered badly after the shader was removed and replaced. It seemed that 3Delight had lost track of the fact that the surface was emissive and needed special sampling. Updating to the latest 3Delight version seems to fix that.
To avoid tripping up renderer backends that send multiple outputs to the same driver based on the name.
And implement muting for the 3Delight renderer backend.
@johnhaddon johnhaddon self-assigned this Feb 24, 2025
Copy link
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

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

Thanks John!

@murraystevenson murraystevenson merged commit 7ac4311 into 1.5_maintenance Feb 24, 2025
4 of 5 checks passed
@johnhaddon johnhaddon deleted the interactiveRenderTestAdditionsPR branch February 25, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending release
Development

Successfully merging this pull request may close these issues.

2 participants