POV-Ray : Newsgroups : povray.unofficial.patches : intersection point : Re: intersection point Server Time
18 Apr 2024 16:33:57 EDT (-0400)
  Re: intersection point  
From: CAS
Date: 27 Oct 2014 06:55:01
Message: <web.544e23e3975b2036a92a3a00@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> Le 27/10/2014 08:53, CAS a écrit :
> > Hello,I want to consult a question.I want to output the intersection point,but I
> > could not find the function to output the intersection point.I only find the
> > function of PP_Depth.Who can tell me, if I want to output the intersection
> > point,I could choose which function instead of PP_Depth().Thank you for
> > help.Expecting!
> >
> > #version unofficial MegaPOV 1.2;
> > #include "pprocess.inc"
> > #declare DepthMin=0;
> > #declare DepthMax=10
> > global_settings {
> >   assumed_gamma 1.0
> >   post_process{
> >     PP_Depth(DepthMin,DepthMax)
> >     save_file concat("pp_",output_filename(0))
> >   }
> > }
> >
> >
>
> Assuming you are using megapov, it's in the doc:
>
> PP_Init_IPoint_Outputs()
>
> f_output_ipoint_x(x,y)
> f_output_ipoint_y(x,y)
> f_output_ipoint_z(x,y)
>
> http://megapov.inetart.net/manual-1.2.1/megapov0121.html#post_processing
>
>
> --
> Just because nobody complains does not mean all parachutes are perfect.


#version unofficial MegaPOV 1.2;
#include "pprocess.inc"

PP_Init_IPoint_Outputs()
global_settings {
  assumed_gamma 1.0
  post_process{
    function { f_output_ipoint_x(x,y) }
    function { f_output_ipoint_y(x,y) }
    function { f_output_ipoint_z(x,y) }
    save_file concat("pp_",output_filename(0))
  }
}
I wrote as above,but something was wrong.Maybe how could I modify it?


Post a reply to this message

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