14
Honours Graphics 2008 Session 12

Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Embed Size (px)

Citation preview

Page 1: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Honours Graphics 2008

Session 12

Page 2: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Today’s focus

• Non-photorealistic rendering

• …other topics requested in class…

Page 3: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Non-photorealistic rendering

• Sometimes graphics applications require the use of non-photorealistic rendering to achieve some effect (artistic expression, alternate spectrum rendering, etc)

• For example: cel-shading, pencil etching, calligraphy (japanese big brush style), etc

Page 4: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Non-photorealistic rendering

False color imaging

Page 5: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Non-photorealistic rendering

Pencil sketching Quake

Page 6: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Non-photorealistic rendering

Artistic impression

Page 7: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Non-photorealistic rendering

Calligraphy (Japanese Big Brush)

Page 8: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Non-photorealistic rendering

Cel-shading

Page 9: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Cel-shading

• Also “cell-shading” and “cartoon shading”

• 3D impression of models in traditional cartoon-style lighting, along with pronounced contouring

Page 10: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Cel-shading, how-to

• Quite easy to do even on older graphics hardware

• Two parts: lighting and contouring

Page 11: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Cel-shading, how-to, cont.

• Lighting follows the classic diffuse model, but the resultant color value is instead indexed into a one-dimensional array; instead of

a blocky lighting array is used

Page 12: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Cel-shading, how-to, cont.

• Contouring is done through inverse backface removal

• First render model normally using cel-lighting

• Set to render black wire-frame• Set lines to render thick• Set to cull front faces• Render model (z-buffer handles

elimination of invisible contours)

Page 13: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Cel-shading, result

Page 14: Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…

Topic defined by students

• …