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

  Distributed database

A distributed database is also termed as the Replicated Virtualized Rendered Concatenated database.

  Role of the nonce in preventing reuse key streams

Describe the role of the nonce in preventing reuse key streams when using the same passphrase to encrypt different files.

  Write a computer program using q basic

You need to write a computer program using q basic with the subsequent information. We just started learning about loop commands but I'm completely lost.

  Data integration and etl

Write down the data integration and ETL. How are they related? What is the data warehouse and state its benefits?

  The main program will after that print out the initial

How do you write down a Method (using Java) that calculates your weight on the moon.The main program needs to prompt the user for a weight and pass that to the MoonWeight Method (fexample variable name â?" Iâ??m just using).

  Design and program a two player game

You are requested to design and program a two player game (Squash) in using Flash CS6 that interacts with the player via mouse events for one player and keyboard keys for the other player. Also add a scoring and any other features.

  Intrusion detection system or intrusion prevention system

Your company is deciding whether to employ the intrusion detection system (IDS), or an intrusion prevention system (IPS).

  Program to count the number of times page is opened

Generate a page in order to count the number of times the page is viewed by the user in a single session. Each time page is refreshed or opened in the browser during the session counts as 1 page view.

  Review sectioncontemporary hardware platform trends and

review sectioncontemporary hardware platform trends and section contemporary software platform trends in of management

  Why application designed and written for intel architecture

Determine at least five advantages and five disadvantages of using bytecode or Intermediate Language (IL) in computer applications.

  Computing the cryptosystem

Consider the following cryptosystems and compute which security service(s) (e.g. Authentication, Integrity…etc) they offer: Example: Ek(M) - Confidentiality

  A function can also be called an inheritance

In computer programming would you say that a function could also be known an inheritance product due to the reuse of it in the program? A while loop that calls the function once the statement is true can be used over and over.

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