Originally Posted by
Flesh-Eating-Bug
omfg ur first replay is awesome! xD
and one question... how do u put an head texture in pov-ray?
tx for ur attention
Head texture in povray:
This goes in the top of the .inc
#declare playerAskin=1; //keep this to 1 and use the heads below
#declare playerAname="hampa.tga"; //must be .tga and in the same directory as this .inc
#declare playerBskin=1; //same as above
#declare playerBname="soccer.tga";
This goes in the middle of the .inc, replacing the old //Head section
// HEAD
#declare player=0;
#macro BodySphere (r, g, b, Radius, rot0, rot3, rot6, rot1, rot4, rot7, rot2, rot5, rot8, rot9, rot10, rot11)
#declare player=player+1;
union {
sphere {
<0, 0, 0>, Radius
#if ((player=1 & playerAskin=0) | (player=2 & playerBskin=0))
pigment {color rgb <1,1,1>}
#else
pigment {
image_map {
#if (player=1)
tga playerAname
#else
tga playerBname
#end
}
warp {
spherical
orientation z
dist_exp 0
}
rotate <90,0,90>
}
finish {
reflection 0.0
ambient .45
phong 0.1
specular 0.9
roughness .001
}
#end
}
matrix <rot0, -rot1, rot2,
rot3, -rot4, rot5,
rot6, -rot7, rot8,
rot9, -rot10, rot11>
}
#end
Remember to change the finish{ } section of the head to match that of your joints or body, or else the head will look out of place