Proposal: Blender NPR Line Rendering Improvement

LANPR

(Updated on 18/7/20)

note: GSoC2018 has concluded, please refer to Conclusion Page链1 for latest info

Proposed by Yiming Wu

To developers and artists who is looking forward to have a more production-ready NPR line render, I propose some improvements to blender's freestyle (or not using freestyle), enables much faster (real time preferred) line rendering with much fewer errors. Many artists who I once worked with have suggested that this feature should go into blender's code base to ensure a fluent workflow. As blender's 2.8 hasn't decided freestyle's fate and it will very likely became obsolete if no one cares about it anymore, therefore I present my developement here as a proposal to this year's GSoC project, and hope it can demonstrate its ability.

And I'd like to thank...链2

Targets

This proposal gives two options on major targets.

  1. When the major focus is the Real Time solutions, the target should be:

    1. Achieve viewport real time NPR line drawing. (and corresponding UI)
    2. Line texture/style support.(and corresponding UI)
  2. When the major focus is Offline Rendering, here are the targets:

    1. Overcome occlusion computation errors.
    2. Making Freestyle running on multi-thread.
    3. Implement intersection lines.
    4. Implement a more user friendly line-set structure.

    detailed description for this solution please CLICK HERE>>>链3.

LOOK HERE>>>链4 for another comparison I did for realtime solution, a hybrid solution for future is also proposed, which I consider valuable for future devs.

Many people have been giving me suggestions and asking questions, so Here>>>链5 I present my opinion to these feedbacks.

Benefits

Freestyle will become production ready for it will involve nearly zero post-render hand trimming. This is a huge benefit for artists creating stylized images especially in comic/manga style.

People who use Freestyle to generate engineer figure or animation will get accurate result with less time.

Future real time preview feature can co-operate with eevee, give very promising cartoon render effect.

Project Schedule

GSoC2018 In Progress

Development Log Here!

(due to change of solutions this section become more variable...)

  • OPTION ONE To implement two new real time solutions: estimated 5 Weeks

    • DPIX implementation: about 1-2 weeks, Blender should already have many GL api wrappings, they will make things easier.
    • Snake implementation: about 3 weeks, including basic functions, line style support, ui and so on.
    • DPIX with GPU intersection line will spend more time.
  • OPTION TWO To implement Freestyle speedup: estimated 6 Weeks

    • Infrastructure adaptation: about 1-2 Weeks
    • Algorithm integration: about 2-3 Weeks
    • Realtime line style preview: about 1 Week
    • Freestyle user interface reconstruction: about 1 Week

    Because nearly all algorithm thing are implemented and tested, it should be not very hard to integrate it into Blender.

  • My school classes will finish at around May 20th and since then I'm free to work on this project full time until August 30th.

  • Some semester presentation is required at around June 10th, it may take two or three days.

About me

My name is Yiming Wu (吴 奕茗). I live in China.

Currently studying at Industrial Design Department at Xi'an Jiaotong University.

Blender User experience since 2011. Using it as a hobby, good at hard-surface and mechanical structure modeling. Not quite good at sculpting. I have a portfolio about some of my blender usage at Artstation链20.

Programming experience

(Envidential matter can be provided)

  • Internship at 3DPunk.com (a Chinese website similar to Sketchfab), worked on PBR and NPR shaders, three.js drawing core codes, and a server-side image generation for patent agent client. Approved by devs.
  • Coding our own studio 3d test platform (c library), including Win32, OpenGL (api boundle and making shaders), user interface kernel, scene management, file io, node graph, animation and so on. Under continuous development. Tested and used at Beijing PIGO studio, one of BlenderCN community's major studio.
    • images used to demostrate line render result in this proposal are also captured in this platform.
  • Mobile app user interface design for a Chinese website myouth.cn. Pending approval.
  • Wrote several Blender RNA Architecture Analysis documents for Chinese developers.

I haven't submitted code to d.b.o. But I can certainly do some small hacks to show that I'm able of solving problems in Blender.

Contact

E-Mail: xp8110@outlook.com

freenode IRC username: YimingWu

Twitter: @ChengduLittleA链21

Weibo: @成都-小A-nicksbest

Personal Website: www.wellobserve.com (not mainly for developing stuff)

QQ: 1094469528

I'd like to thank...

All feedback I get from mailing list, irc, discord, facebook currently. Wasili has been very active as a NPR enthusiasm and give me some new viewpoint. Developer KAJIYAMA and many others have been focusing on this too. Thanks for Christian Michelin's feedback on animation usages. BlenderCN's support is also great. Thank you all for suggestive info!


链接列表

http://lanpr.com/NPR/2018Summer/Conclusion.md 链1

http://lanpr.com/NPR/2018Summer/#I'd_like_to_thank... 链2

http://lanpr.com/NPR/2018Summer/Plans.md 链3

http://lanpr.com/NPR/2018Summer/Solutions.md 链4

http://lanpr.com/NPR/2018Summer/ArtistsImpression.md 链5

http://lanpr.com/NPR/2018Summer/Questions.md 链6

http://lanpr.com/NPR/2018Summer/logs/Week1.md 链7

http://lanpr.com/NPR/2018Summer/logs/Week2.md 链8

http://lanpr.com/NPR/2018Summer/logs/Week3.md 链9

http://lanpr.com/NPR/2018Summer/logs/Week4.md 链10

http://lanpr.com/NPR/2018Summer/logs/Explained.md 链11

http://lanpr.com/NPR/2018Summer/logs/Week5.md 链12

http://lanpr.com/NPR/2018Summer/logs/Week6.md 链13

http://lanpr.com/NPR/2018Summer/logs/Week7.md 链14

http://lanpr.com/NPR/2018Summer/logs/Week8.md 链15

http://lanpr.com/NPR/2018Summer/logs/Week9.md 链16

http://lanpr.com/NPR/2018Summer/logs/Week10.md 链17

http://lanpr.com/NPR/2018Summer/logs/Week11.md 链18

http://lanpr.com/NPR/2018Summer/logs/Week12.md 链19

https://www.artstation.com/nicksbest/albums/39788 链20

https://twitter.com/ChengduLittleA 链21