|
![](/i/fill.gif) |
wrote:
> I want share three macros to manipulate vectors on screen. I know there is
> already Screen_Object in screen.inc include file but I can't use it to
> manipulate selected vertices in mesh.
and sample file to present control over distance to camera and placing
rendered version after moment in p.b.i
#include "screen.inc"
Set_Camera_Location(<-4,4,0>)
Set_Camera_Look_At(z*15)
background{x}
#local X=-.5;
#while (X<=.5)
#local Y=-.5;
#while (Y<=.5)
#local V = Screen_To_Vector_At_Distance( <X,Y> , 100 , no );
sphere{ V , 4 pigment{agate} finish{ambient 1 diffuse 0 }}
#local V = Screen_To_Vector_At_Distance( Vector_To_Screen( V ) , 50 , no );
sphere{ V , 1 pigment{bozo} finish{ambient 1 diffuse 0 }}
#local Y=Y+.1;
#end
#local X=X+.1;
#end
sphere{
Screen_To_Vector_At_Distance( <0,0> , 75 , no ) , 20
pigment{rgbt .5} finish{ambient 1 diffuse 0 }
}
Post a reply to this message
|
![](/i/fill.gif) |