| Online Seminar: ● CG/VR Course (3) |
|
|
|
The process of rendering refers to the drawing operations used to represent a 3-dimensional object modeled in image form. There are various techniques, each with its own characteristics. However, if you want realistic images, the computation time increases, so it is necessary to select and combine appropriate methods based on the specific scene to generate images efficiently.
In virtual reality (VR) and games, rendering is generally performed in real-time. To prioritize interactivity with the user and a sense of immersion, the performance of the graphics card must be fully utilized to achieve extremely fast rendering on the spot.
The process of rendering images in advance is called pre-rendering, and the videos used in movies are examples of pre-rendered footage. Unlike real-time rendering, which requires on-the-spot processing, pre-rendering involves generating images by calculating them over time, allowing for the pursuit of highly realistic representations similar to live action. Pre-rendered footage always plays identically, while real-time rendered footage can change the image based on the environment or user input. To achieve fast rendering in real-time, techniques such as low-polygon modeling and carefully designed texture mapping are necessary.
● Remove hidden areas
A process that prevents the drawing of surfaces that are hidden from view by being obscured behind other objects is called "hidden surface removal." With advancements in hardware, various methods such as scanline algorithms, Z-buffer techniques, and ray tracing have been developed.
■ Scan line method
The drawing process is performed on a pixel-by-pixel basis, using scan lines. A scanning plane is created along the line of sight and extended along a single scan line, and the displayed portion is calculated based on the intersection of this scanning plane with the object. Because it draws one row at a time, processing can be done with relatively little memory.
■ Z-buffer method
A memory area (Z-buffer) is prepared to store the depth value of each pixel that makes up the screen. During rendering, the depth information of pixels with the same coordinates is compared, and only the one closest to the viewer is written to the screen. Although it requires a significant amount of memory, this algorithm is simple, easy to implement in hardware, and enables fast processing, making it commonly used for real-time rendering.
■ Ray tracing method (also known as path tracing)
For each pixel on the projection surface, rays of light are traced backward from the viewpoint to determine the color and material of the object they first intersect. While this method can realistically simulate reflections, transmission, and refraction, it requires significant computational power because it processes every single pixel.
● Shading and shadows
The process of adding shading to a model is called "shading," and it expresses the three-dimensionality of the object. The calculation of shadows that are created when light is blocked is called "shadowing," and this is a separate process from shading.
 |
|
 |
| ▲Figure 1. Light and shadow |
|
▲Figure 2. Shading image
|
 |
|
 |
| ▲Figure 3. Shadowing image |
|
▲Figure 4. Ray tracing image
(POV-Ray option output) |
Image output: UC-win/Road Version 3.04.05
Sydney Opera House VR data: RoadDB sample data / from World Heritage sites |
● Light source
The method of calculating shading varies depending on the light source illuminating the model.
[Classification by light source]
・ Parallel light: Light rays that travel in the same direction, like sunlight. They illuminate evenly.
・Point light source: Light radiates outwards from a single point. This results in sharp edges for shadows.
・Line light source: Emits light in a linear fashion, creating softer edges on shadows.
・ Area light source: Emits light from a surface, creating softer shadows and penumbras.
[Classification based on irradiation]
Direct sunlight: Light emitted from a light source directly illuminates an object.
Indirect light: Light emitted from a source that reflects off surfaces like walls and then illuminates the area.
[Light from an object]
Reflected light: Light emitted from a source that is reflected off the surface or near-surface of an object. It can be divided into diffuse reflection and specular reflection components. Glossy surfaces exhibit more specular reflection
On metal and plastic surfaces, highlights can be created, which are expressed by specular reflection components.
・Transmitted light: Light that has passed through an object. Differences in refractive index are used to represent materials like water and glass.
・ Scattered light: Light scattered by fine particles.
In the real world, even surfaces that are not directly illuminated by light are not completely dark; they have a slight degree of brightness. This is because light repeatedly reflects around objects and reaches surfaces that are not directly exposed to the primary light source. We refer to this type of light as ambient light. Ambient light can be considered as uniform illumination from the surroundings, or as an approximation of indirect light. The Radiosity method is a computational technique used to improve the accuracy of simulating this indirect light, allowing for the representation of soft lighting and shadows, but it involves a significant amount of computation.
|
References:
• "Visual Information Processing: An Introduction to Computer Graphics and Image Processing," CG-ARTS Association, 2008 |
|
|
| (Featured in the "New Green" issue of Up&Coming '09) |
 |
|







>> Product comprehensive catalog

>> Premium membership services
>> Financial support
| Recently released products |
|
|
|