E N D
By Brett Jones First-Person PacMan
Abstract • The field of 3D computer graphics has been explored quite extensively, and comprises of three major parts: 3D modeling, animation, and 3D rendering. The first part, 3D modeling, refers to creating a 3D representation of an object. Animation, the second part, is moving the object through time. The final part, 3D rendering, is drawing the animated 3D model to the screen. The purpose of this project is to create a 3D, first-person version of the classic PacMan arcade game in order to learn more about the concepts of 3D graphics programming and rendering algorithms. The project will also include a basic AI to control the ghosts, and the 3D rendering will be left to the native Java3D renderer.
Updates • All of the animation functions as it should. • The scene now includes cookies/fruits (see later slide) • The program includes a Radar class that handles: • Radar • provides a 2D top-down view of the scene • Interaction • prevents the Physics class from moving the player through walls • Removes cookies and fruits when eaten • Adds to score when cookies and fruits are eaten
More Status • Animation! • Physics class run method is capped at 75fps • Each animation is designed to take one second (75 frames) to perform, and is split up by the frames (i.e. one piece of the animation is rendered per frame) • Run method keeps track of the current animation as well as the frame the animation started on • Prevents a single animation from running for more than 75 frames • Animation can be interrupted by commanding another animation