• Title/Summary/Keyword: Dynamic Light Shader

Search Result 2, Processing Time 0.014 seconds

Design of Action Game Using Three-Dimensional Map and Interactions between In-Game Objects

  • Kim, Jin-Woong;Hur, Jee-Sic;Lee, Hyeong-Geun;Kwak, Ho-Young;Kim, Soo Kyun
    • Journal of the Korea Society of Computer and Information
    • /
    • v.27 no.12
    • /
    • pp.85-92
    • /
    • 2022
  • In this study, we aim to design an action game that increases the user experience. In order to increase the immersion of the game, the characteristics of the game used by the user were analyzed, and the systemic and visual characteristics of the game were designed with reference to each characteristic. The proposed method uses Unity 3D to implement an interaction system between objects in the game and is designed in a way that allows users to immerse themselves in the game. To induce immersion through the visual elements of the game, 2D objects and players are placed in a 3D space, and a 2D dynamic light shader is added. It is composed of inter-combat rules and monster behavior pattern collision detection and event detection. The proposed method contained the user experience with the implementation thesis, and showed the game's possibility of leading the user's affordance.

GPU-based dynamic point light particles rendering using 3D textures for real-time rendering (실시간 렌더링 환경에서의 3D 텍스처를 활용한 GPU 기반 동적 포인트 라이트 파티클 구현)

  • Kim, Byeong Jin;Lee, Taek Hee
    • Journal of the Korea Computer Graphics Society
    • /
    • v.26 no.3
    • /
    • pp.123-131
    • /
    • 2020
  • This study proposes a real-time rendering algorithm for lighting when each of more than 100,000 moving particles exists as a light source. Two 3D textures are used to dynamically determine the range of influence of each light, and the first 3D texture has light color and the second 3D texture has light direction information. Each frame goes through two steps. The first step is to update the particle information required for 3D texture initialization and rendering based on the Compute shader. Convert the particle position to the sampling coordinates of the 3D texture, and based on this coordinate, update the colour sum of the particle lights affecting the corresponding voxels for the first 3D texture and the sum of the directional vectors from the corresponding voxels to the particle lights for the second 3D texture. The second stage operates on a general rendering pipeline. Based on the polygon world position to be rendered first, the exact sampling coordinates of the 3D texture updated in the first step are calculated. Since the sample coordinates correspond 1:1 to the size of the 3D texture and the size of the game world, use the world coordinates of the pixel as the sampling coordinates. Lighting process is carried out based on the color of the sampled pixel and the direction vector of the light. The 3D texture corresponds 1:1 to the actual game world and assumes a minimum unit of 1m, but in areas smaller than 1m, problems such as stairs caused by resolution restrictions occur. Interpolation and super sampling are performed during texture sampling to improve these problems. Measurements of the time taken to render a frame showed that 146 ms was spent on the forward lighting pipeline, 46 ms on the defered lighting pipeline when the number of particles was 262144, and 214 ms on the forward lighting pipeline and 104 ms on the deferred lighting pipeline when the number of particle lights was 1,024766.