Giter Site home page Giter Site logo

Comments (3)

Speierers avatar Speierers commented on August 16, 2024 1

@abhinavvs this is now fixed (77a8024)

Thanks for reporting this!

from mitsuba2.

Speierers avatar Speierers commented on August 16, 2024

Hi @abhinavvs ,

Q1: Mitsuba 2 uses the underscore_case naming convention, so toWorld should become to_world. For compability with Mitsuba 1 scenes, the Mitsuba 2 parser is able to do the name conversion itself if a scene version is provided. In your case, this should fix it:

<scene version="0.1.0">
      <!-- Define all the Shapes and bsdfs  -->
</scene>

Q2: Currently, only triangular meshes are supported in the gpu_* modes. You can easily generate .obj meshes for rectangle and sphere with Blender, or use the ones in resources/data/docs/scenes/meshes/.

from mitsuba2.

abhinavvs avatar abhinavvs commented on August 16, 2024

Thanks, @Speierers - I used the version tag for the older (Mitsuba 1) scene file as mentioned by you, but still got the same error.

Also, I have the following bsdf definition from Mitusba 1 format (this is not part of the external scene file above)

<!-- White paint definition -->
    <bsdf type="twosided" id="white-paint">
        <bsdf type="roughplastic">
            <!-- The BEHR Premium paint is documented as having an RGB color
                 of (247, 248, 244) = #f7f8f4. This is used, although the
                 semi-gloss/eggshell sheen effects this too. -->
            <srgb name="diffuseReflectance" value="#f7f8f4" />
            <string name="distribution" value="ggx" />
            <float name="alpha" value="0.08" />
            <!-- BEHR paint has an acrylic finish, this is an approximate match. -->
            <string name="intIOR" value="acrylic glass" />
            <boolean name="nonlinear" value="true" />
        </bsdf>
    </bsdf>

How can I convert the diffuseReflectance value from <srgb> to <spectrum> or <rgb>? Could you tell me what would be the equivalent BSDF definition for the above material in Mitsuba2?

Also, I see that there are new commits to the repository all the time. For staying up-to-date with the latest version of Mitusba, is it sufficient to simply do a git pullall as mentioned in the docs, or should we build and compile the software again as well?


Update:
Looks like the automatic name conversion from Mitsuba 1 to Mitsuba 2 doesn't seem to work for loading external files. I changed the syntax on the external xml file to Mitusba 2 format and things work fine.

from mitsuba2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.