Adriano Aragão dos Santos, E. T. Camargo, R. Scheffel, R. Merli, Eduardo Pezutti, Phyllipe Lima, Heloisa Silva
{"title":"L2T: An Algorithm to Support The Generation of 2D Texture from LaTeX Math Equations","authors":"Adriano Aragão dos Santos, E. T. Camargo, R. Scheffel, R. Merli, Eduardo Pezutti, Phyllipe Lima, Heloisa Silva","doi":"10.1109/SBGAMES56371.2022.9961118","DOIUrl":null,"url":null,"abstract":"Serious or educational games for learning mathematics have in common the representation of mathematical equations during the game. However, the tools available to represent an equation in the Unity platform are paid or proprietary. This work introduces L2T, a free and open-source tool capable of reading a LaTeX mathematical expression and generating an equivalent and suitable texture to be displayed in a game scene. The algorithm is divided into two parts. The first part extracts the tokens from the input and builds the Abstract Syntax Tree (AST), while the latter traverses the AST and renders the final texture. The reference implementation is a Unity Script and can be imported as any regular asset. The L2T is currently being used as part of a project to develop a series of educational and serious mathematical games. It was validated within the game “Math Archipelago”, a treasure hunt genre in which the player has to find hidden treasures while solving math problems. The developed solution is essential for creating diverse games for teaching mathematics.","PeriodicalId":154269,"journal":{"name":"2022 21st Brazilian Symposium on Computer Games and Digital Entertainment (SBGames)","volume":"5 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 21st Brazilian Symposium on Computer Games and Digital Entertainment (SBGames)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SBGAMES56371.2022.9961118","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Serious or educational games for learning mathematics have in common the representation of mathematical equations during the game. However, the tools available to represent an equation in the Unity platform are paid or proprietary. This work introduces L2T, a free and open-source tool capable of reading a LaTeX mathematical expression and generating an equivalent and suitable texture to be displayed in a game scene. The algorithm is divided into two parts. The first part extracts the tokens from the input and builds the Abstract Syntax Tree (AST), while the latter traverses the AST and renders the final texture. The reference implementation is a Unity Script and can be imported as any regular asset. The L2T is currently being used as part of a project to develop a series of educational and serious mathematical games. It was validated within the game “Math Archipelago”, a treasure hunt genre in which the player has to find hidden treasures while solving math problems. The developed solution is essential for creating diverse games for teaching mathematics.