※ray node(SOP): Automatically generate attributes int hitprim, vector hitprimuv
e.g.)
int success;
s@name = getattrib(1, "prim", "name", i@hitprim, success);
xyzdist() (Can get distance to the surface & primnum & Parametric UV)
float xyzdist(<geometry>geometry, vector origin)
float xyzdist(<geometry>geometry, vector origin, int &prim, vector &uv)
float maxdist = 10;
@dist = xyzdist(1,@P,i@pr,v@uv,maxdist);
@P = primuv(1,"P",@pr,@uv);
e.g.)
int success;
s@name = getattrib(1, "prim", "name", i@hitprim, success);
xyzdist() (Can get distance to the surface & primnum & Parametric UV)
float xyzdist(<geometry>geometry, vector origin)
float xyzdist(<geometry>geometry, vector origin, int &prim, vector &uv)
float xyzdist(<geometry>geometry, vector origin, int &prim, vector &uv, float maxdist)
e.g.)float maxdist = 10;
@dist = xyzdist(1,@P,i@pr,v@uv,maxdist);
@P = primuv(1,"P",@pr,@uv);
float xyzdist(<geometry>geometry, string primgroup, vector origin)
primuv() (Can get position and color)
float xyzdist(<geometry>geometry, string primgroup, vector origin, int &prim, vector &uv)
float xyzdist(<geometry>geometry, string primgroup, vector origin, int &prim, vector &uv, float maxdist)
<type>[] primuv(<geometry>geometry, string attribute_name, int prim_num, vector uvw)
vector prim_normal(<geometry>geometry, int prim_number, vector uvw)
vector prim_normal(<geometry>geometry, int prim_number, float u, float v)
vector prim_normal(<geometry>geometry, int prim_number, float u, float v, float w)
--sample in English
--sample in Japanese
-primuv()は何ができるのか
-xyzdist()は何ができるのか?
No comments:
Post a Comment