Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pathtracing]

For questions about the path tracing Monte Carlo algorithm for physically accurate global illumination, or its variants.

3
votes
1answer
199 views

Multiple Importance Sampling in Path tracer produces Dark Images

So I recently implemented Multiple Importance Sampling in my path tracer which was based on next event estimation. The problem is without MIS I get images like, This is obtained by setting ...
1
vote
1answer
87 views

total internal reflection implementation in pbrt-v3

I've been implementing a path tracer, referring pbrt-v3. However, I'm a bit confused about its implementation. Code is here. It seems when we sample to do transmission, it tests if it meets a total ...
9
votes
0answers
295 views

Using Monte carlo on Rayleigh scattering

Update I am editing and posting this question in a different way; this time from the point of view of Nishita paper. Sunlight gets scattered at P and attenuated before reaching Pv. Therefore ...
9
votes
0answers
121 views

Help with start up bias in Metropolis Light Transport

I'm trying to implement metropolis light transport based on this paper, and I have the basic thing working. I run the algorithm multiple times with different starting points, add the results for each ...
8
votes
0answers
589 views

More accurate Fresnel approximation for a RGB-based Path Tracer

I'm writing a path tracer and, for the moment, spectra related data (spectral power distributions and spectral reflectance curves) are stored as RGB tuples. In the Cook-Torrance specular BRDF I am ...
5
votes
0answers
196 views

How does path tracing handle specular surfaces(Dirac BSDFs) such as water?

I'm trying to render water using path tracing. However, since in path tracing, the light sampling is skipped while the intersection point is perfect specular and thus no direct light would be taken ...
5
votes
0answers
95 views

Should I use nonsymmetric BSDF for refraction in BPT?

I'm implementing bidirectional path tracing. I want to simulate perfect refraction. I read in the Veach thesis that a perfect refraction BSDF is non-symmetric. Does it mean that I need to use ...
4
votes
0answers
36 views

Does MRG32k3a compare well with PCG and Xorshift256*?

I've been using standard 32-bit Xorshift in my GPU path-tracer for a while, following Nathan Reed's approach with hashed seeds and decorrelated state. I (finally) discovered today that Xorshift is ...
4
votes
0answers
74 views

Predicting reflectance functions from complex surfaces

There are three principal ways to obtain a BRDF. We can Derive an analytic formula using physical principles Use simulation given an assumed or measured model of the surface microgeometry Measure ...
4
votes
0answers
223 views

Wrong output while implementing GGX importance sampling

I'm receiving a non-energy conserving output while trying to importance sample the GGX Distributionof the Microfacet model, which is generally 3-4 times bigger than the resulting PDF I'm following ...
4
votes
0answers
99 views

What techniques are used to build ray intersection acceleration structures on the GPU?

What improvements and alternatives have been developed since HLBVH was introduced in the 2010 paper HLBVH: Hierarcihcal LBVH Construction for Real-Time Ray Tracing of Dynamic Geometry by J. Pantaleoni ...
4
votes
0answers
174 views

Beer's law in dielectric material

I am trying to implement Beer's law according to this page in dielectric material but I am not sure have done it correctly as the image does not suggest so. The formula is: I(s) = I(0) * pow(e, ln(A)*...
4
votes
0answers
235 views

Mathematics of Sub Surface Scattering

Can somebody help explain the mathematics of Sub Surface Scattering in a Path Tracer based on the Diffuse Approximation in A Practical Model for Subsurface Light Transport ? I would like someone to ...
4
votes
0answers
307 views

Problem with specular BRDF (Monte Carlo & Path Tracing)

Above on the left is my attempt and on the right is what I'm aiming for.As you can see my sphere with the specular brdf has a weird dark ring In my radiance function I am recursing through the ...
3
votes
0answers
223 views

How to simulate specular reflection in Light Tracing?

I am implementing light tracing from this website. The right wall on the below image is perfect mirror(specular reflection). Its BRDF returns zero that's why it's been rendered black. But how is it ...
3
votes
0answers
463 views

How to properly implement Phong material and importance sample it in a path tracer?

I'm recently implementing Phong materials in my path tracer. My implementation of a randomly sampled Phong material works and looks fine. But it doesn't work well if the shininess(aka power) is too ...
2
votes
0answers
38 views

How to implement explicit light sampling when implementing path tracing?

I implemented a path tracer and got a similar result like this one. Sample: 4096, time used: 537.05s The algorithm is exactly the same as the one in wikipedia, where only the Gathering Path is ...
1
vote
0answers
130 views

Interpreting Cornell Box data for path tracer

So I want to path trace a Cornel Box scene, but I don't understand the values given here in section 2 and 3. Cornell Box Data | Cornell University Program of Computer Graphics No.2 Lists surface ...
1
vote
0answers
103 views

Handling shadow acne for dynamic surfaces

My path-tracer is generally fine and gives good output for regular test scenes, but I've noticed dense fireflies and dark speckles over fractal surfaces. The noise disappears if I render without light ...
1
vote
0answers
74 views

How to calculate solid angle subtended by a pixel?

How is the solid angle subtended by a pixel calculated? both in perspective and fish eye lens.
1
vote
0answers
43 views

Reverse PDF updates for s-2 or t-2 vertices in MIS for BDPT

MIS weights for BDPT are calculated with ratios of PDFs for each vertex under different types of light transport (radiance vs. importance). These probabilities are regenerated for frontier vertices ...
1
vote
0answers
95 views

How to validate whether a reflection model is implemented correctly?

I think this is one of the most important part when you write a physically-based renderer. The solution I came up with is to put a sphere to the scene with a constant background radiance. Solve the ...
1
vote
0answers
56 views

How should I understand path-space measurement equation?

I read the corresponding chapter of PBRT-v3, as well as Veach's thesis which introduced BDPT. However I didn't quite understand why we use the measurement equation. It seems that the measurement ...
1
vote
0answers
58 views

Sample Correlation and Random Variables — An Intuitive Explanation?

I'm mainly trying to understand what it means for Monte Carlo samples to be correlated. Can somebody fit this into the theory of what I know about random variables, covariance and correlation? And ...
1
vote
0answers
63 views

Mitsuba Bidirectional Framework

I'm confused by the Mitsuba bidirectional framework for quite a while now, especially by the different eval and connect ...
1
vote
0answers
240 views

Volume Rendering: Implementation

Can somebody explain how to implement volume rendering and scattering? I've been told that this is the easiest and most effective method to render things like smoke, milk and fog. Scratchapixel has ...
1
vote
0answers
132 views

Pathtracing specular reflections vs. specular highlights

In path-tracing, is a specular reflection model like Blinn-Phong useful? Is it more accurate to render a complete reflection dependent on the objects roughness?