Git Product home page Git Product logo

ayp1's Introduction

ayp1

Every coding resource made in "Algoritmos y Programacion I". -Universidad de Buenos Aires.

How to use

Open any of the folders and trust the corresponding Makefile (I wouldn't trust the folders starting in 'P', they're not supposed to work...).

Then check the steps depending on the TP number.

TP1

Draw a simple B&W scene in which you can identify a sphere based on its centre and radius (Coordenates, radius, and resolution defined in main.c)

Before you execute the main bin, redirect the output into a file (ie: ./main > image.ppm). This will generate a PPM image

TP2

Still a B&W scene, but know we care about a third dimention and lighting. Coordinates take the form of arrays so it's easier to have more spheres and lights. Shadow also take place.

Running this should be the same as TP1 (./main > image.ppm).

TP3

Spheres and lights become structs so we can add a little bit of color into their lifes. Also reflections (later added) take place.

We keep running this as ./main > image.ppm

TP4

Forget the spheres and anything with more than 2 dimensions. Now we care about Binary files. Now you can create a BMP image or a PPM depending on the file extension you indicate by running ./main WIDTH HEIGHT <filename>.

ayp1's People

Contributors

paciook avatar

Watchers

 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.