Create a 3d graphics scene using opengl

Assignment Help Computer Engineering
Reference no: EM131007084

Topic: OpenGL4.0 C++ GLSL

Detailed Question: Please have a look at this YouTube tutorial first, you need to create a similar Sonic the hedgehog 3D Graphics Game using OpenGL4.0 version only, C++ and GLSL.

https://www.youtube.com/watch?v=u9Ocuv6TzdA

Lab 3 solution:

Please run this solution in Microsoft Visual Studio 2013

Template: https://www.filedropper.com/lab3

Replace the CatmullRom.cpp and CatmullRom.h files that are attached in the Lab 3 solution (Template). The template contains old CatmullRom files. Your starting point is to work on PathstartingGuide.pdf first, see attached. You will need the template (Lab 3), follow all the steps in this guide and make sure there is a path first.

The next step is to work on the tasks attached. Please have a look at that for the game requirements.

Task:

Your task is to create a 3D graphics scene using OpenGL matching the theme described above. Your creation will include a path following a non-linear path on which the game or simulation will occur. There will be a series of camera views.

Technology:
You are to use OpenGL, C++, and GLSL for this coursework, using the Windows API. It is recommended that you use OpenGL 4.0 or higher, although you are permitted to use OpenGL

3.3 (if your development hardware does not support OpenGL 4.0). The rendering context must be confgured as a core context.

You are to program the game using Visual Studio, either 2013 (recommended) or 2015. You are welcome to include other libraries as long as they are sufciently packaged with both the source code and the fnal deployed executables. Deprecated fxed function programming through use of a compatibility context is prohibited and will receive zero marks - this is a module on modern OpenGL programming.

Source code to be commented and follow a logical design, organisation, and coding style (i.e., use of classes).

Path and camera (25%):
Path (15%)
o Create a 3D non-linear centreline for your path, based on splines with C1 or higher continuity. Create primitives to generate a path on which the gameplay / simulation will occur.
o Ensure your primitives have correctly oriented normals and texture coordinates. Render the path with appropriate texturing and lighting.
o Note: the path must be generated programmatically, using OpenGL primitives. Building the path geometry in 3D modelling software and loading it as a mesh is not permitted.

Camera / viewing (10%)

o The graphics template code allows the user to control camera movement in a "free view" mode. Retain this type of camera movement as an option (useful for debugging and visualisation).
o Implement at least two of the following camera modes:

1. First person: Add a keyboard control to place the camera so that it provides a frst person view allowing the player to move along the path.

2. Third person: Add a keyboard control to place the camera either in or behind the player (rendered as a mesh).

3. Side view: Add a keyboard control to place the camera to the side of the player character (mesh) moving along the path.

4. Top view: Add a keyboard control to place the camera so that it provides a top view of your scene, but follows the player moving along the path.

o You will likely fnd it helpful to use a TNB frame for specifying the camera viewing geometry.

3. Basic objects, meshes, and lighting (30%)

- Basic objects (10%)
o Create at least two diferent basic objects from primitives. Examples could include a cube, tetrahedron, torus, cylinder, cone, disk (other surfaces are possible). Render these objects using triangle primitive types (GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN). Note that the basic objects (plane, sphere) given in the template code do not count towards this requirement; nor do meshes loaded into the scene. However, shapes created in labs can count towards this section.

o Apply appropriate texture coordinates and normals for your objects. Render these objects using texture mapping and lighting.
o Transform the models to have an appropriate location, orientation and scale within the scene.

- Meshes (10%)
o Load at least two diferent texture-mapped mesh models (with appropriate normals) to the scene using the model loader code provided in template code. Populate the scene with objects that match your theme. Note the mesh models (horse, barrel) already provided in the template do not count towards these models.
o Transform the models to have an appropriate location, orientation and scale within the scene.
o Create parts of your scene using repeated mesh objects (e.g.rows of pickups, obstacles, etc.).
- Lighting (10%)
o The OpenGL template has a general lighting for all objects. Implement at least one additional dynamic light in your scene.


4. Head's up display (HUD), gameplay, and advanced rendering (30%)
- HUD (5%)o Include a head's up display to provide information to user (time, speed, score, fuel, place, etc.).
- Gameplay (5%)
o Implement control of the player position on the path using the mouse or keyboard. Animate the player movement.
o Implement gameplay to make the game interesting to play. You're free to design the gameplay as you wish, but it should not be trivial to play. Some suggestions include:
- Time-trial racing: The player seeks to get from the start to fnish as fast as possible. Obstacles and/or speed-ups enhance gameplay.
- Points: The player seeks to achieve as high a score as possible, by collecting pick-ups. Obstacles may cause damage or lower score.
- Shooter: The player defeats enemies by shooting at them.
o Utilise basic collision detection using standard techniques (e.g., distance between player and object).
- Advanced rendering (20%)
o Implement at least two advanced rendering techniques. At least one of these techniques should involve shader coding. Some ideas for this include the following:

- Easier:
- Blinking (e.g. Lab 1; or rendering/not rendering an object using a timer)
- Wobble
- Fog
- Animation using discard in the fragment shader
- Toon shader
- Camera shake
- Instanced rendering
- Multi-texturing
- Harder:
- Particle animation
- Environment mapping
- Render to texture
- Blur
- Perlin (or related) noise
- Bump mapping
- Bloom
- Shadows
- Use of a geometry , tessellation, or compute shader

- In your report, be sure to describe the techniques implemented, and how they work.

Notes:
All source code should be commented. Clearly mark any code that you have written and any code that is externally produced. Use appropriate naming conventions and display an organised code strategy (header fles etc).

If additional libraries are used, make sure that these are sufciently packaged with both the source code and the fnal publicly deployed executables to allow the code to be run on any lab machine.

Attachment:- catmullrom.zip

Reference no: EM131007084

Questions Cloud

List the general methods used to guard known machine hazards : Search the OSHA regulations at http://www.osha.gov and review the section related to machine guarding. List the general methods used to guard known machine hazards. Give specific examples of conditions where guards should be used.
Suppose that the inventor of a weather-forecasting technique : Suppose that the inventor of a weather-forecasting technique determines that the weather during the growing season will be perfect, causing bumper harvest. Explain how the inventor could use this information to make profitable investments.
How you would handle any of the teenage status offense : Describe how you would handle any of the teenage status offense violators who is being uncooperative at the scene. How would this affect your decision on how to handle this status offense case
Explain how each regulation would apply to a tub grinder : The operator reached into the unguarded opening and at some point his right hand contacted the still rotating hammer mill of the tub grinder. At issue are whether the tub grinder contained proper warnings,
Create a 3d graphics scene using opengl : Your task is to create a 3D graphics scene using OpenGL matching the theme described above. Your creation will include a path following a non-linear path on which the game or simulation will occur. There will be a series of camera views.
Production function have constant returns to scale : Country A and Country B both have the production function: Does this production function have constant returns to scale? Explain. Suppose that both countries start off with a capital stock per worker of 1. What are the levels of income per worker an..
Sketch the region of integrate d in the xy plane : Sketch the region of integrate D in the xy plane. Write the double integral I as ail iterated integral with order dy dx. and then use it to evaluate the double integral.
What is your favorite childhood memory : Interview a young person (5 to 8 years old) and an older adult (65 years or older). Ask them the same question: "What is your favorite childhood memory?
What are the positive and negative issues : What are the positive and negative issues that are associated with being either an employee or and independent contractor? What are the risks associated with being an independent contractor? Use the Library or other Web resources to support your a..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Use that both versions of average()

Create a class called CollegeCourse with. use that both versions of average()

  Design the requires and the provides interfaces of at least

as the lead software engineer for a medium-sized hospital you have been asked to spearhead an effort to improve the

  Explain a mechanism by which an operating system can

describe a mechanism by which an operating system can enforce limited transfer of capabilities.that is process a might

  Advantages and drawbacks of electronic business

Electronic business (e-business) is the conduct of commercial transactions with the help of telecommunications. Among the benefits of e-business are a global marketplace. Name other advantages and drawbacks.

  Implement a programme that reads an integer value

Design and implement a programme that reads an integer value and prints the sum of all even integers between 1 and the input value inclusive, as well as the sum of all odd integers.

  Write down an interactive web page named swap.html

Write an interactive Web page named swap.html that contains two text boxes and a button. When the user clicks the button, the contents of the two text boxes should be swapped.

  How to construct a permutationgenerator object

note down  a program that produces random permutations of the numbers 1 to 10. To generate a random permutation, you need to fill an array with the numbers 1 to 10 so that no two entries of \array have the same contents.

  Select a large multinational organisation that has

select a large multinational organisation that has succeeded in effectively aligning its business and isit strategies

  Write down a 2 page proposal for the backhaul connecting

write a 2 page proposal for the backhaul connecting several campuses for your company in one metropolitan area. all of

  Properties of a generator polynomial

For each of the "desirable" properties of a generator polynomial G discussed in class, show whether G above satisfies each of these properties or not.

  Paper on code division multiple access

Write a 3- to 5-page paper comparing the advantages of Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Code Division Multiple Access (CDMA), and Orthogonal Frequency Division Multiplexing, as used in wireless mobil..

  Identifynbspa minimum of three technological tools that you

writenbspa paper of approximately 750 words that discusses the need and necessity of research and technological

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd