Most Popular
1500 questions
7
votes
1 answer
Estimating the area of a triangle-circle intersection
I am trying to implement Ray Tracing with Cones (Amanatides 1984). Instead of rays, cones are shot into the scene and intersected with geometry. Since multiple triangles can occupy the cone's aperture, we need to calculate (or rather quickly…
David Kuri
- 2,293
- 13
- 32
7
votes
2 answers
Estimating real world object distance from photo
I'm not really sure if this is possible but it should be.
I currently have a photo of a sphere, whose radius I've measures physically. Knowing the apparent size of the sphere from the photo and all internal camera parameters is it possible to…
Kronephon
- 243
- 1
- 6
7
votes
1 answer
How to never draw "Jaggies" in the first place considering resolution and scale
Ok, I have a simulation I am trying to make. The entire simulation is drawn by circles (with gl_Point) and rectangles (gl_triangles with indices).
It would be great to add some anti aliasing especially as there scale is usually rather small.
My…
J.Doe
- 1,445
- 12
- 23
7
votes
1 answer
NURBS curve drawing
How to draw a NURBS curve?
Compared with Bezier curve, I just evaluate the Bernstein polynomial, multiply it with control point positions and that's it.
Looking at the "General form of a NURBS curve" paragraph of NURBS Wikipedia page I have a hard…
Ecir Hana
- 1,459
- 11
- 20
7
votes
2 answers
Image rotation using FFT
I'm not sure how practical this might be but is it possible to use Fast Fourier Transform to rotate a raster image?
To be honest, I never really understood FFT, but I saw it being used for JPEG, for example. What I try to say is let's pretend I can…
Ecir Hana
- 1,459
- 11
- 20
7
votes
2 answers
Why not calibrate all display devices to sRGB?
Why do we not calibrate all devices to sRGB in the factory? The assumption is that every monitor is sRGB anyway. So why not calibrate them to that? That would make people see same color as intended on a wide range of devices.
joojaa
- 8,437
- 1
- 24
- 47
7
votes
2 answers
What factors affect which shader language to learn?
I don't know any shader languages. I've heard of GLSL and HLSL, and I'm interested in learning one or both.
Are there significant differences between them that would make one or other better in certain situations? Is it useful to know both or would…
trichoplax is on Codidact now
- 6,292
- 3
- 23
- 69
7
votes
2 answers
How is texture baking implemented?
Suppose we already have UV coordinates assigned for mesh vertices,
how is texture baking implemented?
I guess it will be something like this:
for each coordinate (u, v) in parameter space:
(x, y, z) = inverse(u, v) # Get the geometric space…
TheBusyTypist
- 600
- 3
- 14
7
votes
1 answer
Generation of lower resolution textures
So I have a game and I am trying to fake glow inside of it by using the hardwares capability to downsize textures causing them to blur.
The texture I wish to do this with is in a render buffer that is the size of the screen (not power of two)
What…
J.Doe
- 1,445
- 12
- 23
7
votes
1 answer
Resulting Probabilty Density in Path Tracer for paths using Next Event Estimation
I am trying to implement my own Gradient Domain Path Tracer by following the code of this guy who already implemented it:
https://gist.github.com/BachiLi/4f5c6e5a4fef5773dab1
I already managed to go through various steps but I wanted to do…
Tarta
- 355
- 1
- 12
7
votes
0 answers
Perspective-Correct Texture Mapping
I am working on a small rendering engine for a personal project and I am having issues with the texture mapping part of it.
It seems to work for some cases, but not for others. For example, when one of the vertices is behind the camera, the texture…
neat
- 71
- 2
7
votes
2 answers
Global illumination leading to image variation
I have a 3D scene I use to generate some images which I then process in Matlab. I noticed that when global illumination (GI) is not enabled, rendering always generates exactly the same pixel-for-pixel image (as far as I can tell). However, when I…
user3557985
- 73
- 3
7
votes
2 answers
What is "tiled" raytracing?
I've seen mention of tiled raytracing, but haven't been able to find much on google about it.
Can anyone explain what it is and how it works?
Alan Wolfe
- 7,801
- 3
- 30
- 76
7
votes
1 answer
Calculating intersection of polyline and line
I have a convoluted polyline composed of vertices and straight segments and a separate point that is independent of the polyline. I am trying draw a straight new line from the point at a given angle and determine if the new line intersects the…
Mike Bannister
- 71
- 5
7
votes
2 answers
How does vsync affect fps exactly when not at full vsync fps?
I know that if you turn of vsync, it synchronizes rendering with the vertical redraw cycle to prevent tearing, and that doing so caps your rendering rate (FPS) at the monitor refresh rate, which is commonly 60hz / 60 fps, although other rates exist…
Alan Wolfe
- 7,801
- 3
- 30
- 76