Thursday, June 23, 2011

Radiometry

Light
 
Light is electromagnetic radiant energy composed by millions and millions of photons.

Photons

A photon is a quantum (small particle) of light that has: a position (where it is); a direction (where is moving to); and behave both as a particle and as waves. A photon has a frequency, f, and a wavelength, λ (measure in nanometers). The energy q of a single photon is:
 
q = h . f

where
 
f = c / λ
 

and c is the speed of the photon in the medium where it is moving. c is most of the time the speed of light. And h is Plank's constant (6.63 × 10-34).

Thursday, June 16, 2011

A Quick and Simplify View on Visual Appearance in Graphics

  1. How do light and materials behave in real world?

    Firstly, light comes from a source (like the sun, for example).
    Secondly, light interacts with objects in a scene. Part is absorbed by the objects and the other is scattered in new directions.
    Finally, a tiny portion of the light in the scene is absorbed by a sensor (like human eye or a camera).

    Light

    Light is electromagnetic radiant energy and can be treated as rays, waves, and/or a photons (particles that also has a wave behavior).

    Irradiance is a quantity that measures the amount of light going through an area in one second. It is denoted by the letter E.
    Irradiance depends on the angle between the direction of the light ray l being considered and the normal vector n of the surface area. For this reason, Irradiance is proportional to the cosine of this angle. So if the light is getting to the area perpendicularly, then the irradiance is at its maximum value. But if the light is getting to the area not perpendicularly, the irradiance goes down while the angle increases.

Saturday, January 29, 2011

How To Create A First Person Camera for Video Games


What is a first person camera?

It's a camera mode where you don't see the whole body of the character you control in the game (see figure 1).

Figure 1: Wolfestein Screenshot

How to create a first person camera?

We can separate this into two parts: the movement part and the visualization part. With the movement part the player is able to move around. With the visualization part the player is able to look around.