Chen Liang Chiplay2023
Chen Liang Chiplay2023
Synthesis Game
Max Chen Shano Liang Gillian Smith
[email protected] [email protected] [email protected]
Worcester Polytechnic Institute Worcester Polytechnic Institute Worcester Polytechnic Institute
Worcester, Massachusetts, USA Worcester, Massachusetts, USA Worcester, Massachusetts, USA
Figure 1: An illustration of stacking transparent AR markers and photos of the Stackable Music application. When multiple
transparent AR markers are stacked and recognized by the camera, the application takes them as input and generates a variation
of jazz.
3 DESIGN
3.1 Music Arrangement
Figure 4: An example of marker interference. In this example,
Music arrangement is an activity in music synthesis that involves two markers have overlapping patterns, causing the stacked
creating and arranging music through computer software or a syn- deck indistinguishable.
thesizer. We explore tangible AR interaction in a trading card game
in which individuals with varying degrees of musical knowledge
can work together to create music. We classify musical expressions each marker causes on the others. Figure 4 shows an example in
into three categories: drums (like claps, kicks, hats, cymbals, and which two markers have overlapping patterns, causing the stacked
rims), instruments (such as bass, guitar, keyboard, and orchestral), marker cannot be distinguished. To bypass the complexity of over-
and vocals. When creating a mix, the guideline is to use no more lapping patterns, a simple solution is to create a set of markers
than one selection from each category. In this work, music samples in which each two of the markers have no interference. Inspired
are collected from free sources online. The selection is purposeful by "orthogonal" markers [33], here we introduce the concepts of
to encompass a variety of styles. "group" and "ring". A group is a set of markers; only markers from
different groups can be stacked together. When groups are allocated
3.2 The Design of Transparent AR Markers distinct territories that do not overlap, stacking markers from differ-
The design of the transparent AR marker uses Custom Marker ent groups will not result in any interference among markers. One
Creator1 , a design tool to create a customized ArUco dictionary. An way to allocate distinct territories is to divide the marker content
ArUco marker is a square marker composed of a black border and an into concentric squares, where each square locates at a different
inner content that determines its identifier through a binary matrix. "radius". As a matter of convenience, we refer to these segments as
Predefined ArUco dictionaries are useful for ease of integration "rings". When the marker’s width is an odd number, the central bit
and robust camera pose estimation. Designing a customized ArUco stands alone. While a single bit might convey minimal information,
dictionary is necessary because combining multiple markers was it can serve as a toggle button. This functionality proves valuable
not considered when the standard ArUco dictionaries were created. in the context of stackable marker mechanics.
For example, as illustrated in Figure 3, stacking ID = 1 and ID = 2 In Stackable Music, we utilized a 7x7 marker template, consisting
from the standard ArUco dictionary creates a pattern that is not of 3 rings and a central square. As illustrated in Figure 6, Each
included in the same dictionary. category (Drum, Instrument, and Vocal) is assigned a unique layer
Customizing an ArUco dictionary starts with indicating the num- and corresponding ring. The central square functions as a Stop-and-
ber of bits in the marker content by determining the dimensions of Play control; audio can only be played when this square is present
the square matrix. Typical matrix dimensions include 5x5, 6x6, and as shown in Figure 7. The area outside the marker is left open for
7x7. The size of the matrix influences the number of identifiable graphic design. In this instance, as seen in Figure 8, we opted for a
markers in the dictionary and the expressive space for individual simple hand-drawn frame with the letter "E" positioned in the top
marker content. left corner to indicate the marker’s front/back side and orientation.
Another restriction in designing stackable transparent AR mark-
ers is marker interference. To ensure the stacked pile of markers is 3.3 Unity Implementation
recognizable, the maximum number of markers and their orienta- We developed Stackable Music AR using Unity. OpenCV for Unity 2
tion are significant factors, as they are related to the interference is a paid Unity plug-in that allows developers to use OpenCV[5],
1 https://jingruchenmax.github.io/StackAR/ 2 https://enoxsoftware.com/opencvforunity/
CHI PLAY Companion ’23, October 10–13, 2023, Stratford, ON, Canada Max Chen, Shano Liang, and Gillian Smith
Figure 5: An illustration of dividing the marker content into Figure 8: A decorative frame surrounds the marker on the
rings. outside.
3.5 Gameplay
The gameplay of Stackable Music involves stacking a subset of
provided transparent markers to create a musical composition, em-
ploying pre-recorded music clips. The primary objective of the game
Figure 7: The audio player and animation will only be trig- is to acquaint players with the distinct features of each music clip
gered when the central square is occupied. and facilitate the generation of harmonious compositions. When
the Stop-and-Play marker is included in the stack which is captured
by the camera, the corresponding music clip will be played and
an open-source computer vision and machine learning software looped. The order in which the markers are stacked does not affect
library, in Unity. OpenCV for Unity was used to detect custom ArUco the outcome. Additionally, if multiple stacked decks of AR markers
code. We implemented audio, 3D model, and particle effects. Once a are observed by the camera, they will be played simultaneously.
marker is detected, the corresponding audio, model, and animation Stackable Music is a solvable game, because the number of mark-
are presented. The concept of decoding a combined marker is shown ers is countable, resulting in finite potential marker combinations.
Stackable Music CHI PLAY Companion ’23, October 10–13, 2023, Stratford, ON, Canada
Figure 10: An example system setup with printed transparent markers and a desktop computer with a top-down camera.
While there isn’t a traditional win-or-lose condition, players will OpenCV demonstrates reasonable performance in this regard. How-
eventually realize they have solved the game by iterating through ever, the accuracy of detection also relies on the design of the mark-
all possible combinations. ers themselves. Traditionally, researchers have computed and tested
To add replayability and uncertainty, Stackable Music is recom- various patterns to determine the optimal set for fiducial marker
mended to be played by multiple players (2-4) in a group. Players systems. However, in the context of supporting stacking mechanics,
can share the music they create with others and seek feedback. custom AR markers are created that may not be fully optimized
for accuracy. To address this, future efforts can be directed toward
4 DISCUSSION, LIMITATIONS, AND FUTURE simulating and predicting the quality of markers within the custom
WORK marker design system. Such simulations would allow designers to
determine the expected accuracy of their marker designs.
Through the design of the technology and prototyping the experi-
Another significant challenge is lighting. While ample lighting
ence of the game Stackable Music, we explore what new expressive
is preferred for camera detection, the transparent film used often
potentials are enabled by this technology, and also identify some
has reflective properties. This becomes problematic for detection
potential future directions for research. The discussion is fueled by
when the light source is either point-like or directional, as it can
reflecting on the transparent AR marker system through the design
create unwanted reflection circles. One potential avenue for future
process, rather than a conducted user study.
exploration involves experimenting with alternative transparent
materials that minimize or eliminate these reflection issues. Addi-
4.1 Low-cost "Do it yourself" (DIY) and tangible tionally, integrating the system with controlled and even lighting
AR sources, such as light boxes, could offer a promising direction for
This work explored the novel stacking mechanics of AR markers mitigating the challenges posed by lighting conditions.
using affordable materials - transparent film sheets. Being tangible
and touchable are important features for an AR starter DIY project. 4.3 Customization and creative coding
The unique interaction of stacking markers is fun and intuitive, An interesting direction is to integrate creative coding functions
which also leads the creators to think about the design affordances with the AR marker so that the music piece or art can be customized.
and limitations of objects. In particular, the marker design aspect To support the creative coding aspect, an implementation of a code-
explicitly requires the designers to think about the size of the marker sharing server could be highly beneficial for the community. This
and the restrictions of marker interference. server would provide a platform for artists to share their code snip-
The prototype requires a certain amount of effort in crafting and pets, techniques, and innovative ideas. This exchange of knowledge
hands-on practice. Aligning the markers when stacking requires and expertise would not only enhance the quality of individual
the edge of each marker to be precisely cut. Currently, the stacked creations but also contribute to the evolution and growth of the
markers need to be precisely aligned, with an acceptable error entire Stackable Music ecosystem.
tolerance of 1-2 mm.
Additionally, the transparent film itself is a great medium for 4.4 Social and community building
artistic expression. The blank space outside of the marker content The gameplay in Stackable Music is similar to a trading card game.
can be designed with decoration or with meaningful information Trading card games encompass a card-based gameplay format that
like themes and marker annotations. Besides graphics, one can combines strategic deck-building elements with card trading me-
think of all kinds of physical shapes, for example, triangles, circles, chanics among players, both during and outside of gameplay. This
or other metaphors that work well with AR content. type of game emphasizes social interaction as a significant aspect
of the overall gaming experience, alongside the card battles them-
4.2 Occlusion, lighting, and reflection selves. AR implementation typically involves showcasing 3D mod-
Occlusion poses a significant challenge for all fiducial marker sys- els, animations, and audio effects to enhance the visual appeal and
tems, as it raises questions about their resilience in detecting partially- immersive nature of the user experience. In addition, our research
covered markers. Currently, the customized ArUco dictionary with takes a distinct approach by placing an emphasis on facilitating
CHI PLAY Companion ’23, October 10–13, 2023, Stratford, ON, Canada Max Chen, Shano Liang, and Gillian Smith
[19] Hirokazu Kato and Mark Billinghurst. 1999. Marker tracking and hmd calibration Gwenn Englebienne, Hamid Aghajan, and Ben J. A. Kröse (Eds.). Springer, Berlin,
for a video-based augmented reality conferencing system. In Proceedings 2nd Heidelberg, 195–199. https://doi.org/10.1007/978-3-642-25167-2_24
IEEE and ACM International Workshop on Augmented Reality (IWAR’99). IEEE, [30] Ihsan Rabbi and Sehat Ullah. 2013. A Survey on Augmented Reality Challenges
San Francisco, CA, USA, 85–94. https://doi.org/10.1109/IWAR.1999.803809 and Tracking. Acta graphica : znanstveni časopis za tiskarstvo i grafičke komu-
[20] Annie Kelly, R. Benjamin Shapiro, Jonathan de Halleux, and Thomas Ball. 2018. nikacije 24, 1-2 (Feb. 2013), 29–46. https://hrcak.srce.hr/102430 Publisher: Acta
ARcadia: A Rapid Prototyping Platform for Real-time Tangible Interfaces. In Graphica d.o.o..
Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems [31] Cassandra Scheirer and Chris Harrison. 2022. DynaTags: Low-Cost Fiducial
(CHI ’18). Association for Computing Machinery, New York, NY, USA, 1–8. https: Marker Mechanisms. In INTERNATIONAL CONFERENCE ON MULTIMODAL
//doi.org/10.1145/3173574.3173983 INTERACTION. ACM, Bengaluru India, 432–443. https://doi.org/10.1145/3536221.
[21] Maren Klimm, Dominik Walczak, and Daniel Ayen. 2019. JumpAR – Augmented 3556591
Reality Platformer. In Extended Abstracts of the Annual Symposium on Computer- [32] Anurag Kumar Singh and Jayesh S. Pillai. 2022. Exploration of inter-marker
Human Interaction in Play Companion Extended Abstracts (CHI PLAY ’19 Extended interactions in Tangible AR. In Proceedings of the 28th ACM Symposium on Vir-
Abstracts). Association for Computing Machinery, New York, NY, USA, 261–266. tual Reality Software and Technology (VRST ’22). Association for Computing
https://doi.org/10.1145/3341215.3358249 Machinery, New York, NY, USA, 1–2. https://doi.org/10.1145/3562939.3565642
[22] Albert H. T. Lam, Kevin C. H. Chow, Edward H. H. Yau, and Michael R. Lyu. 2006. [33] Joao Marcelo Xavier Natario Teixeira, Alexandre de Queiroz Burle, Arthur de
ART: augmented reality table for interactive trading card game. In Proceedings Andrade Almeida, Thiago Buarque de Gusmao Lafayette, Vinicius Lima Ventura,
of the 2006 ACM international conference on Virtual reality continuum and its Vitor Mendes Carvalho, and Veronica Teichrieb. 2022. Towards Transparent
applications (VRCIA ’06). Association for Computing Machinery, New York, NY, Markers. In Symposium on Virtual and Augmented Reality (SVR’21). Association
USA, 357–360. https://doi.org/10.1145/1128923.1128987 for Computing Machinery, New York, NY, USA, 74–83. https://doi.org/10.1145/
[23] Meng Chun Lam, Hwei Kei Tee, Siti Soleha Muhammad Nizam, Nurhazarifah Che 3488162.3488212
Hashim, Nur Asylah Suwadi, Siok Yee Tan, Nazatul Aini Abd Majid, Haslina [34] Yoshiki Yokota, Daiki Fujikura, Yoshito Okada, Kazunori Ohno, Kenjiro Tadakuma,
Arshad, and Sook Yee Liew. 2020. Interactive Augmented Reality with Natural and Satoshi Tadokoro. 2022. HueCode2: An Illumination-Robust Meta-Marker
Action for Chemistry Experiment Learning. TEM Journal 9, 1 (Feb. 2020), 351–360. Overlaying Multiple Fiducial Markers using Optimal Color Scheme. In 2022 IEEE
https://doi.org/10.18421/TEM91-48 Num Pages: 351-360 Place: Novi Pazar, Serbia 18th International Conference on Automation Science and Engineering (CASE). IEEE,
Publisher: UIKTEN - Association for Information Communication Technology Mexico City, Mexico, 583–588. https://doi.org/10.1109/CASE49997.2022.9926583
Education and Science. ISSN: 2161-8089.
[24] Jingya Li, Erik D. van der Spek, Jun Hu, and Loe Feijs. 2019. Turning Your [35] Fabio Zambetta, William Raffe, Marco Tamassia, Florian ’Floyd‚ Mueller, Xi-
Book into a Game: Improving Motivation through Tangible Interaction and aodong Li, Niels Quinten, Rakesh Patibanda, Daniel Dang, and Jon Satterley. 2020.
Diegetic Feedback in an AR Mathematics Game for Children. In Proceedings Reducing Perceived Waiting Time in Theme Park Queues via an Augmented
of the Annual Symposium on Computer-Human Interaction in Play (CHI PLAY Reality Game. ACM Transactions on Computer-Human Interaction 27, 1 (Jan 2020),
’19). Association for Computing Machinery, New York, NY, USA, 73–85. https: 3:1–3:30. https://doi.org/10.1145/3361524
//doi.org/10.1145/3311350.3347174 [36] Xuan Zhang, Jonathan Lundgren, Yoya Mesaki, Yuichi Hiroi, and Yuta Itoh.
[25] Pedro Pablo Lucas. 2019. AuSynthAR: A simple low-cost modular synthesizer 2020. Stencil Marker: Designing Partially Transparent Markers for Stacking
based on Augmented Reality. Zenodo, Porto Alegre, Brazil. https://doi.org/10. Augmented Reality Objects. In 2020 IEEE International Symposium on Mixed
5281/ZENODO.3673011 and Augmented Reality Adjunct (ISMAR-Adjunct). IEEE, Recife, Brazil, 255–257.
[26] Kyzyl Monteiro, Ritik Vatsal, Neil Chulpongsatorn, Aman Parnami, and Ryo https://doi.org/10.1109/ISMAR-Adjunct51615.2020.00073
Suzuki. 2023. Teachable Reality: Prototyping Tangible Augmented Reality with [37] Clement Zheng, Peter Gyory, and Ellen Yi-Luen Do. 2020. Tangible Interfaces
Everyday Objects by Leveraging Interactive Machine Teaching. In Proceedings with Printed Paper Markers. In Proceedings of the 2020 ACM Designing Interactive
of the 2023 CHI Conference on Human Factors in Computing Systems (CHI ’23). Systems Conference (DIS ’20). Association for Computing Machinery, New York,
Association for Computing Machinery, New York, NY, USA, 1–15. https://doi. NY, USA, 909–923. https://doi.org/10.1145/3357236.3395578
org/10.1145/3544548.3581449 [38] Zhiying Zhou, Adrian David Cheok, JiunHorng Pan, and Yu Li. 2004. Magic Story
[27] Leonid Naimark and Eric Foxlin. 2002. Circular data matrix fiducial system and Cube: an interactive tangible interface for storytelling. In Proceedings of the 2004
robust image processing for a wearable vision-inertial self-tracker. In Proceedings. ACM SIGCHI International Conference on Advances in computer entertainment
International Symposium on Mixed and Augmented Reality. IEEE, Darmstadt, technology (ACE ’04). Association for Computing Machinery, New York, NY, USA,
Germany, 27–36. https://doi.org/10.1109/ISMAR.2002.1115065 364–365. https://doi.org/10.1145/1067343.1067404
[28] Yoshito Okada, Daiki Fujikura, Yu Ozawa, Kenjiro Tadakuma, Kazunori Ohno, [39] Fabio Zünd, Mattia Ryffel, Stéphane Magnenat, Alessia Marra, Maurizio Nitti,
and Satoshi Tadokoro. 2021. HueCode: A Meta-marker Exposing Relative Pose Mubbasir Kapadia, Gioacchino Noris, Kenny Mitchell, Markus Gross, and
and Additional Information in Different Colored Layers. In 2021 IEEE International Robert W. Sumner. 2015. Augmented creativity: bridging the real and virtual
Conference on Robotics and Automation (ICRA). IEEE, Xi’an, China, 5928–5934. worlds to enhance creative play. In SIGGRAPH Asia 2015 Mobile Graphics and
https://doi.org/10.1109/ICRA48506.2021.9561783 ISSN: 2577-087X. Interactive Applications (SA ’15). Association for Computing Machinery, New
[29] Roshan Lalintha Peiris, Owen Noel Newton Fernando, and Adrian David Cheok. York, NY, USA, 1–7. https://doi.org/10.1145/2818427.2818460
2011. A Dynamic AR Marker for a Paper Based Temperature Sensor. In Ambient
Intelligence (Lecture Notes in Computer Science), David V. Keyson, Mary Lou Received 2023-06-22; accepted 2023-08-03
Maher, Norbert Streitz, Adrian Cheok, Juan Carlos Augusto, Reiner Wichert,