snaut
December 23, 2013, 10:34pm
1
In case you need a last minute Christmas Card, maybe this little network can help.
It’s using Google Image Search and returns 4 pictures that match the search term. Using one of them it generates an image utilizing SOPs like the one attached.
Wishing you all Happy Holidays
Markus
CardMaker.toe (12 KB)
ptkchv
December 25, 2013, 3:51pm
4
I was having fun with this project on Christmas and i added audio reactive noise and instancing data, so i post my variant. Happy Holidays!
CardMakerAudioAdded.toe (59 KB)
rurik
December 31, 2013, 5:02am
5
This is rad Markus.
Is that “Sample” expression documented anywhere? Seems really handy!
snaut
January 2, 2014, 9:45pm
6
The sample Method is part of the python TOP Class:
sample(x,y,u,v) → (r,g,b,a)
Returns a 4-tuple representing the color value at the specified texture location. One horizontal and one vertical component must be specified.
x - The horizontal pixel coordinate to be sampled.
y - The vertical pixel coordinate to be sampled.
u - The normalized horizontal coordinate to be sampled.
v - The normalized vertical coordinate to be sampled.
r = n.sample(x=25,y=100)[0] #The red component at pixel 25,100.
g = n.sample(u=0.5,v=0.5)[1] #The green component at the central location.
b = n.sample(x=25,v=0.5)[2] #The blue 25 pixels across, and half way down.
taken from:
derivative.ca/wiki088/index. … =TOP_Class
cheers
Markus