Giter Club home page Giter Club logo

Comments (3)

peterkutz avatar peterkutz commented on September 25, 2024 2

A related issue is how we deal with rays which are exiting from the surface when the surface is locally (e.g.) a metal.

Arguably one can make sense of this by assuming the metal must be a thin sheet of foil covering the interior dielectric, so we would reflect from this foil back into the interior. This would allow for rendering of e.g. bottles with metallic labels, with the label visible through the glass (without the need for modelling a separate label).

This still seems like the best way to reason about the meaning of a mixture of metal and transmission to me. If the surface is being hit from the inside, then the bulk must have been transparent, so the metal must be a foil on top of the surface.

from openpbr.

portsmouth avatar portsmouth commented on September 25, 2024 1

A related issue is how we deal with rays which are exiting from the surface when the surface is locally (e.g.) a metal.

Arguably one can make sense of this by assuming the metal must be a thin sheet of foil covering the interior dielectric, so we would reflect from this foil back into the interior. This would allow for rendering of e.g. bottles with metallic labels, with the label visible through the glass (without the need for modelling a separate label).

In general though the interior properties are (currently) ill-defined if different parts of the surface specify different base interiors (i.e. metal, diffuse, subsurface, volume, or a mixture thereof). For the moment it probably has to remain implementation-dependent how this is handled. In the spec we just say something vague about the implementation "doing the best it can to make sense of it":

This physical picture of the mix operation becomes somewhat unrealistic in some cases where the bottom-most bulk materials being blended are not obviously consistent (e.g. blending dielectric and metallic bulks), but in such cases it is understood that the implementation should do the best it can to make sense of the physics (e.g. the metal bulk could be considered to actually be surface metallic flakes on top of a single consistent dielectric).

from openpbr.

portsmouth avatar portsmouth commented on September 25, 2024

I think the effects I described are implicit in the physical description, so we don't need to elaborate on them. Implementations typically won't bother modeling these, but in future renderers which e.g. do full MC light transport in the layer structure, they might attempt it.

I could perhaps add a couple sentences to the spec noting that the entering/exiting rays encounter the layers in different order, which in principle should be accounted for in the layering math, but it isn't strictly necessary.

from openpbr.

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.