POV-Ray : Newsgroups : povray.unofficial.patches : intersection point Server Time
29 Mar 2024 03:12:44 EDT (-0400)
  intersection point (Message 1 to 4 of 4)  
From: CAS
Subject: intersection point
Date: 27 Oct 2014 03:55:00
Message: <web.544dfa03ee0faea06a92a3a00@news.povray.org>
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))
  }
}


Post a reply to this message

From: Le Forgeron
Subject: Re: intersection point
Date: 27 Oct 2014 06:39:11
Message: <544e20cf$1@news.povray.org>
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.


Post a reply to this message

From: CAS
Subject: Re: intersection point
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

From: Le Forgeron
Subject: Re: intersection point
Date: 27 Oct 2014 07:40:10
Message: <544e2f1a$1@news.povray.org>
Le 27/10/2014 11:52, CAS a écrit :

> I wrote as above,but something was wrong.Maybe how could I modify it?
> 
> 
> 
Please elaborate a bit more on "something was wrong", as my cristal ball
is still in repair and I got no date for its return.

What is your output format ?
Why didn't you provide a fourth function for alpha ?
How is it "wrong" ?

Did your output filename have drive or directory part in it ? (#debug it ?)

-- 
Just because nobody complains does not mean all parachutes are perfect.


Post a reply to this message

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