Giter Club home page Giter Club logo

Comments (3)

jeffamstutz avatar jeffamstutz commented on July 20, 2024

After today's WG discussion, this is what I would propose:

  • material behaves normally as a 2-sided material like it does now
  • If the front/back material extension is present, then sided materials kick in if either or both materialFront or materialBack are present and are used instead of material
  • materialFront and materialBack behave where viewing the surface from the front or back uses the respective material, and remains true for any effect that may "see" the surface (e.g. shadow rays)
  • If only one of materialFront or materialBack are present, then the side without a material behaves as-if the material is 100% transparent
  • Non-normative: it is recommended for applications to always set material for compability with devices which do not implement the sided materials extension
  • Non-normative: face culling (front or back) should be expressed by omitting one of the two material sides so implementations do not have to inspect or evaluate materials (i.e. samplers could be used here to achieve 100% transparency, but that is not the most efficient way to express/implement face culling)

from anari-docs.

jeffamstutz avatar jeffamstutz commented on July 20, 2024

@johguenther There was reasonable consensus on today's call with the formulation of the extension listed above. Unless you have any other dissenting opinions, we can change the status to ready for proposal. I'm planning to implement it anyway in VisRTX to get some initial experience.

from anari-docs.

johguenther avatar johguenther commented on July 20, 2024

I would really like to not intertwine the extension "backface culling" with the feature to have two different (solid) materials front and back. Just focusing on the latter, that request can be solved by e.g. keeping the material mandatory and optionally add a materialBack (or materialInside) parameter plus stating that "handling of transparency is implementation defined" (or stronger defining that material are treated opaque). The "Physically Based" material already implicitly treats a surface as inside/outside via properties ior and attenuation. This has the benefit that more implementations can support this extension. For example, backface culling is hard to impossible to implement for photonmapping, or BiDir path tracing.

materialFront and materialBack behave where viewing the surface from the front or back uses the respective material, and remains true for any effect that may "see" the surface (e.g. shadow rays)

There is no defined direction for shadow rays (from light to surface or vice versa).

from anari-docs.

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.