Underbase and MicroQR Guide - madesjardins/AiWarmachine GitHub Wiki
Underbase
I call "underbase" the small object that holds the MicroQR code on which a model base rests. It's available as an STL in the AiWarmachine shared Google drive folder. It's a v001, so don't expect too much. I have yet to find a better design, but for now it seems to work and I want to concentrate on the game engine.
No underbase larger than small base has been done at this point but should be coming soon.
MicroQR
Thanks to MicroQR codes, AiWarmachine is able to follow models on the table. It only requires you to lift your model and show the underbase a fraction of a second after movement and it's scaned. Before using MicroQR, I trained a base recognition neural network. I worked a lot to label many images and it seemed like a promising thing, but I needed to label even more images and for me it was just too boring, so I tried to find another solution. Since each MicroQR can be link to anything in the game, it's even better. There's no more front arc in MKIV, but it could have even worked for that.
In the MicroQR folder of the shared Google drive, you'll find pages to print with a ranges, ex: MicroQr_Int_s16_Page_0000_0069.png. You need to download this folder and put it in the "AiWarmachine/images" folder on your computer. This is how I thought of using the different ranges:
- 0000-0999: Small bases
- 1000-1999: Medium bases
- 2000-2999: Large bases
- 3000-3999: Extra large bases
- 4000-4999: Huge bases
- 5000-9999: Special items
If you need to generate more codes, there's a python script in the test folder, here's how to use it in a command prompt or terminal.
If you want to produce a page of MicroQR with values ranging from 0 to 69 encircled by a thin gray line:
python test\generate_micro_qr_code.py 0 --small_base
If you want to produce a page of MicroQR with values ranging from 1000 to 1069 without the circles:
python test\generate_micro_qr_code.py 1000