torsdag 2 april 2015

Lab 1


 The first laboration contained two steps - first to create the whole color space (see image below). Here we created a interpolation function that interpolates numbers between a and b. Provided was a skeleton-code. This contained functions to draw colored pixel on place (x,y) on the screen. By default we knew that each color (red, green and blue) was represented by the interval [0,1]. We then interpolated Red to Blue and Yellow to Green. Then we interpolated each column to that base-interpolation which resulted in the desired result seen in the image below.

The next objective was to create a moving animation of stars (pixels) coming towards us. The same skeleton code was used and then we calculated the position by subtracting one dimension (z-dimension) through a pinhole-camera. Its 10 000 stars. Result is (stars tend to disapear since the videoplayer takes it as noise) below (text from AE, music from StarWars).


Work: both authors on both parts.
File: https://drive.google.com/file/d/0B3b0-ZnsUYXpSHFKTmdWRDBxRkk/view?usp=sharing

Have a colored day
/Mad evil scientists (Viktor and Charly)

Inga kommentarer:

Skicka en kommentar