Skip to content
Discussion options

You must be logged in to vote

Hi @zichenwang01

Sorry for the delay. Have you figured this out?
I just gave it another go, and it seems to run without any issues:

import mitsuba as mi
import drjit as dr

mi.set_variant('cuda_ad_rgb')

scene = mi.load_dict(mi.cornell_box())
ray = mi.Ray3f(o=[0, 0, 3], d=[0, 0, -1])
si = scene.ray_intersect(ray)
bsdf = si.bsdf()
roughness = bsdf.eval_attribute_1('roughness', si)
print(f"{roughness=}") # return 0 but at least there aren't any errors

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zichenwang01
Comment options

@njroussel
Comment options

Answer selected by merlinND
@Start1er
Comment options

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