Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

3D CAR SIMULATION 2023-24

CHAPTER 1
INTRODUCTION

Computer Graphics is one of the most powerful and interesting facets of computers. There is a
lot we can do in graphics apart from drawing figures of various shapes. All video games,
animation, multimedia predominantly works using computer graphics. There are so many
applications of computer graphics, which make it significant. Computer graphics is concerned
with all aspects of producing pictures or images using a computer.

OpenGL is an application program interface offering various functions to implement primitives,


models and images. This offers functions to create and manipulate render lightning, coloring,
viewing the models. OpenGL offers different coordinate systems and frames and also it offers
translation, rotation and scaling of objects.

Using OpenGL functions we can show a 3D model of a car and its function like movement of
wheels and surrounding.

1.1 Objectives

The main aim of the 3D Car Simulation Computer Graphics is to illustrate the concepts and
Usage of the pre-built functions in OpenGL. Simulation is being done using computer graphics.
3D Car Simulation is a project where we can also change the weather and color of the car and
other graphics and we can also move the car in 3D Car Simulation, animate in different directions,
we can demonstrates all the animation of 3D Car including standalone car. A uniform lighting
effect is also included, however it is left to the user to enable or disable lighting. Also, the car can
be zoomed in or zoomed out. All these actions can be performed by using the menu provided.

1.2 Problem Statement

The problem is mainly concerned with modeling a car and highlighting some of the common
features of a car. The car is subjected to many openGL transformations to bring out unique effects
on the car. OpenGL is a software interface to graphics hardware. This interface consists of about
120 distinct commands, which we use to specify the objects and operations needed to produce
interactive 3 dimensional applications. OpenGL has become a widely accepted standard for

Dept. of CS&E, SJMIT,CHITRADURGA page 1


3D CAR SIMULATION 2023-24
developing graphics applications. It can be used to implement several effects. Hence this project
has become more colorful because of the effects implemented using openGL.

1.3 Exiting System

An exiting car system for a 3D car simulation typically involves several components to create a
realistic and functional experience. Here’s a general outline of such a system:

1.3.1 Character Controller

Player Input: Detects user input for exiting the car.

Animation: Triggers the exit animation.

Positioning: Ensures the character is positioned correctly next to the car after exiting.

1.3.2 Car Interaction

Trigger Zones: Defines areas around the car where the exit can be initiated.

Interaction Prompt: Displays a prompt to the player when they are within the exit zone.

1.3.3 Transition Logic

Animation Blending: Smoothly transitions between the car driving animation and the exit
animation.

Camera Transition: Adjusts the camera from the car perspective to the third-person or first-person
view of the character.

Control Handoff: Transfers control from the car to the character controller.

1.3.4 Collision Detection

Environment Interaction: Ensures the character does not collide with the car or other objects when
exiting.

Pathfinding: Guides the character to exit the car safely and realistically.

1.3.5 Audio and Visual Effects

Sound Effects: Adds sounds for the door opening, character movement, etc.

Visual Effects: Includes any special effects like dust, light adjustments, etc.

Dept. of CS&E, SJMIT,CHITRADURGA page 2


3D CAR SIMULATION 2023-24

1.4 Proposed System

System Architecture

➢ User Interface (UI) for input and interaction


➢ Simulation Engine for physics and dynamics
➢ 3D Graphics Engine for rendering
➢ Sound Engine for audio effects
➢ Data Logger for recording simulation data

System Components

➢ Car Model (3D model, physics, and dynamics)


➢ Environment Model (3D model, terrain, obstacles)
➢ Sensor Models (cameras, lidar, radar)
➢ Control Systems (steering, acceleration, braking)

System Features

➢ Realistic car physics and dynamics


➢ High-quality 3D graphics and sound effects
➢ User-friendly interface for input and interaction
➢ Support for various environments and scenarios
➢ Data logging and analysis capabilities

System Requirements

➢ Hardware: high-performance CPU, GPU, and memory


➢ Software: operating system, programming languages, libraries
➢ 3D modeling software for creating car and environment models

System Benefits

➢ Realistic simulation for research, training, and entertainment


➢ Cost-effective and safe testing and training
➢ Improved accuracy and realism
➢ Enhanced user experience
➢ Faster development and prototyping

Dept. of CS&E, SJMIT,CHITRADURGA page 3


3D CAR SIMULATION 2023-24

CHAPTER 2

SOFTWARE AND HARDWARE REQUIREMENTS


2.1 Software Requirements

This document will outline the software design and specification of our application. The
application is a Windows based .Net implementation with OpenGL. Our main UI will be
developed in C#, which is a .Net language. This application will allow viewing of GDS II files,
assignment of Color and Transparency to layers within the VLSI object, as well as printing of the
rendered object. There will be the ability to save these color/transparency palettes for a given GDS
file as well as the foundry used to create the file. These palettes can then be used with future GDS
files to save time assigning colors/transparencies to layers. Characteristics required of the interface
between the software product and each of the hardware components Any mouse and keyboard that
works with Win Forms Program will use windows print APIs to interface with printer.Interface
with other software components or products, including other systems, utility software, databases,
and operating systems.

OpenGL libraries for required are

➢ GLUT library
➢ STDLIB library

The application is very self-contained. Robust error handling will be implemented and code will
be object-oriented to allow for easier maintenance and feature additions. This model runs using
Microsoft Visual Studio version 2010 on a Windows XP platform.

2.2 Hardware Requirements

There are no rigorous restrictions on the machine configuration. The model should be capable of
working on all machines capable of supporting recent versions of Microsoft Visual Studio.

➢ Processor: Intel® Pentium 4


➢ Hard disk Capacity: 80 GB
➢ RAM: 1 GB
➢ CPU Speed: 2.9 GHz
➢ Keyboard: Standard
➢ Mouse: Standard

Dept. of CS&E, SJMIT,CHITRADURGA page 4


3D CAR SIMULATION 2023-24

CHAPTER 3

METHODOLOGY
This program is implemented using various OpenGL functions and user defined functions. First
we need to code a car using C program. There are different module for car coding-front module,
body, window and wheels. This OpenGL function run on code blocks application and Glut
function. First, project planning defines goals, requirements, and scope. Next, 3D modeling creates
car, track, and environment models using software like Blender or Maya. Then, scene setup
establishes the scene hierarchy, camera, lighting, and physics parameters. OpenGL setup
initializes the context, window, and rendering pipeline, loading models and textures. The
simulation loop updates the simulation state, renders the scene, and handles user input. Physics
engine integration simulates car physics using engines like PhysX or Bullet Physics. Sound engine
integration adds sound effects using OpenAL or FMOD. Testing and debugging ensure
functionality and performance, while deployment packages the simulation for distribution on
various platforms. This structured approach enables the creation of realistic and engaging 3D
car simulations.

Dept. of CS&E, SJMIT,CHITRADURGA page 5


3D CAR SIMULATION 2023-24

REFERENCES
[1] A. Best, S. Narang, D. Barber, and D. Manocha. AutonoVi: Autonomous vehicle planning
with dynamic maneuvers and traffic constraints. In Intelligent Robots and Systems (IROS),
2017.
[2] D. H. Biedermann, M. Ochs, and R. Mester. Evaluating visual ADAS components on the
COnGRATS dataset. In IEEE Intelligent Vehicles Symposium, 2016.
[3] C. Chen, A. Seff, A. L. Kornhauser, and J. Xiao. DeepDriving: Learning affordance for
direct perception in autonomous driving. In International Conference on Computer Vision
(ICCV), 2015.
[4] F. Codevilla, M. M¨ uller, A. Dosovitskiy, A. L´ opez, and V. Koltun. End-to-end driving via
conditional imitation learning. arXiv:1710.02410, 2017.
[5] A. Dosovitskiy and V. Koltun. Learning to act by predicting the future. In International
Conference on Learning Representations (ICLR), 2017.

Dept. of CS&E, SJMIT,CHITRADURGA page 6

You might also like