Journal of System Simulation ›› 2024, Vol. 36 ›› Issue (7): 1699-1712.doi: 10.16182/j.issn1004731x.joss.23-0458

Previous Articles    

Real-time Non-photorealistic Rendering Method for Black and White Comic Style in Games and Animation

Hu Yan(), Chen Lizhe(), Xie Hanna, Ge Yuyao, Zhou Shun, Cai Xingquan   

  1. College of Information, North China University of Technology, Beijing 100144, China
  • Received:2023-04-18 Revised:2023-06-26 Online:2024-07-15 Published:2024-07-12
  • Contact: Chen Lizhe E-mail:huyan0413@126.com;chenlizheme@outlook.com

Abstract:

To address the issues of high resource consumption and lengthy workflow in general non-photorealistic, this paper proposes a real-time non-photorealistic rendering method for black and white comic style in games and animation. A specialized lighting model is designed to highlight the main environmental light and the grayscale grading of diffuse reflection based on the analysis of the lighting model effect. The pre-processing of the scene is achieved by merging the various components of the lighting model. A screen space three-phase edge detection method is proposed to sequentially perform depth edge detection, normal edge detection, and color edge detection on the pre-processed scene lighting results, and the edge detection results are combined. The scene lighting results are rendered by screen space partitioning, utilizing dot shading and line shading respectively based on the grayscale value of the lighting results, with interpolation applied to shading boundaries. The results are merged by designing a segmented function based on the grayscale value of the lighting model results, combining the screen space three-phase edge detection results with the screen space partition rendering results to obtain the final rendered output. Experimental results demonstrate that the proposed method can achieve non-photorealistic rendering of black and white comic style with relatively low resource consumption and reduced error rate, showcasing a distinctive black and white comic style.

Key words: black and white comic style, non-photorealistic rendering, real-time rendering, specialized lighting model, edge detection

CLC Number: