|
|
SimCloth1a3.zip
SimCloth_Samples1a1.zip
now available for download linked from
http://ca.geocities.com/morayplugin
You can now select a material or texture. If 'texture' has an entry then
material is ignored. Wind pigment has moved to this new control.
Constraints are done by the colour of an image map RGB for x,y,z; if I get
it working fully :-)
For a 30x30 simcloth{} my plugin gives(watch for word wraps)
...
#local f_Constraint = function {pigment{Material2}}
#local I=0;
#while (I <= 30)
#local J=0;
#while (J <= 30)
#write(file,(I*30)+I+J,",",f_Constraint(I/30,J/30,0).x,",",f_Constraint(I/30
,J/30,0).y,",",f_Constraint(I/30,J/30,0).z,"\n")
#set J=J+1;
#end
#set I=I+1;
#end
...
However the resulting simcloth file has
...
217, 0.000000000000, 0.000000000000, 0.000000000000,
248, 0.000000000000, 0.000000000000, 0.000000000000,
279, 0.262744992971, 0.262744992971, 0.262744992971,
310, 0.260048985481, 0.260048985481, 0.260048985481,
341, 0.262744992971, 0.262744992971, 0.262744992971,
...
The individual indexes can have different values but the x,y,z seem to
always be the same. Still working on a solution.
Comments welcome.
Stephen
Post a reply to this message
|
|