|
|
> Idea 2. Inverted-spherical camera with look_at in center of object
I had some moderate success generating a dirt map with this camera
in MegaPov, but it generates poor results if parts of the object are
obscured to the sphere, I guess that's similar to problem with idea 3.
// inverse-spherical camera
#declare cx = function(u,v,r) {r*cos(u*pi*2)*sin(v*pi)};
#declare cy = function(v,r) {-r*cos(v*pi)};
#declare cz = function(u,v,r) {r*sin(u*pi*2)*sin(v*pi)};
camera {
user_defined
location {
function {cx(u,v,50)}
function {cy(v,50)}
function {cz(u,v,50)}
}
direction {
function {cx(u,v,-1)}
function {cy(v,-1)}
function {cz(u,v,-1)}
}
}
Post a reply to this message
|
|