Questions tagged [grid]
8 questions
15
votes
1 answer
Is all grid based noise inevitably anisotropic?
I'm interested in how this applies to higher numbers of dimensions too, but for this question I will focus solely on 2D grids.
I know that Perlin noise is not isotropic (direction invariant), and that the underlying square grid shows up enough to…
trichoplax is on Codidact now
- 6,222
- 2
- 22
- 67
14
votes
4 answers
Projected grid water horizon detail
I'm trying to implement an ocean scene with C++ and DirectX11. Currently I have a projected grid, Gerstner waves and a basic shading. My problem is that when I aim my camera horizontally, so I can see the water horizon, in the distance, the…
Gábor Szalóki
- 143
- 5
6
votes
2 answers
In a shader, how to store fragment coordinates in a spatial partitioning from one pass to the next?
I have a post-effect camera-shader in which I want to implement a simple spatial partitioning of the screen between two passes of the fragment shader.
The first pass should divide the screen into cells of size = 30x30 pixels, and then for each green…
blipblop
- 83
- 4
5
votes
1 answer
Is this smaller grid for Poisson disc sampling still correct?
I've seen a number of 2D Poisson disc sampling algorithms online that use a grid to accelerate checking for existing points within the minimum radius [![r][r image]][r link] of a candidate point. For example:
Dev.Mag
mbostock
They use a grid of…
trichoplax is on Codidact now
- 6,222
- 2
- 22
- 67
3
votes
2 answers
Fuse detailed road mesh with regular grid terrain mesh
I am experienced with C++ and know more embedded device related stuff but have absolutely no knowledge of computer graphics and its algorithms.
I would like to get a road mesh (based off of a spline) blended seamlessly into a terrain mesh, which is…
Max
- 31
- 1
3
votes
0 answers
Draw lines angled from 0 to 2 pi in a raster grid
I am trying to draw an angled line in a raster grid.
The idea is to create a function that given a start point, a length and an angle, would give me the pixel positions that combined would give me a line at the specified angle, in a raster grid.
I…
noob
- 31
- 1
1
vote
1 answer
Light Falloff through a grid
I'm playing with a grid-based lighting system, where light is transported and accumulated through a grid. I initially tried attenuation based on 1/(distance*distance), but that doesn't work when the distance between each node is 1.
I tried hacks…
Anthony
- 11
- 1
1
vote
0 answers
RayTracing grid acceleration slowness using motion blur
I'm adding some motionblur feature to my raytracer and I'm using an uniform grid acceleration scheme (it will be updated to bvh later on) to speed up the rendering time.
My problem is that if I have a strong motion blur the grid will need to…
ytrox
- 31
- 5