myselfhimself / gmic-blender

Official G'MIC plugin for Blender3D - pre-pre-alpha
Other
34 stars 5 forks source link

Create first node inside Blender #8

Open myselfhimself opened 4 years ago

myselfhimself commented 4 years ago

Example : the sharpen node

From https://gmic.eu/reference.shtml#sharpen

Example of use:
--
  | image.jpg sharpen 300
  | image.jpg blur 5 sharpen 300,1

Should be hardcoded for now. Generation from the JSON output of G'MIC 2.90 will come later on.

myselfhimself commented 4 years ago

For showing labels those tips from Blenderchat can be used

 you have the 'depscription' field of each node property
or can use label's from layout.label(text='some nice text..')
myselfhimself commented 4 years ago

sharpen is a builtin command, not a filter, so will possibly not be in the .json output from G'MIC. Our goal in the end is to generate nodes almost exclusively from that .json file. Here are corresponding higher level sharpening filters that will belong in this file:

  [#1] Details/Constrained Sharpen
  [#2] Details/Sharpen [Deblur]
  [#3] Details/Sharpen [Gold-Meinel]
  [#4] Details/Sharpen [Gradient]
  [#5] Details/Sharpen [Hessian]
  [#6] Details/Sharpen [Inverse Diffusion]
  [#7] Details/Sharpen [Multiscale]
  [#8] Details/Sharpen [Octave Sharpening]
  [#9] Details/Sharpen [Richardson-Lucy]
  [#10] Details/Sharpen [Shock Filters]
  [#11] Details/Sharpen [Texture]
  [#12] Details/Sharpen [Tones]
  [#13] Details/Sharpen [Unsharp Mask]
  [#14] Details/Sharpen [Whiten]
-> Octave Sharpening & Texture are much appreciated

Thanks to @dtschump for pointing this out

myselfhimself commented 4 years ago

The most transparent filters for the sharpen command are : 'Sharpen [Inverse Diffusion]' and 'Sharpen [Shock filters]'

myselfhimself commented 4 years ago

As far as python scripting in concerned, in a vanilla 2.8x blender, only node groups can be scripted, having custom fields/widgets in them... and node groups can output python-scripted images but cannot read a dynamic image generated through a node. The only thing that could be read programmatically with or without node link is an image node with linked stored image file... This could be a starting point for POC instead of complaining that Blender does not have the needed patch yet... or not.

myselfhimself commented 4 years ago

This issue will be the priority for this project