Visualization and Animation Technology (Ray Tracing)

Graphical Rendering

Graphical rendering is the process of generating images from modelled objects, also reffered as Viewing.

Graphical rendering produces 2D views of objects from 3D models.

Graphical rendering algorithms vary based on the way we model objects. If the object is modelled through polygons, it is referred as polygonal rendering or polygonal mesh rendering (多边形网格渲染).

How to visualize an object view with computer graphics

An object is first modelled in 3D, set in a certain 3D space and then the 3D space and the object (scene model) are viewed through a rendering process. (先 Modelling,再Rendering)

Painting Metaphor

The Painting Metaphor (绘画隐射???中文实在不知道是什么) describes the Ray Casting process by simplifying the procedure a printer uses to draw an observed scene.

3 Main Steps:
  1. Look through the frame
  2. choose color
  3. print the cell

To perform the step nr. 2 a ray needs to be drawn from user’s eye through the cell intended to be painted. The color of the cell will be that of the object portion the drawn ray will hit.

If the pixel represents a object portion containing different colours, one can only consider the colour of the ray passing through the centre of the pixel or an average colour can be estimated from the 4 rays passing through each pixel’s corners.

Ray Casting

射线取色

process:

  1. Sending a ray through the pixel
  2. Stop at first object the ray hits
  3. Take the pixel color of that object
  4. If the ray doesn’t hit any object, the pixel is set to background color

Ray Tracing

Ray tracing is a computer graphics process that consists of:

  1. Following the light for a pixel backward
  2. For each pixel, send out a ray to find out where its light comes from
  3. If the ray hits an object, send out one or more rays to find out where the object’s light came from
  4. Repeat the process if these rays hit other objects
  5. Stop if the ray hits a light sourse
Advantages:

Ray tracing is a method allows you to create photo-realistic images on a computer because the fact that it process approximately reproduces the natural process of light interaction.

It can reproduce reflections, refractions/transprencies and shadows.

Disadvantages:
  1. The algorithm is complex and it is slow to process
  2. Need to model reflections, refractions and shadows for transparent objects
  3. Need to limit depth of recursion (递归):
    Typically 5 to 10 generations
    Further recursion will not significantly change the pixel color
  4. It is a pixel-based rendering, which means that the rendering speed depends on the image size
  5. Shadows appears too sharp, surface too glossy or smooth
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值