# All Questions

2,819 questions
Filter by
Sorted by
Tagged with
0answers
18 views

### What modern C++ Unit Testing Framework do you use for highly parallel image, 3D and higher dimensional matrix processing workloads?

Most of the existing open-source libraries such as OpenCV, Tensorflow, and Pytorch use Google Test. I would like to know about strong alternative testing frameworks that thrive under a similar ...
2answers
14 views

### BC7 texture with alpha has the same size as BC7 without alpha

So i've a made a texture. I've saved the RGB one with BC7 compression, then added alpha channel[specular map] with varying levels of grayscale, and saved the file again as RGBA with BC7 compression. ...
0answers
14 views

### How to transform x-y-z red-green-blue arrows and draw them on 2D screen?

I'm making a raytracer and want to print debug arrows Blender example: Old version of 3d max: How do I do the same having camera forward, up and right vector? I think I need some kind of matrix ...
0answers
27 views

### Implementing monte carlo path traced refractions problem

I am writing a forward monte carlo path tracer with the added feature of specular refractions for transparent materials, I have managed to come this far but something is not quite right and I am ...
0answers
35 views

### Best practice for managing many shaders and merging multiple shaders into one?

I have managed to greatly minimize draw calls on my recent project, but as I'm adding more shaders, I see that I have to switch more times and that is causing a lot of draw calls. What is the best ...
2answers
68 views

### Why does the red color channel lose the most details during jpeg compression

I have an e-commerce website dealing with flowers and cakes. We get our photoshoot done inhouse and also the post-shoot editing of images. While we upload them on the website all images go through the ...
0answers
32 views

### An equation about PDFs and differentials in the book of pbrt-v3

Why does the equation at the bottom of the following page hold? http://www.pbr-book.org/3ed-2018/Monte_Carlo_Integration/Transforming_between_Distributions.html \$p(\theta,\phi)d\theta d\phi=p(\omega)...
0answers
27 views

### HSI color space and RGB color space relationship in Steganography

I need to embed text in an image, research papers say HSI produces better mse and psnr therefore are better for steganography. I have RGB values(69,223,90) and its corresponding HSI is (127.223,0.458 ,...
0answers
45 views

### Groupshared memory and parallel reduction over multiple kernel dispatch

I am doing some parallel reduction and mostly following these nVidia slides. However they are not very detailed in places or I might be missing/misunderstanding something. Edit 2: While I figured ...
1answer
33 views

1answer
40 views

### Is it viable to create computer graphics via terrain scanning?

Couldn't find any resources on this, so I'll ask here. For example, I want to create a game model of a mountain peak. I took lots and lots of drone footage, almost from every side, photography ...
0answers
48 views

### UE 5 - How does Nanite work?

From the UE5 revelation video: There are over a billion triangles of source geometry in each frame, that Nanite cruches down losslessly to around 20 million drawn triangles. How does this work? ...
0answers
22 views

### What technique should I use to animate a summer picture to its winter version: linear interpolation, or opacity?

I've used a CycleGAN to generate the winter version from a summer picture (https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix). An example of the output can be seen in the top right corner: ...
0answers
11 views

### UV coordinates along stroke / edge of object

I'd like to write a shader that works like the UV Along Stroke node from Blender. Basically, I need UV coordinates that follow the edge of an object and wrap. For clarity, I know how to do edge ...
1answer
25 views

### How to convert from XYZ or sRGB to ACEScg/AP1

I'm confused about how to properly convert from sRGB or XYZ color space to ACEScg. Specifically whether I have to account for differences in white point explicitly. The aces github page gives the ...
1answer
36 views

### Early depth test in WebGL

I understand that in OpenGL early depth test can be performed in the rasterizer (before running the fragment shader), but is it the same case for WebGL? If so, how is early depth test enabled in WebGL?...
1answer
48 views

### Ray Tracing Bounding Volume Hierarchies nodes

I'm new to computer graphics programming so I apologize in advance if my question is stupid. I'm trying to implement a BVH for my ray tracer and I looked at some lectures explaining BVH. They all ...
1answer
29 views

### Calculate BRDF and PDF when doing direct light sampling

I learned in PBRT that to sample direct lighting for a surface a integrator usually calculates the sample as $$Sample = \frac{L_d(p,\omega_r) f(p,\omega_o,\omega_r)|cos\theta_i|}{p(\omega_r)}$$ ...
1answer
26 views

### Is it possible to decode and play e.g. 60fps video as 30fps, if computer is too slow for 60fps?

I am wondering this, as e.g. YouTube offers some videos 60fps, but computer may be too slow to play them.
2answers
48 views

### Weird patch on reflective spheres on planes in raytracer

I am writing a small raytracer in python , everything was working fine but when i implemented plane geometry then the reflective spheres are getting weird patches on lower bottom. image below: I ...
1answer
20 views

### OpenGL Render front and back faces with different shading for 3d modeller

I'm working on a simple 3d modeller and I would like to render the back facing triangles a bit darker, to easier differentiate between front and back faces. Like you can see in most modelling ...
1answer
39 views

### chess-like rectangles on the mesh

I am new to concepts in CG. What are the red and white rectangles trying to represent in the following screenshot? The image is from the paper "MoSh: Motion and Shape Capture from Sparse Markers".
1answer
27 views

### Do we have OpenGL shaders write out the intermediate *.o-esque file on first compile so that we can skip compiling them in run-time every single time?

Shaders get compiled during runtime every single time an app starts. I understand the reasoning for this is that there are so many GPU architectures out there that it does not make sense to ship pre-...
0answers
21 views

### How to filter a photo to look like a cartoon / anime?

I am interested in reverse engineering a video effect, that is composed of different parts. I'll try to split it into different questions as advised on StackExchange Meta. Part 1: TV-Noise effect ...
1answer
85 views

### When do people need to work directly with a graphical API (eg: Direct3D) instead of using already made software?

I had this doubt in my head for several months and have been unable to find an answer anywhere on internet. I know what OpenGL, DirectX, Vulkan, Metal, etc... are, I already know what they are used ...
0answers
13 views

### Create a TV noise effect

I am interested in reverse engineering a video effect, that is composed of different parts. I'll try to split it into different questions as advised on StackExchange Meta. This is the example image: ...
0answers
19 views

### Generate hardcoded texture data to pass to shaders

I'm trying to manually create a color data to load as a texture with OpenGl for learning purposes. I created an unsigned char array consisting of 4 pixels with 3 ...
1answer
96 views

### Prove radiance contributions of deeper paths fade away

When ray tracing, I find it intuitively clear that deeper paths have a lower contribution to the overal picture than shorter paths. This is the main reason why it is generally okay to render a picture ...
0answers
18 views

### Birectional path tracing - connection of paths

I have a few questions about setting up a bidirectional path tracer described by Veach here. I have created both an eye path and a light path. Both are using BRDF for calculating how much light can ...
0answers
44 views

### What fast algorithms can generate not-realistic but quite handsome animated landscapes?

I was looking for algorithms that quickly compute quite nice realistic, or not realistic, animated landscapes, in video format ("animated" = the camera moves, or the water is animated, etc.) But all I ...
0answers
40 views

### Why is my ray caster is running much faster as a fragment shader compared to a compute shader

I'm trying to write a simple ray caster in OpenGL with C++. Previously, I have been using the fragment shader of a quad that covers the entire screen to do all the ray calculations. Now, I want to do ...

15 30 50 per page