|
|
I want to render a mobius in Povray that has a surface texture that is a "decal"
of an image (the image is a long strip and should appear in the rendered output
as if the strip had been pressed onto the mobius).
I tried all of the map_type's defined in the documentation, but in all cases the
projection is highly distorted.
If you create an 800x100 pixel white image with a blue circle in the middle for
"surface.png", you'll see what I mean.
How can I correct the projection?
Here's the .pov file:
//---------------------------------
#declare P_R=0.2; #declare P_H=0.75;
#declare Profile =
union{
sphere {<0, P_H,0>,P_R}
cylinder{<0,-P_H,0>,<0,P_H,0>,P_R}
sphere {<0,-P_H,0>,P_R }
texture
{
pigment
{
image_map
{
png "surface.png"
map_type 0
interpolate 2
}
scale <0.20,0.2,0.2>
}
finish {ambient 0.85
diffuse 0.55
phong 1}
}
}
//----------------------------------
#declare Radius_major = 3.00;
#declare N_major = 0.5;
#declare N_minor = 2000;
//----------------------------------
#declare Nr =0; //start
#declare EndNr=N_major*N_minor;//end
#while (Nr< EndNr)
object{Profile
rotate<0,0,Nr * 360/N_minor>
translate<Radius_major,0,0>
rotate<0,Nr * 360/EndNr,0>}
#declare Nr = Nr+1;// next Nr_minor
#end // ------------ end of loop --
camera {
location <-5, 10, -15>
direction <0, 0, 2.25>
right x*1.33
look_at <0,0,0>
}
Post a reply to this message
|
|