Cartoon Rendering on the Radeon®
|
|
|
The RadeonCartoon demonstrates two different techniques for rendering cartoon like objects from 3D models. The first technique uses a spheremap shown in figure 1. Using this sphere map areas with sharp curvature are colored using the edges of the sphere map giving a black line in those areas. The results of this techinque are shown in figure 2.
|
|
|
|
|
|
Figure 1 - Spheremap used
|
|
|
|
|
|
Figure 2 - Results using spheremap
|
|
|
The second technique uses ARB_texture_cube_map to give a more brushed looking effect. The X and Y sides of the cubemap look similar to figure 3 the near Z cubeface is white and the far Z cubeface is black. The results are show in figure 4
|
|
|

|
|
|
Figure 3 - X and Y cubefaces
|
|
|

|
|
|
Figure 4 - Results using cubemap
|
|
|
- RadeonCartoon Controls
-
- W - Toggle Wireframe overlay
- C - Toggle between cubemap and spheremap techinques
- V - Toggle display of surface normals
- O - Cycle through the objects.
- [LEFT MOUSE] + Mouse - Rotate Object
- [RIGHT MOUSE] + Mouse - Zoom Object
- [LEFT MOUSE] + [RIGHT MOUSE]+ Mouse - Pan Object
- [SPACE] - Stop/start object motion
- [ESC] - Quit
Downloads
Note: The source code and media should be unzipped into the following recommended directory structure to ensure you can easily compile and run the executable.
Radeonxxxxxx.zip -> x:\atiddk\OpenGL media.zip -> x:\atiddk\media
RadeonCartoon.zip
media.zip
Back to Samples Page
|
|
|