Why mi.Properties() changes its entries' Type? #603
Answered
by
njroussel
Mephisto405
asked this question in
Q&A
-
import drjit as dr
import mitsuba as mi
import torch
mi.set_variant("cuda_ad_rgb")
scene = mi.load_dict(mi.cornell_box())
props = mi.Properties()
bb_min = scene.bbox().min
props["bb_min"] = scene.bbox().min
print(bb_min.Type) # it prints: VarType.Float32
print(props["bb_min"].Type) # it prints: VarType.Float64 I found this weird. Is it intended? |
Beta Was this translation helpful? Give feedback.
Answered by
njroussel
Mar 20, 2023
Replies: 1 comment
-
Hi @Mephisto405 This is "intended". The scene parsing is always done in double precision, hence the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mephisto405
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Mephisto405
This is "intended". The scene parsing is always done in double precision, hence the
Properties
object handles all floating point numbers in double precision too.