Tagged Questions
3
votes
2answers
170 views
Grids and vertices
I have no idea what this is even called or even to start searching how to solve this problem. So figured I would post here for any information at all. Specially looking for already known solutions to ...
3
votes
1answer
185 views
Fluid Particle Grid
So recently I have been looking at some fluid simulation techniques, specifically Smoothed Particle Hydrodynamics. One of the key components is a grid to avoid O(n^2) searches. I have been having some ...
2
votes
1answer
233 views
Detect if square in grid is within a diamond shape
So I have a game in which basically everything is a square inside a big grid. It's easy to check if a square is inside a box whose center is another square:
*** x
*o* --> x is not in o's ...
2
votes
1answer
661 views
Help with a Fast 2D Grid-Based world rendering technique
First I'm going to give you my current situation and explain what I'm attempting. I will then pose my question below. I will attempt to include a "TL;DR" for those of you who prefer things to be ...
1
vote
1answer
653 views
Displaying a grid based map using C++ and sdl
I am trying to create a roguelike game using c++ and SDL. However, I am having trouble getting it to display the map, which is represented by a 2d array of a tile class.
Currently, my code is this:
...
1
vote
1answer
497 views
terrain grid rendering problem
I'm using DirectX 9 and attempting to write a simple terrain generation object.
I'm running into trouble with the rendering - I'm hoping that this is a common problem, and someone could spot the ...