Skip to main content

Questions tagged [debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
57 views

Volumetric Renders become brighter as the focal length changes

Before we start, I have to warn yall, this program was written in VEX. Which is a programming language for Houdini. So it is a language within a 3D software. Its not really meant for this sort of ...
ErikHall's user avatar
  • 121
1 vote
1 answer
65 views

Unexpected behavior when polygon goes off the side of the camera

I've been trying to make a simple rasterizer in JS, and it's working well except for this one bug. (Example) Here is part of the fragment shader, as I believe that's where something is going wrong (If ...
PersonMon's user avatar
1 vote
0 answers
760 views

DX12 Debug Layer doesn't output detailed error information

When I use the CreateGraphicsPipelineState function in DX12, there's an error "E_INVALIDARG One or more arguments are invalid." returned by the function, but there isn't detailed information ...
typpe C's user avatar
  • 11
1 vote
1 answer
2k views

What is this glitch where objects get stretched to infinity?

I've encountered this glitch a few times in various video games and other apps with 3D graphics. It causes things to get stretched all the way to the vanishing point of the scene, usually towards the ...
starleaf1's user avatar
  • 113
1 vote
0 answers
122 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 (...
fakhir's user avatar
  • 131
3 votes
0 answers
116 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 ...
LesChats's user avatar
1 vote
2 answers
648 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 ...
Vectorizer's user avatar
3 votes
1 answer
206 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 ...
Kaan E.'s user avatar
  • 461
3 votes
2 answers
5k views

Debugging tools for OpenGL on macOS

I am porting some code from Metal to OpenGL since we want to run our app on Windows too. Xcode is my preferred IDE, but the newer versions of Xcode do not support any OpenGL debugging. Question: What ...
gndpsingh's user avatar
3 votes
0 answers
353 views

Circular pattern aliasing in voxel ray tracer

I am doing a voxel based raytracer. In other words, I first voxelize the scene using rasterization and I proceed to raytrace the volume in a 3D image to generate a final frame. Currently I noticed ...
Makogan's user avatar
  • 1,726
1 vote
0 answers
542 views

How to properly modify a ray in a raytracer to achieve camera rotation

I am trying to make a particular kind of raytracer, but there is some strange bug occurring when I attempt to rotate the camera. As you can see, there is some important distortion ocurring when the ...
Makogan's user avatar
  • 1,726
8 votes
3 answers
15k views

How to do error handling with OpenGL?

Whenever I make semantic or syntax errors in OpenGL, either I get a black screen or the program crashes. I looked up on internet on how to do error handling in OpenGL and in the documentations I found ...
user8277998's user avatar
1 vote
1 answer
513 views

Should I prefer an AMD or Nvidia GPU for studying graphics programming, especially with respect to vendor specific debugging tools and ecosystem?

My current laptop has a fairly old Intel integrated GPU which was good enough for following simple tutorials. I am now keen on getting to grips with advanced techniques and newer APIs, and so I am ...
usm's user avatar
  • 142
3 votes
2 answers
2k views

How can I chase down VRAM & GTT memory leaks?

Problem. I have inherited a large C++ 3D graphics codebase (with some shader code). The program runs for about 1-5 minutes before crashing. Problem Data. Using system tools, one can see a sharp rise ...
George's user avatar
  • 253
3 votes
0 answers
404 views

GLSL shader debugging [closed]

Is there any tool available for debugging GLSL shaders? I have nvidia geForce 940m GPU which doesn't support Nvidia NSight and RenderDoc is great but it doesn't support GLSL shader debugging. I am ...
videogamechef's user avatar
5 votes
1 answer
254 views

Subtle bugs in Fortune's algorithm implementation

I am in the middle of a process of implementation of Fortune's algorithm for a Voronoi diagram generating on a plane. Here the last C++ debug version. Very rarely I catch (visually) such a bugs: ...
Tomilov Anatoliy's user avatar
3 votes
0 answers
61 views

Compute angles and thereby endpoints in a raster grid?

I am at the moment having some issues with computing an endpoint in a raster grid that is also a valid position in a graph. I am trying to draw a line between these two points, but as the point I am ...
Bob Burt's user avatar
  • 183
72 votes
6 answers
52k views

How can I debug GLSL shaders?

When writing non-trivial shaders (just as when writing any other piece of non-trivial code), people make mistakes.[citation needed] However, I can't just debug it like any other code - you can't just ...
Martin Ender's user avatar
  • 2,730
18 votes
3 answers
6k views

How can I debug what is being rendered to a Frame Buffer Object in OpenGL?

I have a point cloud that is being rendered to the screen. Each point has its position and color as well as an ID. I was asked to render the IDs for each point to a texture so I created a FBO and ...
BRabbit27's user avatar
  • 969