Questions tagged [raytracing]

Questions specific to raytracing (as opposed to scanline rendering), the 3D graphics technique of intersecting rays from the camera with objects in the scene.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

raycasting in opentk: size of projection plane / direction of rays

I found my error! The solution was as posted for example here: How to avoid curvature artifact in raytracer? ; just multiply the forward vector with cos(angle) before adding the vectors. i want to ...
0
votes
0answers
56 views

Is it possible that a superior, undiscovered 3D rendering method exists?

As far as I know, the only options we have for true 3D rendering are polygonal rendering, ray-marching and raytracing/casting. Why is that? Surely there must be other ways? Is there some paper ...
0
votes
2answers
119 views

How to avoid curvature artifact in raytracer?

I have a pretty simple raytracer that is rendering some SDFs, but when my camera is close to the object I see curves: I am not entirely sure where they are coming from, as I am using nothing but ...
0
votes
1answer
38 views

What is the attenuation function for a reflected light

In a real-time rendering program, when a light hit a plane and reflected, how to calculate the attenuation(by distance) for the reflected light?
2
votes
2answers
69 views

Examples of anisotropic surfaces

Being faced with a design choice, I have to decide between supporting anisotropic surfaces or not in my ray tracer. Is there any common use case of this feature other than velvet (so that I may be ...
1
vote
1answer
75 views

How to change a RGB value using a radiance value?

I am new to this awesome community, I am currently writing a ray tracer but I hit a problem... Let's say I have a surface(material doesn't matter) of colour [1, 0, 0] in RGB, and the radiance reaching ...
1
vote
0answers
46 views

Shadow Bug when Raytracing Triangles

Spheres with shadows work fine. But when I try to include triangles with shadows, they are shaded incorrectly (i.e completely black): But when I disable shadows Blinn shading on triangles work fine (...
3
votes
0answers
42 views

ray racing (Whitted) bad shadow on far objects (artifact)

situation: I've implemented a Whitted style ray tracing in C. Everything appear to works except the shadow cast by small object on big far objects The problem : red sphere have radius 0.5 orange ...
2
votes
1answer
57 views

How is raytracing performed in anisotropic media?

I wish to determine the path taken by a light ray between two points, $a$ and $b$, through an anisotropic medium. More specifically, this medium has an index of refraction which varies as an ...
0
votes
0answers
20 views

How to calculate MIS weight for indirect light path?

I am trying to add MIS into my render. So, looking into some shadertoy examples. https://www.shadertoy.com/view/MsXfz4 https://www.shadertoy.com/view/4sSXWt Here comes the problem. All of them are ...
0
votes
0answers
21 views

Double sided area light produces much more fireflies than single sided, how to fix it?

I am testing area light with my render. I prefer double sided light, because it produces some glow around the light. But it produces much more fireflies which is annoying. While the single sided light ...
1
vote
1answer
43 views

When sampling direct light, what to do if testing ray been blocked by transparent object?

As the title above. I am trying to sampling direct light and indirect light. But I have many transparent objects in scene, it's very likely to block the testing ray. To my understanding, it's not good ...
0
votes
0answers
61 views

Ray tracing tree

Let's suppose that we have a light source. Which of the following are correct for the tree of recursive ray-tracing (ray tree) that create when we make the colors for each pixel in the screen. Which ...
0
votes
2answers
100 views

Can someone explain why raytracing isn't able to make Global Illumination?

I've watched a few videos about raytracing vs pathtracing, and one thing that consistently pops up is the idea that pathtracing seems to be able to do global illumination, whilst raytracing is not. ...
6
votes
3answers
720 views

Fundamental drawbacks of rasterization over ray tracing

Are there any fundamental drawbacks/limitations of rasterization as compared to ray-tracing? When I search on the internet, I get vague explanations like rasterization does not provide lighting ...
0
votes
0answers
43 views

Raytracing, divide by PDF neutralized the effect of D and G terms, what is the problem?

Following some documents on internet, I divide my ray tracing result by PDF. Then it seem the D and G terms disappeared. Only F term is still visible, it looks like Fresnel only. ...
1
vote
1answer
65 views

Ray tracing Bug with Diffuse material

I am trying to do ray tracing in python (following the tutorial given in Ray Tracing in a weekend). Basically I am shooting rays from eye and the recursively bounce around, each time they hit ...
1
vote
1answer
75 views

Ray tracing geometries with same position, translation and scale

this is my first post on the Computer Graphics Stackexchange forum. Apologies in advance if I am doing something wrong. I have the problem that I have a scene with overlapping geometries. To be more ...
0
votes
0answers
116 views

Ray casting and rasterization 101

Recently I've became an intern in company-name and my internship task is(for now) create rasterization using rays. I'm mostly interested in pure math, so basic ...
3
votes
0answers
106 views

Path tracing : fireflies/hot pixels when directly sampling lights

I am implementing a pathtracer with both indirect and direct light sampling at each intersection (I believe the "direct light sampling" part is also referred to as "next event ...
0
votes
1answer
50 views

What can be the cause of some strange ray shadows artefacts on a perfectly flat surface?

First of all I have to say that I am really new in the world of Computer Graphics. I apologise if some of my questions may appear trivial. I am currently using a non-commercial ray tracing and ...
0
votes
0answers
46 views

Combining two images based on their depth maps

Lets assume, we have two depth maps with us and their corresponding color maps. Now, our task is to populate a final image that will be displayed. Each pixel in the final image needs to be calculated ...
0
votes
0answers
34 views

Unity path tracing makes the pc crash

Good Morning. I'm testing Path Tracing techniques with unity, following this tutorial. http://three-eyed-games.com/2019/03/18/gpu-path-tracing-in-unity-part-3/ But I'm in trouble. Whenever I try to ...
0
votes
1answer
124 views

Given two 3d vectors, find the rotation matrix between the two

So I am making a raytracer following the very helpful online book of Gabriel Gambetta but I stumble on the rotation matrix part. My linear algebra background is 3Blue1Brown video series "The ...
0
votes
1answer
79 views

Magic number meaning in smallpt's camera ray calculation

In smallpt's source at line 90 the direction is multiplied by 140 and I was wondering where that number is coming from. I was hoping for it to be explained in the ...
0
votes
1answer
50 views

Buggy behavior when applying specular reflection

I'm very new to computer graphics and trying to implement a raytracer based on the book Computer Graphics from Scratch. When I tried to add specular reflection, I don't get the output that look like ...
0
votes
1answer
54 views

(Ray tracing) Trouble converting to screen coordinates, objects being stretched

I followed along with Ray Tracing in One Weekend and managed to get the final output but I wanted to understand more about creating a camera and "painting" the screen since he didn't go over ...
0
votes
0answers
34 views

Calculate Ray-Box intersections in terms of distance

Given a ray and a cube, how do I calculate the two intersections between them in terms of distance along the ray. Would be good if the results would be NaN or Infinity if they do not intersect. So far ...
0
votes
0answers
42 views

Path tracing: how to ensure the new direction vector is a valid direction vector with respect to a BSDF?

Given the BSDF function and the Normal vector of the intersection point in world space, how can I generate a new direction vector ...
0
votes
1answer
58 views

How to link Intel Open Image Denoise in Qt Creator and use it to denoise noisy Monte Carlo path tracing renderings?

I've been trying to link my the Intel Open Image Denoise libraries for about a week and still have no luck as of now. This could partly be because I am also novice in C++ stuff. So I need some help in ...
0
votes
1answer
197 views

Transforming a ray from camera space to world space

I am writing a Raytracer and generating rays from the camera. I have a working program but slightly confused about the linear algebra concepts involved in transforming the ray from camera space to ...
0
votes
1answer
28 views

Moving a vertex through the cursor

There is a way to move a selected point in a mesh with a cursor(assuming a camera that doesn;t change between frames). The way I remember the algorithm (but seems to be wrong) is: Unproject the ...
1
vote
1answer
76 views

Does film filter introduce bias in path tracing?

Does using box or gaussian filter introduce bias to the image when reconstructing the pixel? Bias does not seem to be talked in the Chapter 7.8 of PBRT
3
votes
2answers
149 views

Mathematical Foundations of Radiative Transfer

I'm new to learning about ray tracing, but have been fairly confused by the mathematical foundations of it all. Specifically of radiometry/radiative transfer. I've internet searched a lot and skimmed ...
1
vote
0answers
41 views

How many years till photorealistic games? [closed]

I just saw this post by NVIDIA: RTX Global Illumination The images shown seem to be rendered in realtime which got me thinking about when games will achieve full photorealism and become ...
0
votes
0answers
37 views

Halton raytracer light path

I"m currently making my own graphic engine. I have the bsdf acquisition and various textures acquisition and I have materials suited for special type of light paths. did"t code the rendering ...
2
votes
0answers
36 views

Create a virtual server which use the full power of my GPU

i dont know if i can create a virtual server (with vmware, virtual box or with something like that), and if i can use the full power of my graph (i have a nvidia rtx 2080 super) or if I'm going to ...
1
vote
0answers
42 views

GL_OUT_OF_MEMORY Error when glDispatchCompute takes longer

I built a simple Ray Tracer which takes use of OpenGL's Compute Shader and traces ".obj" Files. The results are passed to the Host-Program via glMapBufferRange after finishing computing. ...
2
votes
1answer
109 views

Ray tracing where illumination itself affects the geometry

I am interested in a scientific application in which ray tracing is necessary, but also where the light itself alters the geometry of the surface mesh (imagine perhaps that the beams of light have ...
1
vote
1answer
136 views

Why is the image from the CUDA version not as sharp as the CPU version?

I am extending Roger Allen's Ray Tracing in One Weekend in CUDA (and also here) by following Peter Shirley's Ray Tracing: The Next Week; specifically Image Texture Mapping. The image I obtain from ...
1
vote
2answers
130 views

BVH uses aabb for a sphere in Ray Tracing: The Next Week

While studying Peter Shirley's Ray Tracing:The Next Week, I came across an issue that I cannot quite figure out: Stepping through the random_scene() case of the ...
2
votes
1answer
83 views

Debugging refraction in a sphere

I have been working on recreating some of the scenes from Peter Shirley's raytracing books using compute shaders and the new Metal raytracing API. It is going well but I am having some trouble with ...
3
votes
1answer
128 views

How do we know if a ray intersected a triangle in one in a million

I've taken a class about ray-plane intersection on this: https://www.khanacademy.org/computing/pixar/rendering/rendering-2/v/rendering-5 Suppose we shoot a ray at the scene and this scene contains ...
0
votes
1answer
84 views

Pathtracing - many bounces reduce shadows

I'm creating DXR PathTracer highly influence by Matt Pettineo's one - https://github.com/TheRealMJP/DXRPathTracer ; Relevant HLSL code below: ...
0
votes
1answer
134 views

Importance sampling GGX NDF - fireflies and bright final result

https://schuttejoe.github.io/post/ggximportancesamplingpart1/ - I have problem implementing this method. Somebody asked question about this before ( Can't understand the Importance sampling GGX ) ...
4
votes
1answer
135 views

Deriving radiance from irradiance and intensity

I'm reading PBRT and am stuck in chapter 5.4 about radiometry. In particular: We define the irradiance as the average density flux arriving at a surface with units $\frac{W}{m^2}$. So for a point ...
1
vote
1answer
142 views

Importance sampling a cosine distribution

Let's take a look at this blog article - https://schuttejoe.github.io/post/ggximportancesamplingpart1/ and image presented as a result of implementing it: Inside above link, you can see description ...
3
votes
1answer
181 views

Why does my image has a square pattern in cuda path tracer?

I am writting a path tracer in cuda following the Shirley's book. I am having a square pattern as an output. The size of the block change if I change the block dimensions. For this image, the block ...
1
vote
1answer
139 views

Path tracing - cannot converge diffuse sampling + oversaturation

I'm in process of creating progressive path tracer using DX12 + DXR. I managed to create working raytracing code + pathtracing code with multiple bounces but I'm experiencing problems stated below (...
1
vote
1answer
65 views

Worsening sampling quality of raytracing with increasing distance from world origin

I am using RT shader (DXR) to generate g-buffers with code below. There was no problems with smaller scene (pink room from cwyman tutorial - http://cwyman.org/code/dxrTutors/tutors/Tutor5/tutorial05....

1
2 3 4 5
8