Advertisement

Grammars and L-systems with applications to vegetation and levels

  • Julian TogeliusEmail author
  • Noor Shaker
  • Joris Dormans
Chapter
Part of the Computational Synthesis and Creative Systems book series (CSACS)

Abstract

Grammars are fundamental structures in computer science that also have many applications in procedural content generation. This chapter starts by describing a classic type of grammar, the L-system, and its application to generating plants of various types. It then describes how rules and axioms for L-systems can be created through search-based methods. But grammars are not only useful for plants. Two longer examples discuss the generation of action-adventure levels through graph grammars, and the generation of Super Mario Bros. levels through grammatical evolution.

Keywords

Production Rule Graph Grammar Digital Game Formal Grammar Grammatical Evolution 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 1.
    Brown, A.: An introduction to model driven architecture (2004). URL http://www.ibm.com/developerworks/rational/library/3100.html
  2. 2.
    Byrne, J., Fenton, M., Hemberg, E., McDermott, J., O’Neill, M., Shotton, E., Nally, C.: Combining structural analysis and multi-objective criteria for evolutionary architectural design. Applications of Evolutionary Computation pp. 204–213 (2011)Google Scholar
  3. 3.
    Chomsky, N.: Three models for the description of language. IRE Transactions on Information Theory 2(3), 113–124 (1956)Google Scholar
  4. 4.
    Dormans, J.: Adventures in level design: Generating missions and spaces for action adventure games. In: Proceedings of the Foundations of Digital Games Conference (2010)Google Scholar
  5. 5.
    Dormans, J.: Level design as model transformation: A strategy for automated content generation. In: Proceedings of the Foundations of Digital Games Conference (2011)Google Scholar
  6. 6.
    Dormans, J., Leijnen, S.: Combinatorial and exploratory creativity in procedural content generation. In: Proceedings of the Foundations of Digital Games Conference (2013)Google Scholar
  7. 7.
    Hemberg, M., O’Reilly, U.: Extending grammatical evolution to evolve digital surfaces with Genr8. In: Proceedings of the 7th European Conference on Genetic Programming, pp. 299–308 (2004)Google Scholar
  8. 8.
    Hornby, G., Pollack, J.: The advantages of generative grammatical encodings for physical design. In: Proceedings of the IEEE Congress on Evolutionary Computation, pp. 600–607 (2001)Google Scholar
  9. 9.
    Lindenmayer, A.: Mathematical models for cellular interactions in development I. filaments with one-sided inputs. Journal of Theoretical Biology 18(3), 280–299 (1968)Google Scholar
  10. 10.
    Ochoa, G.: On genetic algorithms and Lindenmayer systems. In: Parallel Problem Solving from Nature, pp. 335–344. Springer (1998)Google Scholar
  11. 11.
    O’Neill, M., Brabazon, A.: Evolving a logo design using Lindenmayer systems, postscript & grammatical evolution. In: Proceedings of the IEEE Congress on Evolutionary Computation, pp. 3788–3794 (2008)Google Scholar
  12. 12.
    O’Neill, M., Ryan, C.: Grammatical evolution. IEEE Transactions on Evolutionary Computation 5(4), 349–358 (2001)Google Scholar
  13. 13.
    O’Neill, M., Swafford, J., McDermott, J., Byrne, J., Brabazon, A., Shotton, E., McNally, C., Hemberg, M.: Shape grammars and grammatical evolution for evolutionary design. In: Proceedings of the 11th Conference on Genetic and Evolutionary Computation, pp. 1035–1042 (2009)Google Scholar
  14. 14.
    Prusinkiewicz, P., Lindenmayer, A.: The Algorithmic Beauty of Plants. Springer (1990)Google Scholar
  15. 15.
    Rekers, J., Sch¨urr, A.: A graph grammar approach to graphical parsing. In: Proceedings of the 11th IEEE Symposium on Visual Languages, pp. 195–202 (1995)Google Scholar
  16. 16.
    Rozenberg, G., Salomaa, A. (eds.): Handbook of Formal Languages, vol. 3: Beyond Words. Springer (1997)Google Scholar
  17. 17.
    Shaker, N., Nicolau, M., Yannakakis, G.N., Togelius, J., O’Neill, M.: Evolving levels for Super Mario Bros. using grammatical evolution. In: Proceedings of the IEEE Conference on Computational Intelligence and Games, pp. 304–311 (2012)Google Scholar
  18. 18.
    Tsoulos, I., Lagaris, I.: Solving differential equations with genetic programming. Genetic Programming and Evolvable Machines 7(1), 33–54 (2006)Google Scholar

Copyright information

© Springer International Publishing Switzerland 2016

Authors and Affiliations

  1. 1.Department of Computer Science and EngineeringNew York UniversityBrooklynUSA
  2. 2.Department of Architecture, Design and Media TechnologyAalborg University CopenhagenCopenhagenDenmark
  3. 3.AmsterdamThe Netherlands

Personalised recommendations