SlideShare a Scribd company logo
1 of 12
Download to read offline
Page | 1
DYNAMIC SORTING ALGORITHM VISUALIZER USING OPENGL
A Mini Project Report Submitted by
Agnesh Shetty
4NM19CS011
Aditya A Sooda
4NM19CS008
UNDER THE GUIDANCE OF
MR.PUNEETH RP
ASSISTANT PROFESSOR GD-11
Department of Computer Science and Engineering
in partial fulfilment of the requirements for the award of the
Degree of
Bachelor of Engineering in
Computer Science & Engineering
from
Visvesvaraya Technological University,
Belagavi
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
N.M.A.M. INSTITUTE OF TECHNOLOGY
(An Autonomous Institution under VTU, Belagavi) (AICTE approved, NBA Accredited, ISO
9001:2008 Certified) NITTE -574 110, Udupi District, KARNATAKA.
(ISO 9001:2015 Certified), Accredited with ‘A’ Grade by NAAC
Page | 2
TABLE OF CONTENTS :
1. ABSTRACT AND INTRODUCTION 3-4
2. IMPLEMENTATION 4
3. SYSTEM REQUIREMENT AND SPECIFICATION 4-5
4. SCREENSHOTS 6-10
5. CONCLUSION AND FUTURE WORK 10
8. REFERENCES 11
Page | 3
ABSTRACT AND INTRODUCTION
OpenGL was originally developed by Silicon Graphics, Inc. (SGI) as a multi-
purpose, platform-independent graphics API. Since 1992, the development of
OpenGL has been overseen by the OpenGL Architecture Review Board (ARB),
which is made up of major graphics vendors and other industry leaders, currently
consisting of 3DLabs, ATI, Dell, Evans & Sutherland, Hewlett-Packard, IBM,
Intel, Matrox, NVIDIA, SGI, Sun Microsystems, and Silicon Graphics. The Role
of ARB is to establish and maintain the DYNAMIC SORTING ALGORITHM
VISUALIZER OpenGL specifications, which dictates which features must be
included when one is developing an OpenGL distribution. OpenGL is the premier
environment for developing portable, interactive 2D and 3D graphics
applications.
OpenGL intentionally provides only low-level rendering routines, allowing the
programmer a great deal of control and flexibility. The provided routines can
easily be used to build high-level rendering and modeling libraries, and in fact,
the OpenGL Utility Library(GLU), which is included in most OpenGL
distributions, does exactly that. Note that OpenGL is just a graphics library;
Unlike DirectX, it does not include support for sound, input, networking, or
anything else not directly related to graphics.
OpenGL is a collection of several hundred functions providing access to all of
the features offered by our graphics hardware. Internally, it acts as a state
machine –a collection of states that tell OpenGL what to do and that are
changed in a very well-defined manner. Using API, we can set various aspects
of the state machine, including such things as the current color, lighting, blending
Page | 4
et al. When rendering, everything drawn is affected by the current settings of the
state machine. At the core of OpenGL is the rendering pipeline. There are many
libraries available that build upon and around OpenGL to add support and
functionality beyond the low-level rendering support that it excels at. Most
important amongst them are GLU, GLUT and SDL.GLU uses only GL functions
but contains code for creating common objects and simplifying viewing. GLUT
provides support for any form of functionality related to windowing, menus or
input. SDL stands for Simple Direct Media Layer is a cross-platform multimedia
library, including support for audio, input, 2D graphics
Page | 5
IMPLEMENTATION
4.3 Functions Used :
4.3.1 void initialise (void)
In this function the swapping flag along with global variables that hold
values of X coordinates during swapping are initialized to zero. It also initializes
the array of circles that is obtained from the randomly generated sequence and
place them at equal intervals
4.3.2 void int_str( int rad,char r[] )
This function does the conversion of integer value to string value, so that it
can be passed as parameter to the bitmap output function. It takes rad as the
parameter which is the target number that needs conversion from integer to
string value.
4.3.3 void circle_draw(circle c)
This function draws the circle as per the passed circle structure variable,
which consists of the circle center coordinates along with the radius.
4.3.5 void swap_circles(circle *cc1,circle *cc2)
This function basically swaps the two key circles. Initially the X coordinates
of the two circles are assigned to the 2 global variables and swapping flag is
made TRUE.As long as the first global variable is less than or equal to second
circle X coordinate, decrement the second circle X coordinate by 1 unit.
Page | 6
4.3.6 void keyboard (unsigned char key, int x, int y)
This function just checks whether the input character is s or r or 27. Based
on the input if it is 27, exit(0) function is called, else if it is ‘s’ then sorting flag is
initialized to 1 else if ‘r’ then intialise() function is called.
4.3.7 void reshape(int w, int h)
This function is used to reshape the windowwith the new width and height
which is passed as parameters. This function is triggered whenever the
current window is reshape.
Page | 7
HARDWARE / SOFTWARE REQUIREMENTS
HARDWARE SPECIFICATION:
➢ Processor: Pentium-3 or Higher
➢ RAM: 64MB or Higher
➢ Hard Disk: 80GB or Higher
SOFTWARE SPECIFICATION:
➢ Windows , 64 bits (PC or Mac computers using Boot Camp)
➢ Any CPU (Intel i5/ i7/ Ryzen 7).
➢ Any GPU that is compatible with OpenGL 3.2. (integrated graphics cards
Intel HD 4000 or above).
➢ For Small projects 4 GB RAM, 10 GB HDD Free Space
➢ For Large projects 16 GB RAM, 40 GB HDD Free Space.
Page | 8
SCREENSHOTS OF THE PROJECT
Page | 9
Page | 10
Page | 11
CONCLUSION :
The development of mini project has given us a good exposure to openGL by
which we have learnt some of the techniques which helps in the development
of animation and gaming. Hence it is helpful for us to even take this field as our
career too and develop some other features in openGL and provide as token of
contribution to the graphics world
FUTURE SCOPE :
This project has been designed using C++, which works on the windows
platform. The project can be designed using other languages and better
graphical interfaces. The following features could have been incorporated.
• Circular and priority queues can be implemented.
• Different shading effects can be added.
• We can give transparency and fogging to the objects.
Page | 12
REFERENCES
1. Stack Overflow for some of errors:
https://stackoverflow.com
2. Glut Installation:
https://www.opengl.org/resources/libraries/glut/glut_downloads.php
3. Setting up Glut Environment:
https://www.youtube.com/watch?v=8p76pJsUP44
4. Stack and Queue operations:
https://www.geeksforgeeks.org/
5. Mingw setup:
https://sourceforge.net/projects/mingw

More Related Content

What's hot

9.bst(contd.) avl tree
9.bst(contd.) avl tree9.bst(contd.) avl tree
9.bst(contd.) avl treeChandan Singh
 
Online voting system ppt by anoop
Online voting system ppt by anoopOnline voting system ppt by anoop
Online voting system ppt by anoopAnoop Kumar
 
OpenGL Projects on SIMULATION OF WATER RIPPELS
OpenGL Projects on SIMULATION OF WATER RIPPELSOpenGL Projects on SIMULATION OF WATER RIPPELS
OpenGL Projects on SIMULATION OF WATER RIPPELSRAJEEV KUMAR SINGH
 
Banking Management System Project
Banking Management System ProjectBanking Management System Project
Banking Management System ProjectChaudhry Sajid
 
SOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION SlidesSOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION SlidesJeremy Zhong
 
Social Networking Project (website) full documentation
Social Networking Project (website) full documentation Social Networking Project (website) full documentation
Social Networking Project (website) full documentation Tenzin Tendar
 
Convert ER diagram to Relational model and Normalization
Convert ER diagram to Relational model and NormalizationConvert ER diagram to Relational model and Normalization
Convert ER diagram to Relational model and NormalizationSaadi Rahman
 
Android College Application Project Report
Android College Application Project ReportAndroid College Application Project Report
Android College Application Project Reportstalin george
 
Final project presentation CSE
Final project presentation CSEFinal project presentation CSE
Final project presentation CSEHumayra Khanum
 
Parallel sorting algorithm
Parallel sorting algorithmParallel sorting algorithm
Parallel sorting algorithmRicha Kumari
 
Algorithm Visualizer
Algorithm VisualizerAlgorithm Visualizer
Algorithm VisualizerAnwar Jameel
 
Software Engineering Final Year Project Report
Software Engineering Final Year Project ReportSoftware Engineering Final Year Project Report
Software Engineering Final Year Project Reportjudebwayo
 
Final Year Project - Computer System Sample Slide
Final Year Project - Computer System Sample SlideFinal Year Project - Computer System Sample Slide
Final Year Project - Computer System Sample SlideSuhailan Safei
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common SubsequenceSwati Swati
 
Ludo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationLudo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationZakaria Hossain
 
Final Project Submission Document file
Final Project Submission Document fileFinal Project Submission Document file
Final Project Submission Document filesheiblu
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplicationMegha V
 

What's hot (20)

9.bst(contd.) avl tree
9.bst(contd.) avl tree9.bst(contd.) avl tree
9.bst(contd.) avl tree
 
Online voting system ppt by anoop
Online voting system ppt by anoopOnline voting system ppt by anoop
Online voting system ppt by anoop
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
OpenGL Projects on SIMULATION OF WATER RIPPELS
OpenGL Projects on SIMULATION OF WATER RIPPELSOpenGL Projects on SIMULATION OF WATER RIPPELS
OpenGL Projects on SIMULATION OF WATER RIPPELS
 
Cadancesimulation
CadancesimulationCadancesimulation
Cadancesimulation
 
Banking Management System Project
Banking Management System ProjectBanking Management System Project
Banking Management System Project
 
SOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION SlidesSOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION Slides
 
Social Networking Project (website) full documentation
Social Networking Project (website) full documentation Social Networking Project (website) full documentation
Social Networking Project (website) full documentation
 
Convert ER diagram to Relational model and Normalization
Convert ER diagram to Relational model and NormalizationConvert ER diagram to Relational model and Normalization
Convert ER diagram to Relational model and Normalization
 
Android College Application Project Report
Android College Application Project ReportAndroid College Application Project Report
Android College Application Project Report
 
Final project presentation CSE
Final project presentation CSEFinal project presentation CSE
Final project presentation CSE
 
Parallel sorting algorithm
Parallel sorting algorithmParallel sorting algorithm
Parallel sorting algorithm
 
Algorithm Visualizer
Algorithm VisualizerAlgorithm Visualizer
Algorithm Visualizer
 
Augmenting Data Structures
Augmenting Data StructuresAugmenting Data Structures
Augmenting Data Structures
 
Software Engineering Final Year Project Report
Software Engineering Final Year Project ReportSoftware Engineering Final Year Project Report
Software Engineering Final Year Project Report
 
Final Year Project - Computer System Sample Slide
Final Year Project - Computer System Sample SlideFinal Year Project - Computer System Sample Slide
Final Year Project - Computer System Sample Slide
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common Subsequence
 
Ludo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentationLudo (snack-ladder) game project presentation
Ludo (snack-ladder) game project presentation
 
Final Project Submission Document file
Final Project Submission Document fileFinal Project Submission Document file
Final Project Submission Document file
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplication
 

Similar to Dynamic sorting algorithm vizualizer.pdf

The Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging SystemThe Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging SystemMelissa Luster
 
Auto conversion of serial C code to CUDA code
Auto conversion of serial C code to CUDA codeAuto conversion of serial C code to CUDA code
Auto conversion of serial C code to CUDA codeIRJET Journal
 
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...IRJET Journal
 
AI Bridging Cloud Infrastructure (ABCI) and its communication performance
AI Bridging Cloud Infrastructure (ABCI) and its communication performanceAI Bridging Cloud Infrastructure (ABCI) and its communication performance
AI Bridging Cloud Infrastructure (ABCI) and its communication performanceinside-BigData.com
 
Design and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpgaDesign and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpgaVLSICS Design
 
Iaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digitalIaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digitalIaetsd Iaetsd
 
VisionizeBeforeVisulaize_IEVC_Final
VisionizeBeforeVisulaize_IEVC_FinalVisionizeBeforeVisulaize_IEVC_Final
VisionizeBeforeVisulaize_IEVC_FinalMasatsugu HASHIMOTO
 
Embedded Graphics Drivers in Mesa (ELCE 2019)
Embedded Graphics Drivers in Mesa (ELCE 2019)Embedded Graphics Drivers in Mesa (ELCE 2019)
Embedded Graphics Drivers in Mesa (ELCE 2019)Igalia
 
[Unite Seoul 2019] Mali GPU Architecture and Mobile Studio
[Unite Seoul 2019] Mali GPU Architecture and Mobile Studio [Unite Seoul 2019] Mali GPU Architecture and Mobile Studio
[Unite Seoul 2019] Mali GPU Architecture and Mobile Studio Owen Wu
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
3 CG_U1_P2_PPT_3 OpenGL.pptx
3 CG_U1_P2_PPT_3 OpenGL.pptx3 CG_U1_P2_PPT_3 OpenGL.pptx
3 CG_U1_P2_PPT_3 OpenGL.pptxssuser255bf1
 
IRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDA
IRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDAIRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDA
IRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDAIRJET Journal
 
IRJET- FPGA based Controller Design for Mobile Robots
IRJET- FPGA based Controller Design for Mobile RobotsIRJET- FPGA based Controller Design for Mobile Robots
IRJET- FPGA based Controller Design for Mobile RobotsIRJET Journal
 
digitaldesign-s20-lecture3b-fpga-afterlecture.pdf
digitaldesign-s20-lecture3b-fpga-afterlecture.pdfdigitaldesign-s20-lecture3b-fpga-afterlecture.pdf
digitaldesign-s20-lecture3b-fpga-afterlecture.pdfDuy-Hieu Bui
 
Computer Graphics - Lecture 01 - 3D Programming I
Computer Graphics - Lecture 01 - 3D Programming IComputer Graphics - Lecture 01 - 3D Programming I
Computer Graphics - Lecture 01 - 3D Programming I💻 Anton Gerdelan
 
Advanced Graphics Workshop - GFX2011
Advanced Graphics Workshop - GFX2011Advanced Graphics Workshop - GFX2011
Advanced Graphics Workshop - GFX2011Prabindh Sundareson
 

Similar to Dynamic sorting algorithm vizualizer.pdf (20)

Opengl basics
Opengl basicsOpengl basics
Opengl basics
 
The Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging SystemThe Principle Of Ultrasound Imaging System
The Principle Of Ultrasound Imaging System
 
Auto conversion of serial C code to CUDA code
Auto conversion of serial C code to CUDA codeAuto conversion of serial C code to CUDA code
Auto conversion of serial C code to CUDA code
 
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
 
AI Bridging Cloud Infrastructure (ABCI) and its communication performance
AI Bridging Cloud Infrastructure (ABCI) and its communication performanceAI Bridging Cloud Infrastructure (ABCI) and its communication performance
AI Bridging Cloud Infrastructure (ABCI) and its communication performance
 
Design and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpgaDesign and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpga
 
Iaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digitalIaetsd vlsi based implementation of a digital
Iaetsd vlsi based implementation of a digital
 
VisionizeBeforeVisulaize_IEVC_Final
VisionizeBeforeVisulaize_IEVC_FinalVisionizeBeforeVisulaize_IEVC_Final
VisionizeBeforeVisulaize_IEVC_Final
 
Introduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSPIntroduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSP
 
Embedded Graphics Drivers in Mesa (ELCE 2019)
Embedded Graphics Drivers in Mesa (ELCE 2019)Embedded Graphics Drivers in Mesa (ELCE 2019)
Embedded Graphics Drivers in Mesa (ELCE 2019)
 
Parallel Processor for Graphics Acceleration
Parallel Processor for Graphics AccelerationParallel Processor for Graphics Acceleration
Parallel Processor for Graphics Acceleration
 
[Unite Seoul 2019] Mali GPU Architecture and Mobile Studio
[Unite Seoul 2019] Mali GPU Architecture and Mobile Studio [Unite Seoul 2019] Mali GPU Architecture and Mobile Studio
[Unite Seoul 2019] Mali GPU Architecture and Mobile Studio
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
3 CG_U1_P2_PPT_3 OpenGL.pptx
3 CG_U1_P2_PPT_3 OpenGL.pptx3 CG_U1_P2_PPT_3 OpenGL.pptx
3 CG_U1_P2_PPT_3 OpenGL.pptx
 
IRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDA
IRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDAIRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDA
IRJET-A Study on Parallization of Genetic Algorithms on GPUS using CUDA
 
IRJET- FPGA based Controller Design for Mobile Robots
IRJET- FPGA based Controller Design for Mobile RobotsIRJET- FPGA based Controller Design for Mobile Robots
IRJET- FPGA based Controller Design for Mobile Robots
 
digitaldesign-s20-lecture3b-fpga-afterlecture.pdf
digitaldesign-s20-lecture3b-fpga-afterlecture.pdfdigitaldesign-s20-lecture3b-fpga-afterlecture.pdf
digitaldesign-s20-lecture3b-fpga-afterlecture.pdf
 
Computer Graphics - Lecture 01 - 3D Programming I
Computer Graphics - Lecture 01 - 3D Programming IComputer Graphics - Lecture 01 - 3D Programming I
Computer Graphics - Lecture 01 - 3D Programming I
 
Qt Programming on TI Processors
Qt Programming on TI ProcessorsQt Programming on TI Processors
Qt Programming on TI Processors
 
Advanced Graphics Workshop - GFX2011
Advanced Graphics Workshop - GFX2011Advanced Graphics Workshop - GFX2011
Advanced Graphics Workshop - GFX2011
 

Recently uploaded

Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 

Recently uploaded (20)

Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 

Dynamic sorting algorithm vizualizer.pdf

  • 1. Page | 1 DYNAMIC SORTING ALGORITHM VISUALIZER USING OPENGL A Mini Project Report Submitted by Agnesh Shetty 4NM19CS011 Aditya A Sooda 4NM19CS008 UNDER THE GUIDANCE OF MR.PUNEETH RP ASSISTANT PROFESSOR GD-11 Department of Computer Science and Engineering in partial fulfilment of the requirements for the award of the Degree of Bachelor of Engineering in Computer Science & Engineering from Visvesvaraya Technological University, Belagavi DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING N.M.A.M. INSTITUTE OF TECHNOLOGY (An Autonomous Institution under VTU, Belagavi) (AICTE approved, NBA Accredited, ISO 9001:2008 Certified) NITTE -574 110, Udupi District, KARNATAKA. (ISO 9001:2015 Certified), Accredited with ‘A’ Grade by NAAC
  • 2. Page | 2 TABLE OF CONTENTS : 1. ABSTRACT AND INTRODUCTION 3-4 2. IMPLEMENTATION 4 3. SYSTEM REQUIREMENT AND SPECIFICATION 4-5 4. SCREENSHOTS 6-10 5. CONCLUSION AND FUTURE WORK 10 8. REFERENCES 11
  • 3. Page | 3 ABSTRACT AND INTRODUCTION OpenGL was originally developed by Silicon Graphics, Inc. (SGI) as a multi- purpose, platform-independent graphics API. Since 1992, the development of OpenGL has been overseen by the OpenGL Architecture Review Board (ARB), which is made up of major graphics vendors and other industry leaders, currently consisting of 3DLabs, ATI, Dell, Evans & Sutherland, Hewlett-Packard, IBM, Intel, Matrox, NVIDIA, SGI, Sun Microsystems, and Silicon Graphics. The Role of ARB is to establish and maintain the DYNAMIC SORTING ALGORITHM VISUALIZER OpenGL specifications, which dictates which features must be included when one is developing an OpenGL distribution. OpenGL is the premier environment for developing portable, interactive 2D and 3D graphics applications. OpenGL intentionally provides only low-level rendering routines, allowing the programmer a great deal of control and flexibility. The provided routines can easily be used to build high-level rendering and modeling libraries, and in fact, the OpenGL Utility Library(GLU), which is included in most OpenGL distributions, does exactly that. Note that OpenGL is just a graphics library; Unlike DirectX, it does not include support for sound, input, networking, or anything else not directly related to graphics. OpenGL is a collection of several hundred functions providing access to all of the features offered by our graphics hardware. Internally, it acts as a state machine –a collection of states that tell OpenGL what to do and that are changed in a very well-defined manner. Using API, we can set various aspects of the state machine, including such things as the current color, lighting, blending
  • 4. Page | 4 et al. When rendering, everything drawn is affected by the current settings of the state machine. At the core of OpenGL is the rendering pipeline. There are many libraries available that build upon and around OpenGL to add support and functionality beyond the low-level rendering support that it excels at. Most important amongst them are GLU, GLUT and SDL.GLU uses only GL functions but contains code for creating common objects and simplifying viewing. GLUT provides support for any form of functionality related to windowing, menus or input. SDL stands for Simple Direct Media Layer is a cross-platform multimedia library, including support for audio, input, 2D graphics
  • 5. Page | 5 IMPLEMENTATION 4.3 Functions Used : 4.3.1 void initialise (void) In this function the swapping flag along with global variables that hold values of X coordinates during swapping are initialized to zero. It also initializes the array of circles that is obtained from the randomly generated sequence and place them at equal intervals 4.3.2 void int_str( int rad,char r[] ) This function does the conversion of integer value to string value, so that it can be passed as parameter to the bitmap output function. It takes rad as the parameter which is the target number that needs conversion from integer to string value. 4.3.3 void circle_draw(circle c) This function draws the circle as per the passed circle structure variable, which consists of the circle center coordinates along with the radius. 4.3.5 void swap_circles(circle *cc1,circle *cc2) This function basically swaps the two key circles. Initially the X coordinates of the two circles are assigned to the 2 global variables and swapping flag is made TRUE.As long as the first global variable is less than or equal to second circle X coordinate, decrement the second circle X coordinate by 1 unit.
  • 6. Page | 6 4.3.6 void keyboard (unsigned char key, int x, int y) This function just checks whether the input character is s or r or 27. Based on the input if it is 27, exit(0) function is called, else if it is ‘s’ then sorting flag is initialized to 1 else if ‘r’ then intialise() function is called. 4.3.7 void reshape(int w, int h) This function is used to reshape the windowwith the new width and height which is passed as parameters. This function is triggered whenever the current window is reshape.
  • 7. Page | 7 HARDWARE / SOFTWARE REQUIREMENTS HARDWARE SPECIFICATION: ➢ Processor: Pentium-3 or Higher ➢ RAM: 64MB or Higher ➢ Hard Disk: 80GB or Higher SOFTWARE SPECIFICATION: ➢ Windows , 64 bits (PC or Mac computers using Boot Camp) ➢ Any CPU (Intel i5/ i7/ Ryzen 7). ➢ Any GPU that is compatible with OpenGL 3.2. (integrated graphics cards Intel HD 4000 or above). ➢ For Small projects 4 GB RAM, 10 GB HDD Free Space ➢ For Large projects 16 GB RAM, 40 GB HDD Free Space.
  • 8. Page | 8 SCREENSHOTS OF THE PROJECT
  • 11. Page | 11 CONCLUSION : The development of mini project has given us a good exposure to openGL by which we have learnt some of the techniques which helps in the development of animation and gaming. Hence it is helpful for us to even take this field as our career too and develop some other features in openGL and provide as token of contribution to the graphics world FUTURE SCOPE : This project has been designed using C++, which works on the windows platform. The project can be designed using other languages and better graphical interfaces. The following features could have been incorporated. • Circular and priority queues can be implemented. • Different shading effects can be added. • We can give transparency and fogging to the objects.
  • 12. Page | 12 REFERENCES 1. Stack Overflow for some of errors: https://stackoverflow.com 2. Glut Installation: https://www.opengl.org/resources/libraries/glut/glut_downloads.php 3. Setting up Glut Environment: https://www.youtube.com/watch?v=8p76pJsUP44 4. Stack and Queue operations: https://www.geeksforgeeks.org/ 5. Mingw setup: https://sourceforge.net/projects/mingw