Most Popular
1500 questions
19
votes
2 answers
Why are normal maps blue and purple in color?
I am learning about normal mapping. I understood that RGB values are converted into XYZ, but my question is how is it converted and why is the normal map blue and purple in color?

Abhinay Singh Negi
- 313
- 1
- 2
- 5
19
votes
3 answers
Should the alpha channel be gamma corrected
We know that in PNG,BMP,etc... the pixel value stored is not in the linear RGB space. But I found no document saying anything about the alpha channel. Is the alpha channel stored in image files in linear space or not?

Mary Chang
- 651
- 4
- 14
19
votes
3 answers
What are Spherical Harmonics & Light Probes?
What are Spherical Harmonics & Light Probes? How useful are they in computer graphics? What exactly do they do? I've heard the word spherical harmonics & Light Probes everywhere, from siggraph presentations to blog posts.
Recently Matt Pettineo…

Arjan Singh
- 2,511
- 3
- 22
- 38
19
votes
1 answer
Data structures for tile-based (deferred) rendering
Tiled rendering is used in modern mobile GPU architectures to increase the coherency of memory access by subdividing image space into a regular grid of small (e.g., 32x32 pixel) tiles. Information is scarce on the types of data structures used to…

warrenm
- 386
- 1
- 7
19
votes
1 answer
Why is recursion forbidden in OpenCL?
I'd like to use OpenCL to accelerate rendering of raytraced images, but I notice that the Wikipedia page claims that recursion is forbidden in Open CL. Is this true? As I make extensive use of recursion when raytracing, this will require a…

trichoplax is on Codidact now
- 6,292
- 3
- 23
- 69
19
votes
4 answers
How is VR different from a monitor
Apparently Macintosh computers cannot handle the Oculus Rift, because of their 'inferior' graphics cards. But should VR not just be like an external monitor? And concerning computer graphics, how are VR games any different from other games the…

Hans
- 293
- 2
- 6
19
votes
2 answers
What is Tessellation in computer graphics
In recent games I have noticed something called Tessellation, Turning the thing ON destroys my frame rate.
I have noticed that it when turned on it looks like Anti - Aliasing.
Can someone give me further information on what exactly the GPU does.

Anarach
- 293
- 1
- 2
- 6
19
votes
3 answers
Difference between rendering in OpenGL and 3D animation software
With OpenGL and such I can render some pretty amazing looking things in "real time" 60 FPS. However, if I try to make a video of that same scene in let's say Maya, or 3ds Max it would take MUCH MUCH longer for it to render even though it is the…

J.Doe
- 1,445
- 12
- 23
19
votes
3 answers
What's the current state-of-the-art algorithm for ray-tracing height-fields?
There have been lots of papers over the years on different techniques for drawing height-field terrain in a ray-tracer. Some algorithms ray-march the grid directly (or via a quadtree); others transform the terrain into a polygon mesh and use a…

Dan Hulme
- 6,780
- 1
- 16
- 35
18
votes
1 answer
Is there any way to generate primitives in a geometry shader without any input geometry?
A few years ago I tried to implement this GPU Gem in OpenGL to generate 3D procedural terrain using Marching Cubes. The article suggests to implement Marching Cubes in a geometry shader to maximum efficiency. This means I need to run the shader once…

Martin Ender
- 2,730
- 4
- 23
- 45
18
votes
2 answers
GL_STATIC_DRAW vs GL_DYNAMIC_DRAW vs GL_STREAM_DRAW: does it matter?
In OpenGL the buffer object functions (glBufferData, glBufferSubData, and probably a few others) have a parameter usage, described by the documentation as a hint of the intended usage, likely meant to help the implementation yield better…

Julien Guertault
- 4,420
- 2
- 23
- 47
18
votes
1 answer
Progressive Path Tracing with Explicit Light Sampling
I understood the logic behind the importance sampling for the BRDF part. However, when it comes to sampling light sources explicitly, all becomes confusing. For example, if I have one point light source in my scene and if I directly sample it at…

Mustafa Işık
- 417
- 4
- 8
18
votes
1 answer
What does "makeContextCurrent" do exactly?
I am pretty confused about that function. GLFW Context reference says as follow:
This function makes the OpenGL or OpenGL ES context of the specified
window current on the calling thread. A context can only be made
current on a single thread at…

Adrian
- 667
- 8
- 17
18
votes
3 answers
Physically based shading - ambient/indirect lighting
I implemented a physically based path tracer after studying PBRT by M. Pharr and G. Humphreys. Now I'm trying to apply physically based rendering to real time graphics using OpenGL ES (in an iPhone application).
I want to start using Oren-Nayar and…

Fabrizio Duroni
- 537
- 4
- 13
18
votes
1 answer
benefit of perlin noise over value noise
While investigating the inner workings of perlin noise, I wondered why one would use perlin noise instead of simple value noise. As far as I understand it right, the following applies:
Perlin noise is a lattice based noise function, which assigns a…

Timm
- 548
- 3
- 11