891 Docx1111
891 Docx1111
CHAPTER 1
INTRODUCTION
Computer graphics are graphics created using computers and more generally, the
representation and manipulation of image data by a computer. The term computer graphics has
been used in a broad sense to describe "almost everything on computers that is not text or
sound".
The development of computer graphics has made computers easier to interact with,
better for understanding and interpreting many types of data. Developments in computer
graphics have had a profound impact on many types of media and have revolutionized
animation, movies and the video game industry.
Data Visualization:
Producing graphical representations for scientific, engineering, and medical data sets
and processes is another fairly new application of computer graphics, which is generally
referred to as scientific visualization. The term business visualization is used in connection
with data sets related to commerce, industry, and other nonscientific areas. Numerical computer
simulations, for example, frequently produce data files containing thousands and even millions
of values. Similarly, satellite cameras and other recording sources are amassing large data files
faster than they can be interpreted. Other visualization techniques include contour plots,
renderings for constant-value surfaces or other spatial regions, and specially designed shapes
that are used to represent different data types.
training applications, special hardware systems are designed. Examples of such specialized
systems are the simulators for practice sessions or training of ship captains, aircraft pilots,
heavy-equipment operators, and air traffic-control personnel. Some simulators have no video
screens; a flight simulator with only a control panel for instrument flying. But most simulators
provide screens for visual displays of the external environment with multiple panels is mounted
in front of the simulator.
Entertainment:
Television productions, motion pictures, and music videos routinely use computer-graphics
methods. Sometimes graphics images are combined with live actors and scenes, and sometimes
the films are completely generated using computer-rendering and animation techniques. Many
TV series regularly employ computer-graphics methods to produce special effects, such as the
scene in Figure from the television series Deep Space Nine. Some television programs also use
animation techniques to combine computer-generated figures of people, animals, or cartoon
characters with the live actors in a scene or to transform an actor’s face into another shape. And
many programs employ computer graphics to generate buildings, terrain features, or other
backgrounds for a scene.
Computer Art:
Both fine art and commercial art make use of computer-graphics methods. Artists now
have available a variety of computer methods and tools, including specialized hardware,
commercial software packages (such as Lumena), symbolic mathematics programs (such as
Mathematica), CAD packages, desktop publishing software, and animation systems that
provide facilities for designing object shapes and specifying object motions. Example: use of a
paintbrush program that allows an artist to “paint” pictures on the screen of a video monitor.A
paintbrush system, with a Wacom cordless, pressure-sensitive stylus, was used to produce the
electronic painting. The stylus translates changing hand pressure into variable line widths,
brush sizes, and color gradations.
Image Processing:
The modification or interpretation of existing pictures, such as photographs and TV
scans, is called image processing. In computer graphics, a computer is used to create a picture.
Image-processing techniques, on the other hand, are used to improve picture quality, analyze
images, or recognize visual patterns for robotics applications.However, image-processing
methods are often used in computer graphics, and computer-graphics methods are frequently
applied in image processing. Typically, a photograph or other picture is digitized into an image
file before image-processing methods are employed. Then digital methods can be used to
rearrange picture parts, to enhance color separations, or to improve the quality of
shadingOpenGL (Open Graphics Library) is a standard specification defining a
crosslanguage,cross-platform API for writing applications that produce 2D and 3D computer
graphics. The interface consists of over 250 different function calls which can be used to draw
complex three-dimensional scenes from simple primitives. OpenGL was developed by Silicon
Graphics Inc. (SGI) in 1992 and is widely used in CAD, virtual reality, scientific visualization,
information visualization, and flight simulation [1].
OpenGL
OpenGL has become a widely accepted standard for developing graphics application.
Most of our applications will be designed to access OpenGL directly through functions in three
libraries. Functions in main GL library have names that begin with the letters gl and are stored
in a library usually referred to as GL.
The second is the OpenGL Utility Library (GLU). This library uses only GL functions
but contains code for creating common objects and simplifying viewing. All functions in GLU
can be created from the core GL library. The GLU library is available in all OpenGL
implementations; functions in the GLU library begin with the letters glu.
The third is called the OpenGL Utility Toolkit (GLUT), which provides the minimum
functionality that should be expected in any modern windowing system.
We are living in a world where good and attractive graphics are more important than
anything, like you have created a working program but if it is not attractive than there is high
probability that less people will use it. Current scenarios are that like if you are playing a game,
the quality of that game is judge on the basis that how good are the graphics of that game.
So, computer graphics are an important part of our day-to-day real life like while playing
games or animations which we see etc. So here what we will be doing is using the basics
function like plotting point we will try to make the whole animation of moving ship without
using any of the inbuilt function for translate or color filling or etc.
● Transportation: One of the primaries aims of a moving ship project is to enable the
transportation of goods, resources, or people across bodies of water.
● Exploration and Research: Ships are instrumental in various scientific and research
endeavors, particularly in the fields of oceanography, marine biology, geology, and climate
research. Moving ship projects can aim to support these endeavors by providing platforms for
conducting research, collecting samples, and monitoring the marine environment.
● Defense and Security: Naval vessels form an essential part of a country's defense and
security infrastructure. Moving ship projects in this context focus on building and maintaining
warships, patrol vessels, and other maritime assets to safeguard territorial waters, support
military operations, and ensure national security.
● Environmental Protection: Some moving ship projects are centered around minimizing
the environmental impact of shipping operations. This includes developing eco-friendly
propulsion systems, reducing emissions, and implementing sustainable practices to preserve
marine ecosystems and mitigate climate change.
Moving ship projects can aim to support these endeavors by providing platforms for conducting
research, collecting samples, and monitoring the marine environment. It's important to note that
the aims of a specific moving ship project can be a combination of these objectives or focus on
a particular area of interest.
CHAPTER 2
REQUIREMENT SPECIFICATION
A software requirement definition is an abstract description of the services which the system
should provide, and the constraints under which the system must operate. It should only specify
the external behavior of the system.
2.2.1 Dependability:
The dependability of a computer system is a property of the system that equates to its
trustworthiness. Trustworthiness essentially means the degree of user confidence that the
system will operate as they expect and that the system will not ‘fail’ in normal use.
2.2.2 Availability:
The ability of the system to deliver services when requested. There is no error in the
program while executing the program.
2.2.3 Reliability:
The ability of the system to deliver services as specified. The program is compatible with all
types of operating system without any failure.
2.2.4 Safety:
The ability of the system to operate without catastrophic failure. This program is user friendly
and it will never affect the system.
2.2.5 Security:
The ability of the system to protect itself against accidental or deliberate intrusion.
GLUT is the OpenGL Utility Toolkit, a window system independent toolkit for
writing OpenGL programs. It implements a simple windowing application programming
interface (API)for OpenGL. GLUT makes it considerably easier to learn about and explore
OpenGL programming. GLUT provides a portable API so you can write a single OpenGL
program that works across all PC and workstation OS platforms.
CHAPTER 3
DESIGN
Data flow design is as shown below - covering the flow of the data in the system. It
describes the relation between user input and the system behavior.
CHAPTER 4
IMPLEMENTATION
To implement the Current system, we have used different functions of our project which are as
follows:
GL_COLOR_BUFFER_BIT, GL_POSITION_BUFFER_BIT,
GL_DEPARTURE_BUFFER_BIT, GL_STOP_BUFFER_BIT.
getPosition(): Retrieves the current position of the ship, usually represented by latitude
and longitude coordinates. The function may return a data structure or object containing
the ship's position information.
calculateDistance(pointA, pointB): Computes the distance between two given points
on the Earth's surface. This function takes latitude and longitude coordinates as inputs
and returns the distance, often using formulas such as the Haversine formula.
calculateETA(destination): Estimates the estimated time of arrival (ETA) at a
specified destination based on the ship's current speed and position. This function may
take into account factors like distance, speed, and possibly weather conditions.
checkCollision(obstacles): Checks if there are any potential collisions with other ships,
obstacles, or land masses based on the ship's current position and course. The function
may receive a list of objects representing obstacles and return a boolean value indicating
whether a collision is imminent.
CHAPTER 5
TESTING
Testing has been conducted as tabulated below.
CHAPTER 6
SNAPSHOTS
CHAPTER 7
CONCLUSION
We are living in a world where good and attractive graphics are more important than anything,
like you have created a working program but if it is not attractive than there is high probability
that less people will use it. Current scenarios are that like if you are playing a game, the quality
of that game is judge on the basis that how good are the graphics of that game. So, computer
graphics are an important part of our day-to-day real life like while playing games or
animations which we see etc. So here what we will be doing is using the basics function like
plotting point we will try to make the whole animation of moving ship without using any of
the inbuilt function for translate or color filling.
BIBILOGRAPHY
Reference Books
[1] Donald Hearn & Pauline Baker: Computer Graphics with OpenGL Version,3rd /
4thEdition, Pearson Education,2011
[2] Edward Angel: Interactive Computer Graphics- A Top-Down approach with OpenGL,5th
edition. Pearson Education, 2008
[3] James D Foley, Andries Van Dam, Steven K Feiner, John F Huges Computer graphicswith
OpenGL: pearson education
Websites
www.opengl.org
www.google.co.in (OpenGLprojects)
www.wikipedia.com www.github.com