Open keepwonder opened 3 years ago
Could you elaborate further on what you mean by "not ok in your opion". Are you basing this judgement on some sort of ground truth images that you are trying to match? Or other synthetic images produces by a different renderer maybe?
@Speierers yes, there are some ground truth images. and In my example, if I use the point emitter I defined instead of the envmap with textures/museum.exr from official example, the result image i get is almost dark, why is that ?
and again
what is the relationship between bsdf types and textures type or how to arrange them in xml file to get a correct rendered result?
and how can I attach more than two texures(3, 4, ,5 etc.) to a specific shape?
It seems that there is no detailed docs to explain this?
Hi @keepwonder,
bsdf
entry in the scene XML file will create a BSDF instance. The type
attribute specifies which BSDF plugin to use. If you check the source code for that BSDF, you will find helpful comments directly at the top of the class (also visible in the documentation). Importantly, you can also see in the constructor which properties does the BSDF use. For example, in the diffuse
constructor, the reflectance
texture is read from the properties:And in normalmap
, a nested BSDF is expected:
It seems like your texture corresponds to a Disney / principled BSDF, which has not yet been implemented (#153). However, you should be able to achieve something reasonable with e.g. a roughconductor
, roughplastic
or a combination of both.
texture
block nested inside of your BSDF, with attribute name
corresponding to the property name expected by the BSDF (see the documentation or BSDF constructor as shown above to find out which properties are expected).
The following example is from mitsuba2 official document:
and this just used one map.
My task is to use four textures choosed from the following png list to render a shape(sorry for that I can't post my pictures) :
marble_red_01_basecolor.png marble_red_01_height.png marble_red_01_normal.png marble_red_01_roughness.png marble_red_01_metallic.png marble_red_01_ambient_occlusion.png
height ,normal ... explained the texure type
and here is an example I tried(some infomation are omitted) :
and the result turn out to be not ok in my opion.
what is the relationship between bsdf type and my texture type or how to arrange them in xml file to get a correct rendered result?