Coder Social home page Coder Social logo

Units for scene files about pbrt-v4 HOT 6 CLOSED

lobneroO avatar lobneroO commented on July 22, 2024
Units for scene files

from pbrt-v4.

Comments (6)

rainbow-app avatar rainbow-app commented on July 22, 2024 1

I'm no substitute for mmp, but here are my 5 cents.

Often it doesn't make huge sense to specify/require "units". Suppose you have algorithm that computes distance travelled by a point with const velosity. The "algorithm" will just spit out the product v*t, and the units will be determined by whatever units have your input data.

I think you can generally assume it's all in SI.

As to light intensity, if it has same RGB (=gray), and if light is point, you can specify it in candellas (cd=lm/sr; it will be luminous intensity then), thus factoring the eye-sensitivity curve into the intensity. The output will be luminance (cd/m^2; for exposure=1s). 100lux is good illumination, at distance 10m you'll need 10000cd. The proper way is to specify intensity in physics-based units (like Watt instead of lumen), over wavelengths, but I never did it. "Point and gray" was my only use case in v3.

Disclaimer: I don't know v4.

from pbrt-v4.

mmp avatar mmp commented on July 22, 2024 1

@rainbow-app is right: it's all SI. Meters for distance, W/(m^2 sr) for radiance, power and radiant intensity per SI, etc. Time is seconds. I agree that it would be good to be clear about that in the documentation and will make a note to do so.

from pbrt-v4.

mmp avatar mmp commented on July 22, 2024 1

You seem to be assuming that pixel values will be between [0,1] for display. Strictly speaking (and with pbrt's RealisticCamera), a camera sensor is measuring energy in Joules over each pixel area; see https://www.pbr-book.org/4ed/Cameras_and_Film/Film_and_Imaging#TheCameraMeasurementEquation and equation 5.5. So in general you will need to remap those measurements to your display's range (e.g. by scaling them).

from pbrt-v4.

lobneroO avatar lobneroO commented on July 22, 2024

@mmp Time is seconds. That probably doesn't hold true for the shutter open/close time, right?

from pbrt-v4.

mmp avatar mmp commented on July 22, 2024

Nope, it does. (Why wouldn't it?)

from pbrt-v4.

lobneroO avatar lobneroO commented on July 22, 2024

I increased the shutter close to 200 for a scene of mine to get quickly visible results for debugging purposes. This worked well, but in a real camera I would expect a 200 second shutter time to lead to practically just a white image.

Since I am not a photographer, I just did a sanity check on wikipedia, the shutter speeds listed are not really exceeding 1 second and a lot of them are well below that.

from pbrt-v4.

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.