POV-Ray : Newsgroups : povray.unofficial.patches : MegaPOV postprocess - possible bug? : MegaPOV postprocess - possible bug? Server Time
5 May 2024 22:28:17 EDT (-0400)
  MegaPOV postprocess - possible bug?  
From: Roman Reiner
Date: 24 Apr 2006 11:15:01
Message: <web.444ce98a70b98d472db50ba20@news.povray.org>
Hi Guys

I ran into several problems when trying to work with MegaPOV's postprocess
feature more precicely when trying to use the f_pp_*channel*(x,y,Ref)
functions. At this time the failures where only that the output did not
match the functions i wrote. several parts of the calculations inside the
function blocks seemed to be ignored. for example
"function { 1-4*f_pp_red(x,y,1) }"
leaded to the same result as just
"function { f_pp_red(x,y,1) }"
namely a simple copy of the image. only changes at the parameters of the
function made a change (e.g. -x instead of x).

(This problems did however not occur with Ref=0)


After further simplifing the code i finally ran into a runtime error.

The source that reproduces the error is:
<code>
#version unofficial MegaPOV 1.21;

#include "pprocess.inc"

PP_Init_Alpha_Colors_Outputs()
PP_Init_PP_Alpha_Colors_Outputs()

global_settings {
  post_process {
    function { 1-f_output_red  (x,y) }
    function { 1-f_output_green(x,y) }
    function { 1-f_output_blue (x,y) } //(*)
    function { 1-f_output_alpha(x,y) }
    save_file "step1.png"
  }
  /*post_process {  //<--comment this in
    function { f_pp_red  (x,y,1) }
    function { f_pp_green(x,y,1) }
    function { f_pp_blue (x,y,1) }
    function { f_pp_alpha(x,y,1) }
    save_file "step2.png"
  }*/
}
</code>

When the second block is commented in the render stops at the last line of
the first postprocess step marking the (*) line saying:
"Parse Error:
Runtime error detected in function ''. Function evaluation stack underflow."
The error occurs as well when i use f_pp... with Ref=0 instead of
f_output... in the first post_process block.

Is this a bug? Or am i just making something wrong? Anyone experiences
similar problems? Are there workarounds?

Enlightenment wanted :)
Regards Roman


MegaPov 1.2.1 based on POVRay 3.6.1.msvc7.unofficial-win32
with POVRay 3.6.1.icl8.win32
WindowsXP Home Edition - Build 2600.xpsp_sp2_gdr.050301-1519 : Service Pack
2
Celeron 2.60GHz - 640MB RAM


Post a reply to this message

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