POV-Ray : Newsgroups : povray.general : What to do with the pixel in the middle : What to do with the pixel in the middle Server Time
26 Apr 2024 03:51:48 EDT (-0400)
  What to do with the pixel in the middle  
From: ingo
Date: 1 Feb 2019 16:34:36
Message: <XnsA9E9E5AA556F3seed7@news.povray.org>
Tinkering with various user defined cameras I often seem to run into the 
following; using select in a function you either select bigger smaller or 
bigger and equal or smaller:

from a stereo cam:
#local D2_X_Fn = function(u,v){
  select(
    (u<=0),   //u<0????
    -1,
    D1R_X_Fn((u/AspectU*image_width)-0.25,v),
    D1L_X_Fn((u/AspectU*image_width)+0.25,v)
  )
};

the alternative is select only smaller or bigger resulting in a pixel wide 
black line.

So, what to do with the pixel in the middle? Another select with u=0?

ingo


Post a reply to this message

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