SlideServe
Menu
Préférences
© SlideServe · v2026

Real-Time Pencil Rendering

maik avatar
23 diapositives · 385 Views · Jul 27, 2014

Explore the implementation of real-time pencil rendering in object and screen space, tackling challenges in contour detection and interior shading using innovative algorithms. Learn how to achieve stunning results with detailed illustrations. 8 Relevant

Real-Time Pencil Rendering - slide 1
01 / 23Real-Time Pencil Rendering
1 / 17

Télécharger la présentation

Real-Time Pencil Rendering
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Real-Time Pencil Rendering Marc Treib

  2. Contents • Introduction: Pencil Drawing • Challenges • Contours • Interior Shading: Hatching • Object vs. Screen Space • Implementation in Object Space • Implementation in Screen Space • Results • Summary

  3. 1 Introduction: Pencil Drawing

  4. 1 Introduction: Pencil Drawing

  5. 1 Introduction: Pencil Drawing

  6. 2 Challenges • Contours: • Errors in contours • Multiple „trial-and-error“ lines • Hatching: • Maintain constant stroke size • Continuously adjust stroke density • Align stroke direction with shape (curvature)

  7. 3.1 Contour Detection • Object Space Approach: • But how to implement this?

  8. 3.1 Contour Detection • Screen Space Approach: • Render depth and normals to textures • Apply edge detection algorithm (in a pixel shader) • Optionally: Object IDs (colors)

  9. 3.2 Contour Shaking • Divide screen into regularly sized rectangles • Perturb texture coordinates • E.g. with sine function + random offset • Map contour image onto this distorted plane • Repeat for multiple lines

  10. 4.1 Hatching: Object vs. Screen Space • Object space approach: Map textures containing pencil strokes onto objects, like conventional texture mapping • Strokes stick to objects • Need to adapt stroke widths and densities with distance • Need continuous global parameterization

  11. 4.1 Hatching: Object vs. Screen Space • Screen space approach: Map stroke textures onto objects in screen space • Easier control of stroke widths and densities • No object space continuity • „Shower-door-effect“

  12. 4.2 Implementation in Object Space • Tonal Art Maps: • Strokes in one image appear in all images to the right and down from it • Store in 3d texture

  13. 4.2 Implementation in Object Space • Rendering: 6-way blending

  14. 4.2 Implementation in Object Space • To circumvent the need for a continuous global parameterization: Use Lapped Textures

  15. 4.3 Implementation in Screen Space • Stroke textures: • Similar to object space approach, but don‘t need to bother with mipmaps

  16. 4.3 Implementation in Screen Space • In the vertex shader: • Project 3d curvature direction onto screen space • Compute brightness • In the pixel shader: • For each vertex, rotate texture coordinates to projected curvature direction • Blend 3 stroke textures (one per vertex)

  17. 5 Results

  18. 5 Results

  19. 5 Results

  20. 5 Results Demo!

  21. 6 Summary • Contours: • Edge detection using 2d image processing algorithm • Errors in contours by projecting onto distorted plane • Interiors: • In object space: • Tonal Art Maps, 6-way blending, Lapped Textures • In screen space: • Rotate and map textures in screen space, 3-way blending

  22. Thanks for listening! Questions?

  23. Bibliography • Emil Praun, Adam Finkelstein and Hugues Hoppe. Lapped textures. In SIGGRAPH '00: Proceedings of the 27th annual conference on Computer graphics and interactive techniques, 2000. • Emil Praun, Hugues Hoppe, Matthew Webb and Adam Finkelstein. Real-time hatching. In SIGGRAPH '01: Proceedings of the 28th annual conference on Computer graphics and interactive techniques, 2001. • Matthew Webb, Emil Praun, Adam Finkelstein and Hugues Hoppe. Fine tone control in hardware hatching. In NPAR '02: Proceedings of the 2nd international symposium on Non-photorealistic animation and rendering, 2002. • Hyunjun Lee, Sungtae Kwon and Seungyong Lee. Real-time pencil rendering. In NPAR '06: Proceedings of the 4th international symposium on Non-photorealistic animation and rendering, 2006.