%0 Journal Article %T The Implementation of Ray Tracing Algorithm with OpenMP Parallelization %A Noor Alnasser %A Raghad Alabssi %A Batool Faran %A Latifah Alessa %A Naya Nagy %J Journal of Computer and Communications %P 120-130 %@ 2327-5227 %D 2024 %I Scientific Research Publishing %R 10.4236/jcc.2024.121008 %X Ray tracing is a computer graphics method that renders images realistically. As the name suggests, this technique primarily traces the path of light rays interacting with objects in a scene [1], permitting the calculation of lighting and reflecting impact [2]. As ray tracing is a time-consuming process, the need for parallelization to solve this problem arises. One downside of this solution is the existence of race conditions. In this work, we explore and experiment with a different, well-known solution for this race condition. Starting with the introduction and the background section, a brief overview of the topic is followed by a detailed part of how the race conditions may occur in the case of the ray tracing algorithm. Continuing with the methods and results section, we have used OpenMP to parallelize the Ray tracing algorithm with the different compiler directives critical, atomic, and first-private. Hence, it concluded that both critical and atomic are not efficient solutions to produce a good-quality picture, but first-private succeeded in producing a high-quality picture. %K Parallelization %K Ray Tracing %K Parallel Computer Architecture %K OpenMP %U http://www.scirp.org/journal/PaperInformation.aspx?PaperID=130782