Questions tagged [recursion]
The recursion tag has no summary.
20 questions
1
vote
1
answer
246
views
Octree Query - Frustum Search and Recursive Vector Inserts
Brief
I have spent probably the last year thinking about implementing an Octree data structure into my C++ game engine project for scene management and frustum culling of lights and meshes. Right now ...
0
votes
2
answers
822
views
Recursively find neighbors
I'm making a Bubble Shooter game in Unity. I came to the point where I can hit another bubble and it destroys all of its neighbors.
Now I'm trying to use recursion to destroy all of its neighbors ...
1
vote
2
answers
692
views
Recursively calculate possible pathway on a grid depending on max walk distance
I have a character that is placed on a grid. It has a variable maximum walking distance. Grid fields can be walkable or not walkable. As the character may has to walk around certain not walkable ...
0
votes
2
answers
1k
views
Recursively get all combinations of tiles
Recursively get all combinations of tiles
For a game, I need to calculate all possible combinations of a set of a grid in a 5x5-grid and do some calculations on these.
Some combinations of tiles ...
0
votes
1
answer
174
views
Pathfinding function crashes Unity?
I've been trying to add this pathfinding function to my program, but when I run it, it just crashes. I've read other threads and this might be an infinite loop, but I don't see where it would be other ...
0
votes
2
answers
128
views
Recursive method causes an OutOfMemory error [duplicate]
If a GameObject in my game has a special ability it triggers it, but I want all the special GameObjects that this GameObject affects to also trigger their abilities, for example if a bomb hits some ...
1
vote
1
answer
177
views
Java - Trouble with recursion and rectangle placement
I am using Android API's and using the RectF class for rectangles. I have a list of blocks that are on the screen at one time. Each block is given a random position, and then I go through all of the ...
10
votes
2
answers
1k
views
How to determine if a 3D voxel-based room is sealed, efficiently
I've been having some issues with efficiently determining if large rooms are sealed in a voxel-based 3D rooms. I'm at a point where I have tried my hardest to solve the problem without asking for help,...
3
votes
1
answer
1k
views
Implement Negascout Algorithm with stack
I'm not familiar with how these stack exchange accounts work so if this is double posting I apologize. I asked the same thing on stackoverflow.
I have added an AI routine to a game I am working on ...
14
votes
4
answers
8k
views
How can I implement voxel-based lighting with occlusion in a Minecraft-style game?
I am using C# and XNA. My current algorithm for lighting is a recursive method. However, it is expensive, to the point where one 8x128x8 chunk calculated every 5 seconds.
Are there other lighting ...