Writing /var/www/ivizlab/wiki/data/cache/2/299bd149874fd7965856b0a9daebb58a.i failed
Writing /var/www/ivizlab/wiki/data/cache/2/299bd149874fd7965856b0a9daebb58a.i failed
Writing /var/www/ivizlab/wiki/data/cache/2/299bd149874fd7965856b0a9daebb58a.xhtml failed

NPR Painter

Current Work

  • Programming
    • Painter files
      • Removing need for painter brush within csv file
      • Fixing resolution problems and brush size issues
      • Making file sleeker with less lines and adding opacity
    • Techniques
      • Adding debug feature that allows you to see intermediate images and maps
      • Fixing blur before palettization so as to get proper value difference
  • Developers Documentation
    • Description of where important things are
    • Diagram of how things connect
    • New high level flowchart

Notes

Colors for Portrait Palette Object Map
Area Palette file Colour RGB values pixel
Background bg.gif Blue 0 0 255 0 0 1
Clothes clothes.gif Green 0 255 0 0 1 0
Hair hair.gif Black 0 0 0 0 0 0
Body tone bt.gif White 255 255 255 1 1 1
Shadow sh.gif Red 255 0 0 1 0 0
Config File Parameters
  • brush_size (technique) = % of canvas .1 = 10% of canvas
    • radius of brush technique for blur, and calc
  • brush brush_size radius of the rendered brush
  • curvature - 0 = straight, 1 = sharped curve, between 0-1
  • opacity: 1=solid 0=full transparency 0-1
  • min/max stroke - self evident, will override gradient stroke calc code
  • error threshold - how big the color change has to be to decide a stroke is necessary
    • 0 = always draw a stoke, 0-1 (officially 7 will guarantee no strokes drawn)
  • grid-size: 1=same as brush, .05=half brush size (overlap), 2=twice the brush size
  • canvas resolution is output 200 means 2x as big as original
  • reference resolution is output; was 72 but will be 100
  • To add Painter output:
    • Add the eduPainter.toolkit.painter9.Painter95Output canvas at the top level and the eduPainter.toolkit.painter9.Painter95Brush for each pass. These have to be in the same order with any other canvases or brushes, so if the painter canvas is the second canvas listed, then the matching brushes must be the second brushes listed for each pass.
Painter 9.5 script file info
  • Concentration_slider 44 percent means opacity is set to 44 percent
  • No extra header needed, and it uses the brush currently selected
  • Changed “BRUSH SIZE” output to max_size_slider so it doesn’t have to be changed manually
  • Added end of line “width_unit 1 height_unit 1 resolution_unit 1 paper_color red 255 green 255 blue 255 movie 0 frames 1” to top line of file
  • No token in script file for changing zoom
 
nprpainter.txt · Last modified: 2009/05/12 17:02 by dustin
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki