A Study of DirectX 11 based 3D Game using Component Method for Code Reuse
In commercial game engines, a method of constructing objects by combining components is often used. Components can be assembled and used at any time as needed. In this paper, the 3D game is developed by applying the component method, which is the object creation method widely used in the commercial game engine, in the DirectX 11 environment. There are four kinds of components used in the in-house 3D game. These are four components such as transform, mesh, script, and collider. The component generation method used in this paper shows very good operation efficiency in terms of reusability. This paper also applied tangent space normal mapping to static and dynamic objects and analyzed performance at various screen resolutions. Performance analysis showed that the average rendering speed was 64.6% higher on the low resolution screen than on the high resolution screen. And the rendering speed of model G with normal mapping to all objects among the 8 simulation models is improved by 19.2% compared with model B without normal mapping. The presence or absence of normal mapping has the greatest effect on rendering speed.