|  |  | "muyu" <lsy### [at] gmail com> wrote:
> I would like extract the coordinates (X, Y, Z) of all the intersection points in
> the image. It seems the megapov function PP_Init_IPoint_Outputs can do this job.
> However I tried the following code. I can not get the results expected. I can
> only get the rendered image but not the coordinate information. How could I set
> the filename and folder to export the results? Thanks for your help.
>
> Shouyang
>
> #version unofficial MegaPov 1.1;
>
> #include "pprocess.inc"
> PP_Init_IPoint_Outputs()
>
> #declare Camera_Location = <-4,7,-4>;
> #declare Camera_Lookat   = <10,-10,10>;
>
> light_source {< 0, 0,  100> color rgb<1,1,1>}
>
>
> camera {                  perspective
>   location Camera_Location
>   look_at    Camera_Lookat
>   direction z
>   angle 20
> }
>
> // ----------------------------------------
>          union {
>   sphere {0,1}
>   sphere {<-2,0,-2>,1}
>   sphere {< 5,0, 5>,1}
>   sphere {<10,0,10>,1}
>   box {-10,10}}
Does anyone has idea of this? Or is it possible to extract these
information using Povray directly rather than Megapov? Thanks again.
SY Post a reply to this message
 |  |