Hi all,
I was trying to bake fur information (like furlength, furdirection, etc.)
on
the underlying polymesh (according to it's "st").
I came with the (classical) idea of lauching rays from the polymesh and
gathering the fur informations
with the gather command : gather("", P, Nn, 0, 1, "surface:furdirection",
furdir, "surface:furlength", furlgt...)
Nevertheless, in order to have proper and non-aliased baking, I'm trying
to
render the polymesh like a flat object
juste like described in J.Litt and D.Goldman's BakeOven RAT Trick :
http://www.cs.wa****ngton.edu/homes/dgoldman/ezbake/EZ_Bake_Oven.htm
I clearly got the idea of shading the points describing the original 3D
surface (Pref) and rendering the points with the P(s,t,0) coordinates
(flat
object).
But as one point can have more than one "st" coord, how should I replace
the P points in the rib ?
the normal rib is like this (cube) :
PointsGeneralPolygons
[ 1 1 1 1 1 1 ]
[ 4 4 4 4 4 4 ]
[ 2 3 1 0 4 5 3 2 6 7 5 4 0 1 7 6 3 5 7 1 4 2 0 6 ]
"vertex point P" [ -0.5 -0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 0.5 0.5
0.5
-0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 -0.5 -0.5 0.5 -0.5 -0.5 ]
"facevarying float[2] st" [ 0.375 0.75 0.625 0.75 0.625 1 0.375 1 0.375
0.5
0.625 0.5
0.625 0.75 0.375 0.75 0.375 0.25 0.625 0.25 0.625 0.5 0.375 0.5
0.375 0 0.625 0 0.625 0.25 0.375 0.25 0.625 0.75 0.875 0.75
0.875 1 0.625 1 0.125 0.75 0.375 0.75 0.375 1 0.125 1 ]


|