Giter Site home page Giter Site logo

fpolidoro / informaticagrafica Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 394 MB

This repository contains the source code and the .blend models for the school project due for the Computer Graphics class at Politecnico di Torino.

C++ 70.45% C 29.55%
opengl computer-graphics polito informatica-grafica

informaticagrafica's Introduction

Informatica Grafica (Computer Graphics)

This repository contains the source code and the .blend models for the school project due for the Computer Graphics class at Politecnico di Torino.

The project required the development of a game in C++ and OpenGL and a rendering of a scene in Blender, from modeling to texturing to lighting.

Project description

Both the game and the rendering are set in China.

Game

The game is an endless runner where Long, the Chinese dragon, has to fly over the Great Wall trying to collect coins and ying-yang medals while avoiding obstacles.
It is written in C++ and OpenGL. The models are managed with the Assimp library and textured with DevIL.

In order to have an endless runner, the Great Wall is made of pre-built blocks that are dynamically concatenated at runtime and are shifted below the dragon, which actually does not move. Each block is described by a configuration file containing the coordinates of each element (coin, ying-yang medal, lantern, flag, tower, etc) that has to be positioned on or over the wall. As soon as a block has been used, i.e. it goes out of the screen, it is destroyed in order not to waste memory.

The dragon's body is made of spheres between the head and the tail, each representing a health point. Every time the dragon collides with an obstacle, a sphere is lost and the body becomes shorter. Once the dragon hits another obstacle having only its head and tail left, the game is over.
In order to avoid having an extremely long dragon, the speed of the game increases in order to reach a high level of difficulty and increase the chances of losing health points.

Main menu Game level
Main Menu Game level

Long looses health points
Long looses health points

Keys and instructions

  • โ†‘ and โ†“ for moving Long up and down
  • Collect coins for earning score points
  • Collect ying-yang medals for earning health points

Rendering

The rendering is inspired by a scene of Po's Dad's restaurant in Kung Fu Panda. As a requirement, the scene had to contain Cycles materials, particle systems (bamboo branches and panda's fur), fluids (water), cloths (flag on the bench) and armatures (panda's bones).

Bamboo particles Views for panda
Bamboo particles Detail for the panda

Final rendering scene

Final rendering scene

informaticagrafica's People

Contributors

fpolidoro avatar gianny92 avatar thirtiez avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.