Visualization and Animation Technology (Lighting & Reflection)

Lighting in Computer Graphics

Lighting in computer graphics refers to scene illumination. It deals with light sources and their effects on the represented model and scene appearance.

Lighting and closely connected to reflections because both are responsible to the way a viewer perceives objects.

4 types of light sources: ambient, distant, point, spot lights.

Ambient Light

A light does not exist in nature, but it is needed in computer graphics to cope with approximations of light reflections, etc.
A light has no origin and no direction and it is equally present everywhere in the environment. It’s strength can be turned through the Ka element.

Distant Light

Light coming from a distant undefined position that has a specific direction. E.g. Sun light

One direction

Point Light

A light that comes from a specific position (origin) and it is radiated from there towords all directions. Its strength diminishes from the light origin.

position is stable.
all direction
(Fall-off / Decay)

Spot Light

It is radiated within a specific cone. Its strength diminishes with the distance from the light origin (decay) but also with the distance from the central axis of the light (drop off).

position is stable.
subset of directions
(Fall-off / Decay & Drop-off)

Drop-off & Decay

The Decay (fall off) represents the light that fades with the distance from the light source.
The Drop Off represents the light that decreases from the center of the light cone to the edges to the light cone.

Reflection

Reflection in computer graphics refers to the light intensity bounced back after hitting a surface.
It is important because is among the main components responsible for the way a viewer perceives objects.

Reflection is closely connected to lighting.

3 types of reflections: ambient, diffuse, specular.

The Ambient Reflection

due to ambient light sources

The Diffuse Reflection

due to the diffuseness of a surface which is illuminated by a distant light.
The viewing direction has no effect on the brightness of the surface.

The Specular Reflection

due to the specularity of a surface which is illuminated by a distant light.
The specular reflection depends on:

  1. the orientation of the surface
  2. the direction of the distant light
  3. the direction from which the surface is being viewed
Differences between Diffuse Reflection & Specular Reflection

the amount of light reflected by a surface
how this varies based on viewer’s position

Main elements in estimating Reflection

The main elements that play a role are:

  1. the light source (position, direction and spread)
  2. the surface normal
  3. mirror direction
  4. the viewer position

Phong Reflection Model

The Phong reflection model sums up Ambient, diffuse, specular reflections

I = KaIa+ KdId + KsIs
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值