Skip to content

Simplifications to computeRadianceRecurse() function#22

Open
jlanz wants to merge 1 commit into
OpenMoonRay:mainfrom
dreamworksanimation:export/MOONRAY-6008
Open

Simplifications to computeRadianceRecurse() function#22
jlanz wants to merge 1 commit into
OpenMoonRay:mainfrom
dreamworksanimation:export/MOONRAY-6008

Conversation

@jlanz
Copy link
Copy Markdown
Contributor

@jlanz jlanz commented Jun 2, 2026

Resolves OpenMoonRay/openmoonray#254

  • Add dedicated version of CRR() for ray depth 0

  • Remove tests for ray depth 0

  • Remove redundant params from CRR1()

  • Minor simplifications

  • Further minor simplifications

  • Eliminate ignoreVolumes and hitVolume params from CRR1()

  • Eliminate IndirectRadianceType flags and make CRR() funcs return type be void

  • Tidy up logic for indirectFlags and doIndirect

  • Make CRR1() return the radiance rather than pass it as a reference

  • Reduce processing for ref{le|ra}cted cryptomatte in CRR1()

  • Remove redundant variable & corresponding param

  • Replace ref{le|ra}cted crypto params ptr args with single flags arg

  • Simplify logic for regular cryptomatte in cRR0() and eliminate cryptomatteBuffer arg

  • Eliminate hitVolume param from cRR0()

  • Eliminate ignoreVolumes param from cRR0()

  • Tidy up logic for indirectFlags and doIndirect in cRR0()

  • Make cRR0() return the radiance rather than pass it as a reference

  • Consolidate some early outs and their corresponding aov processing in cRR0()

  • Temporarily remove deferred nodes

  • Add computeRadiancePresence() func

  • Add computeRadianceSubsurface() func

  • Fix a bug

  • Fix more bugs

  • Organise and comment a bit

  • Factor out lights-visible-in-camera stuff and reduce logic on early-out for no bsdf lobes

  • Find more appropriate locations for some bits of code

  • Factor out the computing of cryptomatte results

  • Add changes which should have been included in previous commit

  • Fix build errors in some variants

  • Fix RayState padding for mac os

  • copilot suggestion 1

Add safety checks for construction of TypedAttributeKeys.

Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com

  • Copilot suggestion 2 (include file)

  • Copilot suggestion 3 - bug fix

  • Copilot suggestion 4 - bug fix

  • Apply round 1 of code review feedback

  • Fix build error


Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
Signed-off-by: Jon Lanz jon.lanz@dreamworks.com

* Add dedicated version of CRR() for ray depth 0

* Remove tests for ray depth 0

* Remove redundant params from CRR1()

* Minor simplifications

* Further minor simplifications

* Eliminate ignoreVolumes and hitVolume params from CRR1()

* Eliminate IndirectRadianceType flags and make CRR() funcs return type be void

* Tidy up logic for indirectFlags and doIndirect

* Make CRR1() return the radiance rather than pass it as a reference

* Reduce processing for ref{le|ra}cted cryptomatte in CRR1()

* Remove redundant variable & corresponding param

* Replace ref{le|ra}cted crypto params ptr args with single flags arg

* Simplify logic for regular cryptomatte in cRR0() and eliminate cryptomatteBuffer arg

* Eliminate hitVolume param from cRR0()

* Eliminate ignoreVolumes param from cRR0()

* Tidy up logic for indirectFlags and doIndirect in cRR0()

* Make cRR0() return the radiance rather than pass it as a reference

* Consolidate some early outs and their corresponding aov processing in cRR0()

* Temporarily remove deferred nodes

* Add computeRadiancePresence() func

* Add computeRadianceSubsurface() func

* Fix a bug

* Fix more bugs

* Organise and comment a bit

* Factor out lights-visible-in-camera stuff and reduce logic on early-out for no bsdf lobes

* Find more appropriate locations for some bits of code

* Factor out the computing of cryptomatte results

* Add changes which should have been included in previous commit

* Fix build errors in some variants

* Fix RayState padding for mac os

* copilot suggestion 1

Add safety checks for construction of TypedAttributeKeys.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Copilot suggestion 2 (include file)

* Copilot suggestion 3 - bug fix

* Copilot suggestion 4 - bug fix

* Apply round 1 of code review feedback

* Fix build error

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jon Lanz <jon.lanz@dreamworks.com>
@jlanz jlanz requested a review from a team June 2, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do a simplification pass on PathIntegrator::computeRadianceRecurse()

2 participants