Hasso-Plattner-Institut
  
Hasso-Plattner-Institut
Prof. Dr. Jürgen Döllner
  
 

To run your first NPRComposer project, do the following steps

  1. Open a new template project (File->New Project)
  2. Import Geometry (Project->Import geometry)
  3. Apply an existing effect (gauss_blur)

Replace the template lua code (the open tab in the editor) with the following:

function main()
    gauss_blur { src = COLOR_SRC, dst = TEX_DST, img_size = COLOR_SRC.size, sigma = 1.0 }
end

#Navigate through the scene

Click and drag your mouse inside the presenter window to zoom, pan and rotate the view

#Adding a Parameter

Type the following line of code at top of your lua script:

gauss_sigma = parameter("sigma value", 1.0, 0.0, 5.0)

and alter the effect-line as follows:

gauss_blur { src = COLOR_SRC, dst = TEX_DST, img_size = COLOR_SRC.size, sigma = gauss_sigma }