Most Popular

1500 questions
3
votes
1 answer

glClear's result can't be seen when using bindless texture

In my program, I use a additional frame buffer to render something into a texture(only a glClear), which I will reference it's handle in next draw command. And draw the texture back to the default frame buffer. My program almost run like this: frame…
Francis
  • 165
  • 4
3
votes
1 answer

procedurally generating a texture overlay simulating shrink wrap

I'm looking for a way to procedurally create a realistically looking texture overlay simulating the object being shrink wrapped. It is only used to be added to single images, so it does not need to behave correctly in an animation with changes of…
3
votes
0 answers

Strange behaviour in simple software rasterizer

I have a simple test scene setup in a toy software rasterizer. I have a plane facing the +Z axis at the origin and the camera is facing -Z at Z=2. Everything works fine and looks good at that orientation but if I turn the camera to face -X it …
3
votes
1 answer

How is Iridescence handled in a Path Tracer?

I have little knowledge of this topic but from what I gather in a Ray Tracer each ray is given its own wavelength as opposed to an RGB value. This automatically simulates Dispersion and Fluorescence. Is this called Spectral Rendering? What are the…
Arjan Singh
  • 2,511
  • 3
  • 22
  • 38
3
votes
1 answer

Convex non simple polygon?

Existence question: Can there exist a convex polygon witch is not a simple polygon?
Mindau
  • 133
  • 4
3
votes
2 answers

Suggested image preprocessing before applying threshold

I am trying to vectorize the contours (skewed rectangle) of the TV in the following original image. My first step is applying threshold. Tried selection of threshold values based on what skimage has to offer, but non of them managed (for example)…
dux2
  • 131
  • 1
3
votes
1 answer

Why do games only allow certain resolutions?

Only a few games have resizable windows when running in full screen mode. All others have a finite fixed set of allowed resolutions. But why? I see some reasons, but none of them seems to be that important to me that would justify such a…
piegames
  • 297
  • 1
  • 9
3
votes
1 answer

Determining the 'outer' subpath in a compound SVG path

The following four SVG paths render the same (using the default fill-rule="nonzero"):
Phrogz
  • 195
  • 1
  • 6
3
votes
1 answer

Store 3d coordinates in a 2d image?

How can i store the X,Y,Z vertex points of a mesh into a 2d image, such that reading the image pixel values will correspond to the 3d coordinates? is it possible to just store x, y, values on a grid and use the Z value as an intensity value?
3
votes
1 answer

Rotation matrix for a 3D object in space

This is the follow-up question from here: Minimum requirements to uniquely represent a 3D object in space Assume I have 3 original points in a 3D object (in 3D space) as A1=, A2=, and A3= (assume we have all the…
angel_30
  • 229
  • 1
  • 9
3
votes
2 answers

An algorithm to find the area of intersection between a convex polygon and a 3D polyhedron?

Suppose I have a set of points in 3D which are all co-planar, and which describe the vertices of a convex polygon. I know the coordinates of all of these vertices, I know the unit normal to the plane of the polygon, and I know the order (in a…
John Barber
  • 131
  • 3
3
votes
1 answer

Screen Space Ambient Occlusion Issues

I'm having problems with Ambient Occlusion. I've tried to follow both John Chapman's improvements over the Crytek AO and LearnOpenGL's tutorial of it when I failed to properly obtain the correct result. https://i.stack.imgur.com/fhm8V.jpg As the…
3
votes
1 answer

GLSL function parameters

In GLSL: Common Mistakes it states: Functions parameters must be declared with the in, out, or inout qualifiers. but I have never declared function parameters with in, out, or inout qualifiers and I have never run into any problems. Could this be…
Archmede
  • 481
  • 2
  • 7
  • 21
3
votes
0 answers

Mathematics of Sub Surface Scattering

Can somebody help explain the mathematics of Sub Surface Scattering in a Path Tracer based on the Diffuse Approximation in A Practical Model for Subsurface Light Transport ? I would like someone to explain the mathematics a little more clearly (why…
Arjan Singh
  • 2,511
  • 3
  • 22
  • 38
3
votes
0 answers

Recreating a font from a low-quality printout

I have a JPEG file with a 200 dpi scan of a sample printout from a badly maintained old drum printer. I was able to segment it and to collect all instances of each letter together, for example I would like to recreate its font; as the first step…
Leo B.
  • 141
  • 5