Conference paper · in Serbian

Generisanje građevina u računarskoj igri „Minecraft” korišćenjem Shap-e modela

Generating structures in the video game “Minecraft” using the Shap-E model

Marko Milenković

16th International Students Projects Conference IEEESTEC, Faculty of Electronic Engineering, University of Niš, November 2023, pp. 173–176. ISBN 978-86-6125-273-0.  Audience Award, 2nd

Also presented at the XXII “Step Into Science” conference, Petnica Science Center.

Objects generated by Shap-E from text prompts (a donut, a penguin, a lego tree, Minecraft Steve, a hypercube) above their voxelised Minecraft counterparts.
Shap-E outputs (top) and the corresponding structures built in Minecraft (bottom), for five text prompts.

Abstract

A practical implementation of the Shap-E model was built as an extension of the computer game Minecraft. The final result is structures generated from a text prompt, with the aim of reducing the time that professional teams of players spend on building projects in the game. The model's STF output (signed distance and texture field) was sampled to build a voxel grid, which was then downsampled to remove anomalies and gaps. All computations and comparisons of colours and textures use the CIE Lab colour space, because it matches human colour perception better and is more linear than RGB. To map colours to blocks, the median cut algorithm finds the colour that best represents each block; this representative colour is used to compute the Euclidean colour distance between the Shap-E object's texture field and the blocks in the game, giving a matching representation of the generated object built from Minecraft blocks. The final result is satisfactory given the limitations of the Shap-E generative model, and demonstrates a practical application of Shap-E.

Translated from the original Serbian below.

Sažetak (original)

Napravljena je praktična implementacija Shap-e modela kao nadogradnja računarske igre „Minecraft”. Konačni rezultati su izgenerisane građevine na osnovu tekstualnog upita, sa ciljem da se smanji količina vremena koju profesionalne ekipe igrača troše na građevinske projekte u ovoj računarskoj igri. Primenjeno je uzorkovanje STF funkcije za pravljenje mreže voxel-a. Nakon toga je urađeno smanjeno uzorkovanje da bi se uklonile anomalije i praznine. Za sva računanja i poređenja vezana za boje i teksture je korišćen CIE lab prostor boja zbog boljeg preklapanja sa ljudskom percepcijom boja i linearnosti u poređenju sa RGB prostorom boja. Da bi se napravilo mapiranje boja na blokove korišćen je median cut algoritam za pronalaženje boje koja najbolje predstavlja blok. Ta predstavljajuća boja se koristi za računanje euklidske distance boja u TF od Shap-e objekta i blokova u igri, time dobijajući podudarno predstavljanje boja Shap-e generisanog objekta unutar igre korišćenjem Minecraft blokova. Konačni rezultat je zadovoljavajući, uzevši u obzir ograničenja Shap-e generativnog modela, i pokazana je praktična primena Shap-e modela.

Cite

M. Milenković, “Generisanje građevina u računarskoj igri ‘Minecraft’ korišćenjem Shap-e modela,” in Proc. 16th International Students Projects Conference IEEESTEC, Niš, Serbia, 2023, pp. 173–176. (In Serbian.) doi: 10.5281/zenodo.24536731

@inproceedings{milenkovic2023minecraft,
  title     = {Generisanje gra{\dj}evina u ra{\v{c}}unarskoj igri
               ``Minecraft'' kori{\v{s}}{\'c}enjem Shap-e modela},
  author    = {Milenkovi{\'c}, Marko},
  booktitle = {Proceedings of the 16th International Students
               Projects Conference IEEESTEC},
  publisher = {Faculty of Electronic Engineering, University of Ni{\v{s}}},
  pages     = {173--176},
  year      = {2023},
  isbn      = {978-86-6125-273-0},
  doi       = {10.5281/zenodo.24536731},
  note      = {In Serbian}
}