Professional Documents
Culture Documents
1.1 Introduction To Computer Graphics: Multiplex Theatre
1.1 Introduction To Computer Graphics: Multiplex Theatre
CHAPTER 1
INTRODUCTION
To draw a picture say, bus moving on the road. Suddenly will get an idea to use paint,
but the degree of accuracy, quality of image is not satisfied and become very sad. There is
no need to worry, for every problem there will be a solution, so this problem of creating fish
moving inside the water can be solved using COMPUTER GRAPHICS without any
difficulties.
Computer Graphics become a powerful tool for the rapid and economical production of
pictures. There is virtually no area in which Graphical displays cannot be used to some
advantage so it is not surprising to find the use of CG so widespread.
Although early application in engineering & science had to rely on expensive &
cumbersome equipments, advances in computer technology have made interactive computer
graphics a practical tool.
Now it can be answered about computer graphics as generalized tool for drawing and
creating pictures and simulates the real world situations within a small computer window.
1.2 History
William fetter was credited with coining the term Computer Graphics in 1960, to
describe his work at Boeng. One of the first displays of computer animation was future world
(1976), which included an animation of a human face and hand-produced by Carmull and
Fred Parkle at the University of Utah.
There are several international conferences and journals where the most significant
results in computer-graphics are published. Among them are the SIGGRAPH and Euro
graphics conferences and the association for computing machinery (ACM) transaction on
Graphics journals.
Nowadays Computer Graphics used in almost all the areas ranges from science,
engineering, medicine, business, industry, government, art, entertainment, education and
training.
Computer Aided Design methods are routinely used in the design of buildings,
automobiles, aircraft, watercraft, spacecraft computers, textiles and many other applications.
Another major application area presentation graphics used to produce illustrations for
reports or generate slides. Presentation graphics is commonly used to summarize financial,
statistical, mathematical, scientific data for research reports and other types of reports.2D and
3D bar chart to illustrate some mathematical or statistical report.
CG methods are widely used in both fine art and commercial art applications. Artists
use a variety of computer methods including special purpose hardware, artist’s paintbrush
program (lumena), other pain packages, desktop packages, mathematical packages,
animation packages that provide facility for designing object motion. Ex: cartoons design is
an example of computer art which uses CG.
1.3.4 Entertainment
Computer graphics methods are now commonly used in making motion pictures,
music, videos, games and sounds. Sometimes graphics objects are combined with the actors
and live scenes.
Although the methods used in CG image processing overlap, the 2 areas are
concerned with fundamentally different operations. In CG a computer is used to create
picture. Image processing on the other hand applies techniques to modify existing pictures
such as photo scans, TV scans.
To draw the computer version of the simple ‘Multiplex Theatre’ and it’s role in daily
life. It is the graphical representation of Multiplex Theatre and it’s working. The Multiplex
Theatre show the real life graphical implementation of what happens in a multi-screen
cinema, how people choose their cinema according to language. It also show the ticket
selling as well as how people comes to buy popcorn in the middle of cinema.
1.5 Objectives
Chapter 1 introduces the computer graphics and its applications. Chapter 2 provides
brief Introductions to OpenGL, Chapter 3 deals with the Multiplex Theatre, Chapter 4 deals
with design and implementation inbuilt graphics functions and hardware and software
requirement with results obtained, and contains the results and snapshots of the output,
Chapter 5 concludes the project and also mentions the future scope, at the end the references
used for the project are listed.
CHAPTER 2
INTRODUCTION TO OPENGL
OpenGL is a software interface to graphics hardware. This interface consists of about
150 distinct commands that are used to specify the objects and operations needed to produce
interactive three-dimensional applications.
Most of the application will be designed to access OpenGL directly through functions
in three libraries. Functions in the main GL (or OpenGL in windows) library have names that
begin with the letters gl and are stored in a library usually referred to as GL (or OpenGL in
windows). 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 but application programmers
prefer not to write the code repeatedly. The GLU library is available in all OpenGL
implementations; functions in the GLU library begin with letters glu.
To interface with the window system and to get input from external devices into the
programs, at least one more system-specific library is needed that provides the “glue”
between the window system and OpenGL. For the X window system, this library is
functionality that should be expected in any modern windowing system.
Fig 2.1 shows the organization of the libraries for an X Window System environment.
For this window system, GLUT will use GLX and the X libraries. The application program
can use only GLUT functions and thus can be recompiled with the GLUT library for other
window systems.
GLU
GL Frame
OpenGL
Buffer
application Xlib, Xtk
Program
GLUT
GLX
OpenGL commands use the prefix gl and initial capital letters for each word making
up the command name. Similarly, OpenGL defined constant begin with GL_, use all capital
letters, and use underscores to separate words (like GL_COLOR_BUFFER_BIT).
Some extraneous letters are appended to some command name (for example, the 3f in
glColor3f() and glVertex3f()). It’s true that the Color part of the command name
glColor3f() is enough to define the command as one that sets the current color. And more
than one such command has been defined so as to use different types of arguments. In
particular, the 3 part of the suffix indicates that three arguments are given; another version of
the Color command takes four arguments. The f part of the suffix indicates that the
arguments are floating point numbers. Having different formats allows OpenGL to accept the
user’s data.
Some OpenGL commands accept as many as 8 different data types for their
arguments. The letters used as suffixes to specify these data types for ISO C implementations
of OpenGL are shown in table 2.1 along with the corresponding OpenGL type definitions.
Then these results are packed into an appropriate format and returned to an array in
system memory. There are special pixel copy operations to copy data in the frame buffer to
other parts of the frame buffer or to the texture memory. A single pass is made through the
pixel transfer operations before the data is written to the texture memory or back to the frame
buffer.
2.4 Evaluators
All geometric primitives are eventually described by vertices. Parametric curves and
surfaces may be initially described by control points and polynomial functions called basis
functions. Evaluators provide a method to derive the vertices used to represent the surface
from the control points. The method is a polynomial mapping, which can produce surface
normal, texture coordinates, colors, and spatial coordinate values from the control points.
then may be rejected by a culling test. Depending upon the polygon mode, a polygon may be
drawn as points or lines.
2.8 Rasterization
Rasterization is the conversion of both geometric and pixel data into fragments. Each
fragment square corresponds to a pixel in the framebuffer. Line and polygon stipples, line
width, point size, shading model, and coverage calculations to support antialiasing are taken
into consideration as vertices are connected into lines or interior pixels are calculated for a
filled polygon. Color and depth values are assigned for each fragment square.
CHAPTER 3
3.1 History
The history of ‘Multiplex Theatre’ said to be started in 1915 when two adjacent
theatres in Moncton, New Brunswick was built by same owner. In early day the multiplex
theatre was showing same cinema with different price for the tickets. On February 25, 1940,
the Patricia Theater made news by becoming what is believed to be the first two-screen
theater showing different movies when operator added a screen to an adjoining building and
shared a common box office.
In early days only screen were initiated for showing the different cinemas. Gradually
the growth in the cinema all around the world lead to development of cinema with more than
2 i.e 3, 4, 6 or 8 etc. screen stars showing the cinema at one place in different part of world.
Since the 1960s, multiple-screen theaters have become the norm, and many existing
venues have been retrofitted so that they have multiple auditoriums. A single foyer area is
shared among them. In the 1970s many large 1920s movie palaces were converted into
multiple screen venues by dividing their large auditoriums, and sometimes even the stage
space, into smaller theaters. Because of their size, and amenities like plush seating and
extensive food/beverage service, multiplexes draw from a larger geographic area than smaller
theaters. As a rule of thumb, they pull audiences from an eight to 12-mile radius, versus a
three to five-mile radius for smaller theaters (though the size of this radius depends on
population density). As a result, the customer geography area of multiplexes typically
overlaps with smaller theaters, which face threat of having their audience siphoned by bigger
theaters that cut a wider swath in the movie-going landscape.
3.1.1 Effects
the 70s and 80s. The expansion was executed at the big-box pace which left many theater
companies bankrupt while attempting to compete — almost all major movie theater
companies went bankrupt during this hasty development process.
As Economy grows many malls start building in the big cities. As people able to buy
groceries, cloths, foods etc at same place, there was necessity of having cinema at the mall.
The mall owners start having multiple screen in their mall. As cinema don’t have barrier of
language we have cinema in almost all the languages. So mall owner have used the
opportunity of different cinema lovers from different part of country speaks different
languages. The malls have screens with different language cinema in them.
In India, the mushrooming of multiplexes since the mid-80s has changed the
dynamics of Indian cinema. India's first multiplex was MARIS theatre [now LA CINEMA’S
] with 5 screens in Trichy, Tamil Nadu Which was inaugurated on 1980. While in the North
India, Rave 3 (3 screens) in Kanpur was the first multiplex inaugurated in 2002 which later
on was sold to BIG Cinemas
Indian cinema chains such as INOX, PVR, Carnival Cinemas, SPI Cinemas,
Cinepolis , k sera sera miniplex and Big Cinemas have been able to make in roads into tier II
and III cities in the world's largest film viewing industry.
1. The Multiplex Theatre have building with multi-screen, multi-language cinema inside
it.
2. At the start of project show the multi-store building with name board at top of the
building.
3. Outer part of Multiplex Theatre have some are with tree and car parking.
4. Inside the Multiplex Theatre the four language – English, Hindi, Tamil and Kannada
language screen are there.
5. The Multiplex Theatre have ticket counter where people purchase the ticket for the
cinema which they like to watch.
6. After buying ticket people go to the screen for which they purchase and then go to
that screen.
7. At the particular cinema say Hindi cinema screen, people can go to buy the popcorn
to the popcorn counter and come back to watch the cinema again.
8. There is restriction that once a language of cinema is chosen, you cannot choose
another language except you can go to purchase the popcorn. After leaving, the
Multiplex Theatre, you can go again and choose the another language.
CHAPTER 4
Start
no Keyboard function
yes
If( h or H) Hindi Movie
If(p/P)
no yes
yes Popcorn
If( t or T) Tamil Movie
no
yes
If( k or K) Kannada Movie End
no
Fig 4.1: Flow chart
The program execution begins with the main(). It calls the display function which
consists of then mouse function allows to enter the multiplex. Then the keyboard allows the
user to visit the particular cinema and buy popcorn, mouse function again allow to go out of
multiplex theatre, with all instruction being displayed at the console.
BOX(); This function let draw the theatre , building, stand etc in front and inside the
multiplex theatre.
BUILDING(); This function draw the Multiplex theatre building at the beginning of
program .
MYMOUSE(); This function provides a mouse interaction to our program. And make
our game more users friendly.
Dept. of CS&E, JNNCE Page 16
Multiplex Theatre
MYKEY(); This function provides a keyboard interaction to our program. And make
our game more users friendly.
DISPLAY(); This function displays the front and inside of multiplex. It display all the
objects and movements of the man from one place to another.
Initiates a new primitive of type mode and starts the collection of vertices. Values of mode
include GL_POINTS, GL_LINES and GL_POLYGON.
Sets the present RGB colors. Valid types are int ( i ), float ( f ) and double ( d ). The
maximum and minimum values of the floating-point types are 1.0 and 0.0, respectively.
Sets the present RGBA clear color used when clearing the color buffer. Variables of
GLclampf are floating-point numbers between 0.0 and 1.0.
Creates a window on the display. The string title can be used to label the window. The return
value provides a reference to the window that can be used where there are multiple windows.
Specifies the initial position of the top-left corner of the window in pixels.
Request a display with the properties in mode. The value of mode is determined by the
logical OR of operation including the color model (GLUT_RGB, GLUT_INDEX) and
buffering (GLUT_SINGLE, GLUT_DOUBLE);
Initializes GLUT. The arguments from main are passed in and can be used by the application.
Cause the program to enter an event processing loop. It should be the last statement in main.
Registers the display function func that is executed when the window needs to be redrawn.
Renders the character with ASCII code char at the current raster position using the raster font
given by font. Fonts include GLUT_BITMAP_TIMES_ROMAN_10 and
GLUT_BITMAP_TIMES_ROMAN_8_Y_13. The raster position is incremented by the
width of the character.
Hardware Requirements:
1GB RAM
CHAPTER 5
5.1 CONCLUSION
The Multiplex theatre has been drawn and displayed using the computer graphics, while
showing how it’s works in general. The demo is made more interactive with a keyboard and
mouse interaction module in the program.
Even though demo designed is enriched with many options, it is a two dimensional
demo, in future it can be re designed with 3D animation and sound effects. By using this
demo further for no of screen from user’s choice can be implemented.
REFERENCES
3. The OpenGL Programming Guide, 5th Edition. The Official guide to learning OpenGL
Version 2.1 by OpenGL Architecture Review Board.
4. https://en.wikipedia.org/wiki/Multiplex_(movie_theater)
5. https://www.openglprojects.in