Most Popular
1500 questions
3
votes
1 answer
How does the Waves class in the book Introduction to 3D Game Programming with DirecX11 work?
I'm confused by the Waves class implementation in the source code of the book Introduction to 3D Game Programming with DirecX11:
float d = damping*dt+2.0f;
float e = (speed*speed)*(dt*dt)/(dx*dx);
mK1 = (damping*dt-2.0f)/ d;
mK2 =…

Cu2S
- 167
- 4
3
votes
4 answers
Clashes when combining openGL and GUI
For the fun of it, I've taken up a task of writing a level editor for a voxel game.
The idea is to have window that contains two main components. First component is openGL viewport placed in lower left or right corner of the window (or anywhere,…

Karlovsky120
- 231
- 2
- 8
3
votes
0 answers
What aspects of GPU architecture are computer graphics programmers expected to be intimately familiar with?
I am an aspiring CG programmer and would like to know what some of the more nuanced aspects of computer architecture are.
I have already taken several introductory arch courses where we've covered things like cache levels, basic multi-staged…

RomanLarionov
- 31
- 5
3
votes
2 answers
What are the advantages of having two chroma channels and a luma channel vs. three chroma channels?
RGB has the advantage over schemes like YPBPR in that it's more intuitive to understand, so why use the latter? The only advantage I can think of right now is that it allows you to encode greyscale images more easily. Is this the reason, or are…

Legend of Overfiend
- 31
- 1
3
votes
1 answer
NormalMap problems: bumps work, but shade does not
I've been trying to figure this out for a few days now, but I just can't get it right. I've read multiple tutorials and possible explanations, I even watched a java tutorial without finding the solution. This is what I do:
First I build the tangent…

Charlie
- 203
- 1
- 7
3
votes
0 answers
How does the depth range test in Rauwendaal & Bailey's voxelisation algorithm work?
I am trying to implement Rauwendall and Bailey's Conservative Voxelization algorithm in a compute shader (Section 7)(page 20/34).
This algorithm is similar to Schwarz & Seidel's, in that it orthogonally projects a triangle into a plane (aligned with…

sebf
- 163
- 3
3
votes
0 answers
How can i achieve reflections like this?
I was in my elevator when i saw this...
As you can see here that reflections are kind of stretched. What causes this? And how can we achieve something like this in computer graphics?

videogamechef
- 821
- 1
- 6
- 19
3
votes
2 answers
Phong: Real-time rendering of Metal and Plastic Materials
Using a shader that works like Phong, what would be the difference between painted Metal and plastic?
I seem to remember reading in books years ago, that I no longer have access to, the following:
Specular color for painted metal is same color as…

Invariant
- 133
- 7
3
votes
2 answers
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 in VRAM memory usage after the program launches,…

George
- 253
- 1
- 4
3
votes
1 answer
The constructor of hyperboloid in pbrt-v3
The book omitted the explanation of the constructor of hyperboloid.
Could someone give some explanations about:
Why the arguments are two points?
What are the meanings of ah and ch?
Why is there a while loop?

chaosink
- 591
- 1
- 4
- 15
3
votes
1 answer
What metrics are used for deciding if a 3D object is visible?
I'm wondering what metrics I could use to decide upon the visibility of a 3D object in VR or other 3D applications and what advantages each has.

Alex
- 163
- 5
3
votes
1 answer
How to send shadow rays to window light source with glazing
For rendering an indoor scene where light source is skylight coming in through
the window opening, one can consider the window polyline as the light
source, with the sky distribution, in direct lighting calculation. And sample
the window area(or…

ali
- 740
- 4
- 14
3
votes
0 answers
Calculate Camera parameters and HandEyeCalibration
I'm trying to calculate camera paramters and a hand eye calibration (Transformation from camera to eye (display) coordinates) for rendering on a see-through HMD.
I have already calculated a Projection matrix P (using SPAAM) which transforms points…

user2479595
- 131
- 1
3
votes
1 answer
Why are RGB tertiary colors so similar to RGB primary colors?
I was suprised to learn that RGB tertiary colors are much more similar to RGB primary then secondary colors.
I was expecting they will be halfway between them and look more like this:
Rather then this:
Is there a reason/purpose for this…

user6187
- 31
- 1
3
votes
1 answer
Calculate a rotation around an arbitrary axis
Suppose I have two 3D triangles before & after a single rotation around an unknown axis.
How would I go about finding this axis?

ginsunuva
- 123
- 3