Skip to content

Compute local shading #1361

Closed Answered by shinyoung-yi
07hyx06 asked this question in Q&A
Oct 25, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

It will depend on what exactly you want.

1. Existing integrator plugins

Direct illumination integrator or Path tracer with the parameter max_depth = 2 only compute direct illumination ignoring inter-reflection, but it compute visibility (not ignoring).

You may want the differentiability feature for your inverse rendering use case. Then Direct illumination projective sampling or Path Replay Backpropagation with max_depth=2 will be useful.

2. Custom integrator ignoring visibility.

If you actually want such local shading ignoring visibility test, like a simple rasterization renderer, then you may need to write a custom integrator plugin. For example:

import numpy as np
import matplotlib.pyplot 

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@07hyx06
Comment options

Comment options

You must be logged in to vote
1 reply
@07hyx06
Comment options

Answer selected by 07hyx06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants