I'm having a separate problem now with the same warp. This problem applies to a
regular toruse, not the "lemon" I was having problems with earlier. I can't
figure out how to put the seam of the texture at the outside (farthest from the
origin) of the torus as opposed to the inside (closest to the origin). Even if I
reverse the orientation the seam is still on the inside.
Here's an example:
#local Orient_Direct = 1; // 0 or 1
#local Torus_Radius = 64;
texture
{
pigment
{
image_map {png "GSprites_Tech_Texture_Test.png"}
translate x/2
#if (Orient_Direct = 1)
translate y*0.7
#else
translate y*0.5
#end
rotate x * 180
scale 1/3.2
warp
{
toroidal
#if (Orient_Direct = 1)
orientation -z
#else
orientation z
#end
dist_exp 0
major_radius Torus_Radius
}
}
}
I would appreciate any help.
-Mike
Post a reply to this message
|