• 제목/요약/키워드: Graphics accelerator

검색결과 42건 처리시간 0.015초

안드로이드 플랫폼에서 JBox2D 물리 엔진을 이용한 모바일 게임구현 (An Implementation of Mobile Game using JBox2D Physics Engine in Android Platform)

  • 황기태
    • 한국인터넷방송통신학회논문지
    • /
    • 제11권6호
    • /
    • pp.119-126
    • /
    • 2011
  • 물리엔진은 게임에 등장하는 객체들이 실세계의 물리적 법칙을 따라 움직이는 것처럼 시뮬레이션하는 게임엔진의 한 요소이다. 본 논문은 오픈 소스로 제공되는 JBox2D 물리 엔진 라이브러리와 안드로이드 그래픽 API를 이용하여 작성한 모바일 게임의 구현 사례를 소개한다. 본 게임은 Crayon Physics로 알려진 PC 게임의 아이디어를 도입하였다. 이 게임은 사용자 캐릭터와 목표 캐릭터 사이에는 길이 끊어진 상태로 시작되며, 사용자는 끊어진 길을 잇는 다각형 물체를 만들어 사용자 캐릭터가 목표 캐릭터에 도달하도록 해야 한다. 사용자 캐릭터가 목표 캐릭터를 만나게 되면 승리하게 된다. 그러나 캐릭터 및 물체는 중력 등의 물리적 법칙에 지배를 받기 때문에 게임 사용자가 물체의 모양과 만드는 시점 등을 잘 설정해야 한다. 본 논문에서는 PC에는 없지만 모바일 단말기에 있는 LCD 터치와 가속도 센서 등의 다양한 입력 방식을 도입하였다. LCD 터치를 이용하여 사용자가 물체를 임의로 만들 수 있게 하였으며, 단말기를 기울여서 가속도 센서를 작동시켜 물체나 사용자 캐릭터를 이동시키는 방법을 도입하였다.

AMG-CG method for numerical analysis of high-rise structures on heterogeneous platforms with GPUs

  • Li, Zuohua;Shan, Qingfei;Ning, Jiafei;Li, Yu;Guo, Kaisheng;Teng, Jun
    • Computers and Concrete
    • /
    • 제29권2호
    • /
    • pp.93-105
    • /
    • 2022
  • The degrees of freedom (DOFs) of high-rise structures increase rapidly due to the need for refined analysis, which poses a challenge toward a computationally efficient method for numerical analysis of high-rise structures using the finite element method (FEM). This paper presented an efficient iterative method, an algebraic multigrid (AMG) with a Jacobi overrelaxation smoother preconditioned conjugate gradient method (AMG-CG) used for solving large-scale structural system equations running on heterogeneous platforms with parallel accelerator graphics processing units (GPUs) enabled. Furthermore, an AMG-CG FEM application framework was established for the numerical analysis of high-rise structures. In the proposed method, the coarsening method, the optimal relaxation coefficient of the JOR smoother, the smoothing times, and the solution method for the coarsest grid of an AMG preconditioner were investigated via several numerical benchmarks of high-rise structures. The accuracy and the efficiency of the proposed FEM application framework were compared using the mature software Abaqus, and there were speedups of up to 18.4x when using an NVIDIA K40C GPU hosted in a workstation. The results demonstrated that the proposed method could improve the computational efficiency of solving structural system equations, and the AMG-CG FEM application framework was inherently suitable for numerical analysis of high-rise structures.