SciELO - Scientific Electronic Library Online

 
vol.10 número4Lossless Compression Method for Medical Image Sequences Using Super-Spatial Structure Prediction and Inter-frame Coding índice de autoresíndice de assuntospesquisa de artigos
Home Pagelista alfabética de periódicos  

Serviços Personalizados

Journal

Artigo

Indicadores

Links relacionados

  • Não possue artigos similaresSimilares em SciELO

Compartilhar


Journal of applied research and technology

versão On-line ISSN 2448-6736versão impressa ISSN 1665-6423

J. appl. res. technol vol.10 no.4 Ciudad de México Ago. 2012

 

A Multi-Agent System Approach Applied to Light Raycasting

 

H. Andrade*, F. Ramos, Y. Kotsarenko

 

Tecnológico de Monterrey Cuernavaca, Morelos, México, *humberto.andrade@gmail.com.

 

ABSTRACT

Light and shadows caused by the interaction with objects are important features in computer graphics which are usually taken into account to achieve realistic images. In order to simulate them, some attempts have been carried out which are based on direct illumination classical approaches as shadow mapping and shadow volumes. However, classical approaches in their beginnings could not support semi-transparent objects, soft-shadows, light interactions inside objects and the possibility to update a scene based on previous information.

In this paper a novel shadow casting approach is proposed to solve the previously mentioned problem using an interactive cooperative multi agent system to provide a better understanding and easy customization of the rendered scenes; for instance, the scenes are represented with object agents that propagate rectilinear photon information through them causing several changes on photon properties such as wavelength, intensity, among others. This system uses a two-dimensional space represented by pixels.

Our multi-agent system (MAS) uses a blackboard architecture for storing and sharing data and the implicit invocation design pattern. The system was developed to calculate direct illumination in a two-dimensional space. In addition, the proposed system supports point light agents, opaque agents, semi-opaque agents and empty agents.

A comparison is presented between the classic approaches and the proposed one presented in this work in scenes composed of opaque and semi-opaque objects. The proposed approach, as opposed to the classical ones, allows the shadows to be casted by the light that passes through semi-opaque objects. The light is casted by one or many light agents producing hard and soft shadows.

Keywords: shadows, ray-casting, multi agent system, blackboard.

 

RESUMEN

Luz y sombras causadas por la interacción con los objetos son características importantes en gráficas computacionales para lograr realismo en las imágenes. Para simularlas, se han hecho intentos en enfoques de iluminación directa como lo son shadow mapping y volumes. Sin embargo, éstas no pueden soportar objetos semitransparentes, sombras suaves, interacciones de la luz en el interior de los objetos y la posibilidad de actualizar una escena basada en información previa.

En éste trabajo se propone un novedoso enfoque de generación de sombras para resolver los problemas antes mencionados desarrollados bajo un enfoque de sistema multi-agente cooperativo para una mejor comprensión y una fácil personalización de escenas; como ejemplo, las escenas son representadas con agentes-objeto que propagan la información de los fotones de manera rectilínea entre ellos, causando varios cambios en las propiedades de los fotones como la frecuencia, intensidad, entre otros. Este sistema utiliza un espacio bidimensional representado por pixeles.

Nuestro sistema multi-agente (SMA) utiliza la arquitectura pizarrón (blackboard) para almacenar y compartir datos entre agentes y el patrón de diseño invocación implícita. El sistema fue desarrollado para calcular la iluminación local en un espacio discreto bidimensional. Adicionalmente, el sistema propuesto soporta agentes luz puntual, agente opaco, agente semi-opaco y agente vacío.

Se muestra una comparación entre los enfoques clásicos y la alternativa propuesta utilizando escenas con objetos opacos y semi-opacos. La alternativa propuesta en comparación con los enfoques clásicos permite sombras generadas por la luz al cruzar objetos semi-opacos. La luz es generada por uno o varios agentes luz puntual provocando sombras fuertes o suaves.

 

DESCARGAR ARTÍCULO EN FORMATO PDF

 

References

[1] Williams, Lance. "Casting curved shadows on curved surfaces." (Computer Graphics (Proceedings of SIGGRAPH 78)) 12 (August 1978): 270-274.         [ Links ]

[2] E., CATMULL. A Subdivision Algorithm for Computer Display of Curved Surfaces. PhD thesis. University of Utah, 1974.         [ Links ]

[3] C., Everitt. "Hardware Shadow Mapping." NVIDIA Corporation. andrewd.ces.clemson.edu, 2000.         [ Links ]

[4] Crow, Franklin C. "Shadow algorithms for computer graphics." (ACM Computer graphics) 11 (July 1977): 242-248.         [ Links ]

[5] FUCHS HENR, Z. M. KEDEM AND B. F. NAYLOR. "On visible surface generation by a priori tree structures." In Computer Graphics (SIGGRAPH '80 Proceedings) 14(3) (July 1980): 124-133.         [ Links ]

[6] Woo, Andrew, Pierre Poulin, and Alain Fournier. "A Survey of Shadow Algorithms." (IEEE Computer Graphics & Applications) November 1990: 13-32.         [ Links ]

[7] James, Binn. "Me and my (fake) shadow." (IEEE Computer Graphics) 8 (January 1988): 82-86.         [ Links ]

[8] Daniel Scherzer, Michael Wimmer and Werner Purgathofer. "A Survey of Real-Time Hard Shadow Mapping Methods." EUROGRAPHICS, State of The Art Report, 2010.         [ Links ]

[9] Lokovic Tom, Veach. "Deep shadow maps." (Proceedings of ACM SIGGRAPH 2000, ACM Press) 385-392.         [ Links ]

[10] FUCHS, H., GOLDFEATHER, J., HULTQUIST, J. P., SPACH, S.,AUSTIN, J. D., BROOKS, JR., F. P., EYLES, J. G., AND POULTON, J. "Fast spheres, shadows, textures, transparencies, and image enhancements in pixel-planes." SIGGRAPH Comput. Graph., July 1985: 111-120.         [ Links ]

[11] HEIDMANN, T. "Real shadows, real time." Edited by Inc Silicon Graphics. Iris Universe 18, 1991: 28-31.         [ Links ]

[12] KIM, B., KIM, K., AND TURK, G. "A shadow-volume algorithm for opaque and transparent nonmanifold casters." journal of graphics, gpu, and game tools, 2008: 1-14.         [ Links ]

[13] Randima, Fernando. "Adaptive Shadow Maps." (Computer Graphics (Proceedings of SIGGRAPH 2001), ACM Press) 2001: 387-390.         [ Links ]

[14] Assarsson, Tomas Akenine-Móller & Ulf. "Approximate Soft Shadows on Arbitrary Surfaces using Penumbra Wedges." (Proceedings of the 13th Eurographics Workshop on Rendering) June 2002: 297-306.         [ Links ]

[15] Arie Kaufman, Daniel Cohen & Roni Yagel. "Volume Graphics." (IEEE Computer Society Press) 26 (July 1993): 51-64.         [ Links ]

[16] Drettakis, Marc Stamminger & George. "Perspective Shadow Maps." (ACM Transaction on Graphics) 2002: 557-562.         [ Links ]

[17] Arvo, Jukka. "Tiled Shadow Maps." (Computer Graphics International, IEEE Computer Society) 2004: 204-247.         [ Links ]

[18] Michael Wimmer, Daniel Scherzer & Werner Purgathofer. "Light Space Perspective Shadow Maps." (In proceedings of the Eurographics Symposium on Rendering) 2004: 143-151.         [ Links ]

[19] Tiow-seng, Tobias Martin &. "Anti-aliasing and Continuity with Trapezoidal Shadow Maps." (In proceedings of the Eurographics Symposium on Rendering, Eurographics Association) 2004.         [ Links ]

[20] HASENFRATZ J.-M., LAPIERRE M., HOLZSCHUCH N., SILLION F. "A survey of real-time soft shadows algorithms." In Eurographics , 2003: 753-774.         [ Links ]

[21] Nan LIU, and Ming-Yong PANG. "Shadow Mapping Algorithms: A Complete Survey." Computer Network and Multimedia Technology, January 2009 : 1-5.         [ Links ]

[22] ANDREW WOO, PIERRE POULIN AND ALAIN FOURNIER. "A Survey of Shadow Algorithms." IEEE Computer Graphics & Applications, November 1990: 13-32.         [ Links ]

[23] Michael, Wooldrige. Reasoning about rational agents. Cambridge Massachusetts London, England: The MIT Press, 2000.         [ Links ]

[24] DAVIS, REID G. SMITH AND RANDALL. "Frameworks for Cooperation in Distributed Problem Solving." IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, January 1981.         [ Links ]

[25] E., Bresenham J. "Algorithm for computer control of a digital plotter." (IBM Systems Journal) 4 (January 1965): 25-30.         [ Links ]

[26] Velthuijsen, H. "The Nature and Applicability of the Blackboard Architecture." (Leidschendam: PTT Research) 1992.         [ Links ]

[27] Dong J., Chen S. & Jeng J. "Event-based blackboard architecture for multi-agent systems Information Technology: Coding and Computing." (ITCC 2005) 2 (April 2005): 379-384.         [ Links ]

[28] Markus H, r, Patric L., Christof R. S. and Timo R. "Advanced illumination techniques for GPU-based volume raycasting." Proceeding SIGGRAPH 09 ACM SIGGRAPH 2009 Courses, 2009.         [ Links ]

[29] CHENG, X-W LIU AND K. "Three-dimensional extension of Bresenham's algorithm and its application in straight-line." Proceedings of the Institution of Mechanical Engineers, Part B: Journal of Engineering Manufacture, 2002.         [ Links ]

Creative Commons License Todo o conteúdo deste periódico, exceto onde está identificado, está licenciado sob uma Licença Creative Commons