uci-rendering / psdr-cuda

Path-space differentiable renderer
BSD 3-Clause "New" or "Revised" License
155 stars 11 forks source link

usage of the textures #8

Closed l1346792580123 closed 2 years ago

l1346792580123 commented 2 years ago

I have found a texture map in the example data, however, it is not used. I wonder if this renderer supports rendering with texture map?

andyyankai commented 2 years ago

Yes, we do support texture for bsdf. For example a diffuse bsdf with texture can be written in xml file like this:

<bsdf type="diffuse" id="obj1">
      <texture name="reflectance" type="bitmap">
          <string name="filename" value="your_texture_file.exr"/>
      </texture>
</bsdf>
l1346792580123 commented 2 years ago

Yes, we do support texture for bsdf. For example a diffuse bsdf with texture can be written in xml file like this:

Sorry, I have not seen the specific format of the xml. Is the reply incomplete?

andyyankai commented 2 years ago

Yes, we do support texture for bsdf. For example a diffuse bsdf with texture can be written in xml file like this:

Sorry, I have not seen the specific format of the xml. Is the reply incomplete?

ha sorry for that, it seems I cannot write xml format directly here. I updated the reply.