POV-Ray : Newsgroups : povray.general : Megapov intersection points : Re: Megapov intersection points Server Time
24 May 2024 10:55:37 EDT (-0400)
  Re: Megapov intersection points  
From: muyu
Date: 10 Feb 2019 08:50:01
Message: <web.5c602b67912c710ea6ca73bb0@news.povray.org>
"muyu" <lsy### [at] gmailcom> 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

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