Teaching of image synthesis in functional style

  • Authors:
  • Jerzy Karczmarczuk

  • Affiliations:
  • Université de Caen, France

  • Venue:
  • Proceedings of the 2005 workshop on Functional and declarative programming in education
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

We have taught the 3D modelling and image synthesis for computer science students (Master level), exploiting very intensely the functional style of programming/scene description. Although no pure functional language was used, since we wanted to use popular programmable packages, such as POV-Ray, or the interactive modeller/renderer Blender, scriptable in Python, we succeded in showing that typical functional tools, such as higher-order functional objects, compositions and recursive combinations are useful, easy to grasp and to implement. We constructed implicit and parametric surfaces in a generic way, we have shown how to transform (deform) and blend surfaces using functional methods, and we have even found a case where the laziness, implemented through Python generators, turned to be useful.We exploited also some functional methods for the image processing: creation of procedural textures and their transformation.