POV-Ray : Newsgroups : povray.text.scene-files : screen.inc extension : Re: screen.inc extension Server Time
2 Jul 2024 02:55:38 EDT (-0400)
  Re: screen.inc extension  
From:
Date: 12 Apr 2002 08:41:22
Message: <9bldbu02kv1nairhk1v6v25v1pivhssnjs@4ax.com>

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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.