CFP last date
20 January 2025
Reseach Article

ZLang: A Scripting Language for Digital Content Creation Applications

by Mohamed Yousef, Ahmed Hashem, Hassan Saad, Khaled Hussain
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 50 - Number 5
Year of Publication: 2012
Authors: Mohamed Yousef, Ahmed Hashem, Hassan Saad, Khaled Hussain
10.5120/7770-0851

Mohamed Yousef, Ahmed Hashem, Hassan Saad, Khaled Hussain . ZLang: A Scripting Language for Digital Content Creation Applications. International Journal of Computer Applications. 50, 5 ( July 2012), 32-43. DOI=10.5120/7770-0851

@article{ 10.5120/7770-0851,
author = { Mohamed Yousef, Ahmed Hashem, Hassan Saad, Khaled Hussain },
title = { ZLang: A Scripting Language for Digital Content Creation Applications },
journal = { International Journal of Computer Applications },
issue_date = { July 2012 },
volume = { 50 },
number = { 5 },
month = { July },
year = { 2012 },
issn = { 0975-8887 },
pages = { 32-43 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume50/number5/7770-0851/ },
doi = { 10.5120/7770-0851 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2024-02-06T20:47:33.549525+05:30
%A Mohamed Yousef
%A Ahmed Hashem
%A Hassan Saad
%A Khaled Hussain
%T ZLang: A Scripting Language for Digital Content Creation Applications
%J International Journal of Computer Applications
%@ 0975-8887
%V 50
%N 5
%P 32-43
%D 2012
%I Foundation of Computer Science (FCS), NY, USA
Abstract

Digital Content Creation (DCC) Applications (e. g. Blender, Autodesk 3ds Max) have long been used for the creation and editing of digital content (e. g. Images, videos). Due to current advancement in the field, the need for controlled automated work forced these applications to add support for scripting languages that gave power to artists without diving into many details. With time these languages developed into more mature languages and were used for more complex tasks (driving physics simulations, controlling particle systems, or even game engines). For long, these languages have been interpreted, embedded within the applications, lagging the UIs or incomparable with real programming languages (regarding Completeness, Expressiveness, Extensibility and Abstractions). In this paper, we present a high level scripting language (Zlang) and a DCC Engine that addresses those problems. The language can be interpreted, compiled, extended in C/C++ and has a number of constructs, and optimizations dedicated to DCC domain. The engine provides geometric primitives, mesh modifiers, key-framed animation and Physics Simulations (Rigid Body, and Cloth Simulations). The engine is designed and implemented as a library so it can be used alone or embedded.

References
  1. J. K. Hahn, Realistic animation of rigid bodies, SIGGRAPH Comput. Graph. 22 (1988) 299-308.
  2. W. T. Reeves, Particle systems a technique for modeling a class of fuzzy objects, ACM Trans. Graph. 2 (1983) 91-108.
  3. J. K. Ousterhout, Scripting: Higher-level programming for the 21st century, Computer 31 (1998) 23-30.
  4. CGWiki, Maxscript (Apr. 2008). http://wiki. cgsociety. org/index. php/MAXScript
  5. M. R. Wilkins, C. Kazmier, MEL Scripting for Maya Animators, Second Edition (The Morgan Kaufmann Series in Computer Graphics), Morgan Kaufmann Publishers Inc. , San Francisco, CA, USA, 2005.
  6. M. Tigges, B. Wyvill, Python for scene and model description for computer graphics, Proc. IPC 2000.
  7. C. W. Reynolds, Computer animation with scripts and actors, in: Proceedings of the 9th annual conference on Computer graphics and interactive techniques SIGGRAPH '82, ACM, New York, NY, USA, 1982, pp. 289-296.
  8. S. F. May, W. E. Carlson, F. Phillips, F. Scheepers, Al: a language for procedural modeling and animation, Technical report OSU-ACCAD-12/96-TR5, The Ohio State University CSIR (1996).
  9. Nvidia, Physx (2011). http://www. geforce. com/Hardware/Technologies/physx
  10. Autodesk, Maya (2011). http://usa. autodesk. com/maya/
  11. Autodesk, 3ds max (2011). http://usa. autodesk. com/3ds-max/
  12. M. Lutz, Programming python, O'Reilly & Associates, Inc. , Sebastopol, CA, USA, 1996.
  13. Blender Foundation, Blender (2011). http://www. blender. org
  14. Aristid, Lindenmayer, Mathematical models for cellular interactions in development ii. simple and branching filaments with two-sided inputs, Journal of Theoretical Biology 18 (3) (1968) 300 - 315.
  15. P. Prusinkiewicz, A. Lindenmayer, The algorithmic beauty of plants, Springer-Verlag New York, Inc. , New York, NY, USA, 1996.
  16. Y. I. H. Parish, P. Mu:ller, Procedural modeling of cities, in: Proceedings of the 28th annual conference on Computer graphics and interactive techniques, SIGGRAPH '01, ACM, New York, NY, USA, 2001, pp. 301-308.
  17. G. Stiny, Pictorial and Formal Aspects of Shape and Shape Grammars, BirkhauserVerlag, Basel, Switzerland, 1975.
  18. P. Wonka, M. Wimmer, F. Sillion, W. Ribarsky, Instant architecture, ACM Trans. Graph. 22 (2003) 669-677.
  19. P. Mu:ller, P. Wonka, S. Haegler, A. Ulmer, L. Van Gool, Procedural modeling of buildings, ACM Trans. Graph. 25 (2006) 614-623.
  20. J. M. Snyder, Generative modeling for computer graphics and CAD: symbolic shape design using interval analysis, Academic Press Professional, Inc. , San Diego, CA, USA, 1992.
  21. S. Havemann, D. W. Fellner, Generative mesh modeling, Ph. D. thesis (2005).
  22. R. Cartwright, V. Adzhiev, A. A. Pasko, Y. Goto, T. L. Kunii, Web-based shape modeling with hyperfun, IEEE Comput. Graph. Appl. 25 (2005) 60-69.
  23. B. Cutler, J. Dorsey, L. McMillan, M. Mu:ller, R. Jagnow, A procedural approach to authoring solid models, ACM Trans. Graph. 21 (2002) 302-311.
  24. W. T. Reeves, E. F. Ostby, S. J. Leffler, The menvmodelling and animation environment, The Journal of Visualization and Computer Animation 1 (1) (1990) 33-40.
  25. S. Upstill, RenderMan Companion: A Programmer's Guide to Realistic Computer Graphics, Addison-Wesley Longman Publishing Co. , Inc. , Boston, MA, USA, 1989.
  26. K. Perlin, E. M. Hoffert, Hypertexture, SIGGRAPH Comput. Graph. 23 (1989) 253-262.
  27. L. Velho, K. Perlin, L. Ying, H. Biermann, Procedural shape synthesis on subdivision surfaces, in: Proceedings of the XIV Brazilian Symposium on Computer Graphics and Image Processing, SIBGRAPI '01, IEEE Computer Society, Washington, DC, USA, 2001, pp. 146-153.
  28. F. K. Musgrave, C. E. Kolb, R. S. Mace, The synthesis and rendering of eroded fractal terrains, in: Proceedings of the 16th annual conference on Computer graphics and interactive techniques, SIGGRAPH '89, ACM, New York, NY, USA, 1989, pp. 41-50.
  29. R. Szeliski, D. Tonnesen, Surface modeling with oriented particle systems, SIGGRAPH Comput. Graph. 26 (1992) 185-194.
  30. T. Lewis, M. W. Jones, A system for the non-linear modelling of deformable procedural shapes, The Journal of WSCG 12 (2) (2004) 253-260.
  31. K. Perlin, A. Goldberg, Improv: a system for scripting interactive actors in virtual worlds, in: Proceedings of the 23rd annual conference on Computer graphics and interactive techniques, SIGGRAPH '96, ACM, New York, NY, USA, 1996, pp. 205-216.
  32. K. Perlin, Real time responsive animation with personality, IEEE Transactions on Visualization and Computer Graphics 1 (1995) 5-15.
  33. C. Elliott, Modeling interactive 3d and multimedia animation with an embedded language, in: Proceedings of the Conference on Domain-Specific Languages on Conference on Domain-Specific Languages (DSL), 1997, USENIX Association, Berkeley, CA, USA, 1997, pp. 22-22.
  34. J. Cohen, Garbage collection of linked data structures, ACM Comput. Surv. 13 (1981) 341-367.
  35. F. Henglein, Dynamic typing, in: B. Krieg-BrA 1/4ckner (Ed. ), ESOP '92, Vol. 582 of Lecture Notes in Computer Science, Springer Berlin / Heidelberg, 1992, pp. 233-253.
  36. K. Arnold, J. Gosling, The Java programming language (2nd ed. ), ACM Press/Addison-Wesley Publishing Co. , New York, NY, USA, 1998.
  37. M. Ma:ntyla:, An introduction to solid modeling, Computer Science Press, Inc. , New York, NY, USA, 1987.
  38. H. Bendels, D. W. Fellner, S. Havemann, Modellierung der grundlagen - erweiterbaredatenstrukturenzurmodellierung und visualisierungpolygonalerwelten, in: Modeling - Virtual Worlds - Distributed Graphics, infix, 1995, pp. 149-158.
  39. A. H. Barr, Global and local deformations of solid primitives, SIGGRAPH Comput. Graph. 18 (1984) 21-30.
  40. E. E. Catmull, A subdivision algorithm for computer display of curved surfaces. , Ph. D. thesis (1974).
  41. M. Eck, T. DeRose, T. Duchamp, H. Hoppe, M. Lounsbery, W. Stuetzle, Multiresolution analysis of arbitrary meshes, in: Proceedings of the 22nd annual conference on Computer graph-ics and interactive techniques, SIGGRAPH '95, ACM, NewYork, NY, USA, 1995, pp. 173-182.
  42. E. Welzl, Smallest enclosing disks (balls and ellipsoids), in: H. Maurer (Ed. ), New Results and New Trends in Computer Science, Vol. 555 of Lecture Notes in Computer Science, Springer Berlin / Heidelberg, 1991, pp. 359-370.
  43. P. Alliez, S. Pion, dd principal component analysis, in: C. E. Board (Ed. ), CGAL User and Reference Manual, 3rd Edition, 2007.
  44. C. B. Barber, D. P. Dobkin, H. Huhdanpaa, The quickhull algorithm for convex hulls, ACM Trans. Math. Softw. 22 (1996) 469-483.
  45. P. Lindstrom, G. Turk, Fast and memory efficient polygonal simplification, in: Proceedings of the conference on Visualization '98, VIS '98, IEEE Computer Society Press, Los Alamitos, CA, USA, 1998, pp. 279-286.
  46. P. Lindstrom, G. Turk, Evaluation of memoryless simplification, IEEE Transactions on Visualization and Computer Graphics 5 (1999) 98-115.
  47. J. -M. Lien, N. M. Amato, Approximate convex decomposition of polyhedra, in: Proceedings of the 2007 ACM symposium on Solid and physical modeling, SPM '07, ACM, New York, NY, USA, 2007, pp. 121-131.
  48. A. Alexandrescu, Modern C++ design: generic programming and design patterns applied, Addison-Wesley Longman Publishing Co. , Inc. , Boston, MA, USA, 2001.
  49. L. Kettner, 3d polyhedral surfaces, in: C. E. Board (Ed. ), CGAL User and Reference Manual, 3rd Edition, 2007.
  50. L. Kettner, Halfedge data structures, in: C. E. Board (Ed. ), CGAL User and Reference Manual, 3rd Edition, 2007.
  51. D. Burns, R. Osfield, Openscenegraph (osg) (2011). http://www. openscenegraph. org
  52. E. Coumans, et al. , Bullet (2011). http://bulletphysics. org
  53. B. Jacob, Eigen (2011). http://eigen. tuxfamily. org
  54. GNU, Gnu scientific library (gsl) (2011). http://www. gnu. org/software/gsl
  55. GNU, Gnu multiple precision arithmetic library (gmp) (2011). http://gmplib. org
  56. H. Brnnimann, A. Fabri, G. -J. Giezeman, S. Hert, M. Ho mann, L. Kettner, S. Schirra, S. Pion, 2d and 3d geometry kernel, in: C. E. Board (Ed. ), CGAL User and Reference Manual, 3rd Edition, 2007.
  57. INRIA, Open numerical library (opennl) (2010). http://alice. loria. fr/index. php/software/4-library/23-opennl. html
  58. L. Saboret, P. Alliez, B. LA(c)vy, Planar parameterization of triangulated surface meshes, in: C. E. Board (Ed. ), CGAL User and Reference Manual, 3rd Edition, 2007.
  59. J. Siek, L. -Q. Lee, A. Lumsdaine, Boost graph library (bgl) (2011). URL http://www. boost. org/doc/libs/1_47_0/libs/graph
  60. T. J. Parr, R. W. Quong, Antlr: a predicated-ll(k) parser generator, Softw. Pract. Exper. 25 (1995) 789-810.
  61. Google, google-sparsehash (2011). http://code. google. com/p/google-sparsehash
  62. E. Friedman, I. Maman, Boost variant (2011). http://www. boost. org/doc/libs/1_47_0/doc/html/variant. html
  63. H. -J. Boehm, M. Weiser, Garbage collection in an uncooperative environment, Softw. Pract. Exper. 18 (1988) 807-820.
  64. M. Yousef, A. Hashem, H. Saad, K. F. Hussain, Zlang (2011). http://z-lang. sourceforge. net
  65. A. Munshi, Opencl: Parallel computing on the gpu and cpu, ACM SIGGRAPH Tutorial (2008).
Index Terms

Computer Science
Information Sciences

Keywords

Three-DimensionalGraphics and Realism modeling Packages Methodology and Techniques-Languages