DogLua - Lua scripting for Project Dogwaffle:

Water Reflection

back

 DogLua:   Overview - Downloading - Reference Guide - Sample Scripts - Lua Browser
  see also:  GUI Server - more SDK Info

 
Water Reflection
This script is based on a discussion thread at ArtWeaver's Lua scripting forum. It was slightly adapted and changed to work on Project Dogwaffle and also tested to work with Pixarra Twistedbrush

>>> See the forum thread at ArtWeaver

You can play with the parameters and find some great results easily. Click the image below for example:



Getting started with Digital
Painting on a slim budget:


PD Artist now $29!
Draw, Sketch, Animate & Paint
powered by Project Dogwaffle



-- water reflection, based on a posting
-- on the  ArtWeaver forum by Singerxy
-- adapted by Philip Staiger
--

-- try these values for example:
-- ywavelength = 0.001
-- yamplitude = 10
-- rangefactor = 0.2
-- xwavelength = 2
-- xcenter = 0.1

ywavelength = 0.01
yamplitude = 50
rangefactor = 0.5
xwavelength = 10
xcenter = 0.5
y0 = height/2
x0 = width*xcenter

for y=0, y0-1 do
  for x=0, width-1 do
    tempy = y/y0
    x1 = (1-tempy) * yamplitude * math.sin(tempy * tempy * rangefactor /ywavelength)
   
    x2 = (1-tempy)*(1-tempy) * yamplitude * math.sin((x-x0) * rangefactor / xwavelength)
    h,s,l = get_hsv (x+x1+x2,y)
    l = (1+tempy)*l
    set_hsv (x,height-y,h,s,l)
  end
end









into 3D: draw a shape, and see it
automatically turn it into 3D
 
Archipelis
Designer
simply trace a shape from a backdrop image, and see it turn into 3D
cool tool for rapid 3D model creation and prototyping from images