Ask Computer Engineering Expert

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: http://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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91722812
  • Price:- $220

Guranteed 48 Hours Delivery, In Price:- $220

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As