# thescholar

Member

8

115 Neutral

• Rank
Newbie
1. ## Auto-tile system - algorithm to auto-generate hash table

Yes, I would like to create an auto-tile system by filling it with patterns. for example, the larger the field gets, larger tile patterns are inserted (rather than always repeating 1x1 pattern. So rather than using constantly 32x32 tiles for the middle part of the autotile, I would like to use other patterns like 2x2, 3x3, etc. But I know how complex it is, so I try to ask my questions at the most basic level as possible. And since your keys are 0-255 with no gaps, why do you need a hash table? A 1-d array would serve you just as well...[/quote] It's because the keys are the bit signature for all tile possibilities, so the same tile id can be used for many type of connections depending of the adjacent tiles around the middle tile.

4. ## How to match a 2d pattern in a 2d array?

I'm trying to figure out how it's possible to match a 2D pattern inside a 2D array as shown below; 2D array 1, 0, 0, 1, 0, 1 1, 0, 1, 1, 1, 1 0, 1, 0, 0, 1, 0 1, 0, 1, 1, 0, 1 0, 0, 0, 0, 1, 0 1, 1, 1, 1, 0, 1 2D pattern to be matched 1, 0, 1 0, 1, 0 1, 0, 1 Let's mention that the 2D array can be larger in other contexts. I'm also using 0 and 1 as values, but it could be any other IDs. I just tried to keep my example simple. Anyone know what would be the most efficient and fastest way to match all patterns in the 2d array in a C++ or C# program (or whatever)? It's for a game I'm trying to make. When clicking with the mouse the player set tiles on the grid, so in real-time I need to check if the pattern condition is met each time the player click to change a tile. URLs or tutorials with similar topics would be greatly appreciated. Thank you for your insights!
5. ## Which branch of mathematics teach about pathfinding?

alvaro, I think it's exactly what I was looking for. Thanks a lot. Thanks to you too Alpha_ProgDes.
6. ## Which branch of mathematics teach about pathfinding?

So as the topic title already ask, which branch of mathematics teach pathfinding? I would like to learn more about similar process or topics. I remember having seen a mathematics book with some kind of pathfinding drawings (with nodes), I never could find it again. Thanks for the insights!
7. ## Scripting system, how to make C/C++ interpret Ruby Code

Well, I have a bunch of scripts written in Ruby, and somehow I need C or C++ interpret this code to run it. I've never done this kind of task before, so I feel kinda lost. Anyone can guide me and recommend the proper tutorials, books or websites so I can make a good start? Thank you and have a great week-end!
8. ## NeHe Demo Collection?

Mm, I'm just wondering, there was once a section on NeHe's website with a collection of demos submitted by users, but it doesn't seems to be there any longer. Can we find this section again somewhere? There was lots of interesting demos there to study.