Most Popular
1500 questions
3
votes
1 answer
Ray-tracing the Cornell Box results in really inconsistent image
So I have a vector of glm::vec3 containing the triangles for the classic Cornell Box called triangles. The Draw method casts a ray for each pixel on the screen and calls ClosestIntersection which returns true or false and updates a struct containing…
swedish_fisk
- 33
- 2
3
votes
0 answers
Strange behaviour of glDisableVertexAttribArray() on devices
In my graphics engine, based on OpenGL ES 2.0 I am using standardized name for shader attributes like it is done in libGDX (such as a_position, a_normal, etc.).
When 'activating' my vertex buffer for drawing, just before I call…
Netherwire
- 275
- 2
- 6
3
votes
1 answer
A question about derivation in oblique view frustum
Problem Description:
Reference:
Oblique View Frustum Depth Projection and Clipping
"Mathematics for 3D Game Programming and Computer Graphics" 3rd edition, chapter 5.6.
M is the original projection matrix.
Plane C is the modified near plane, and…
zombielei
- 121
- 1
- 3
3
votes
0 answers
Template matching subpixel accuracy
I use template matching to detect a specific pattern in image.The shift determined is very shaky. Currently I apply it to R,G,B channel separately and average the result to obtain float values.Please, suggest how to obtain subpixel accuracy. I was…
Nikita Chopra
- 131
- 1
3
votes
1 answer
vertical or horizontal line test
I have a line segment defined by two coordinate values and I need to check if the line segment is parallel to the x-axis or y-axis. I believe that it is not that difficult to find. When it comes to test for parallelism against x-axis, we just need…
sajis997
- 1,209
- 1
- 9
- 13
3
votes
1 answer
How can I use multiple texturing with shadow mapping?
So, recently I followed this tutorial about shadow mapping, but in the tutorial it doesn't texture the object.. When I try to add a texture, it's distorted by the TexGen. Also I've tried to use glActiveTexture() with no success(dunno exactly how…
Bla...
- 451
- 4
- 12
3
votes
1 answer
Choosing & Using a Projection Matrix
I'm looking into the graphics pipeline processes and at the moment in particular, perspective projection matrices.
After looking in several different sources, and across the breadth of previous questions such as How does a projection Matrix work? |…
davidhood2
- 243
- 1
- 11
3
votes
1 answer
What are the most efficient ways to convert between f32 and smaller float formats on the CPU?
Open GL and other graphics APIs support floating point formats smaller than 32 bits (e.g. see https://www.opengl.org/wiki/Small_Float_Formats). While GPUs seem to handle these formats natively, CPUs have limited support (x86 architecture chips can…
user2500
3
votes
0 answers
Shadow Mapping Errors
I recently started to create a shadow mapping system in OpenTK.
I ran into a problem: The depthtexture is always completly white -> no depth. Even if the color from the shader is changed (I know it shouldn't effect anything.).
Here is my shadow…
Flamy
- 31
- 2
3
votes
1 answer
Why does my lighting look incorrect?
I have a problem with lighting calculations.
I am rotating the camera around a cube which was supposed to be illuminated by the light but the resulting lighting is very weird.
Check out the image above, fragment shader and vertex shader…
Ankit singh kushwah
- 791
- 1
- 5
- 19
3
votes
1 answer
culling meshes across mulitple layers
I am implementing foveated rendering. My FBO is divided into 2 layers which are concentric. The first layer covers 1/3 of the Framebuffer whereas the second one covers the rest of the screen. Now I want to avoid rendering meshes in the outer layer…
debonair
- 131
- 3
3
votes
1 answer
VR stereo rendering with Instancing
I have been reading this paper by Timothy Wilson Fast Stereo Rendering for VR
and it would suit our game engine (DirectX 11) to use this method of stereo rendering. I have managed to get the game rendering Instanced and the screen squished into left…
Garry Wallis
- 203
- 1
- 9
3
votes
2 answers
How is Raster and Random Scan Display different?
Raster scan display forms an image with pixel whereas a Random scan display works with Geometric primitives, but even a geometric primitve( a line) is made up of pixels so what is the difference?
pratik watwani
- 31
- 2
3
votes
1 answer
Is there a way to script image creation?
I am facing a though challange - I need to perform repetitive Image formating. Firstly, I need resize picture A so that it has some fixed width in pixels. Then, I need to place picture A in the middle of picture B. I need to perform this task…
uksz
- 133
- 4
3
votes
2 answers
GPU Architecture: What are the theoretical limits on triangle throughput in modern GPUs?
For each of major vendor's latest GPU architectures, is there a clear maximum "triangles/second" bottleneck? If so, what is it architecturally and what is the performance?
user2500