A Mathematical Solution To 2D Light Intensity Calculation
- DOI
- 10.2991/978-94-6463-370-2_56How to use a DOI?
- Keywords
- Game making; Algorithm; Light intensity Calculation; 2D games
- Abstract
With the speedy improvement of the gaming industry, the connection among recreation builders and players has end up increasingly more complex. Within the past, recreation developers regularly faced challenges in rewriting code to ensure compatibility. However, with technological advancements, the growing disparity in tool skills amongst customers has posed problems for builders in growing likeminded functionalities and meeting overall performance necessities. To decorate the immersive revel in in 2D video games, many builders incorporate lighting fixtures rendering engines. The proposed method for constructing the mathematical model involves calculating the distance from each light source to the target point and then determining the influence of each light source on the light intensity of the target point. The calculated values for each light source are added together to obtain the final light intensity of the target point. The Python test had a runtime of 1.69e-05 s. It calculated the light intensity of 720 target points. The maximum frame rate achieved was 60 frames per second at the highest quality setting (90 frames per second maximum). At the default quality setting, the frame rate was 85 frames per second (90 frames per second maximum).
- Copyright
- © 2024 The Author(s)
- Open Access
- Open Access This chapter is licensed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International License (http://creativecommons.org/licenses/by-nc/4.0/), which permits any noncommercial use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
Cite this article
TY - CONF AU - Yiming Chen PY - 2024 DA - 2024/02/14 TI - A Mathematical Solution To 2D Light Intensity Calculation BT - Proceedings of the 2023 International Conference on Data Science, Advanced Algorithm and Intelligent Computing (DAI 2023) PB - Atlantis Press SP - 559 EP - 566 SN - 1951-6851 UR - https://doi.org/10.2991/978-94-6463-370-2_56 DO - 10.2991/978-94-6463-370-2_56 ID - Chen2024 ER -