POV-Ray : Newsgroups : povray.binaries.images : antialiasing fails with very bright objects : Re: antialiasing fails with very bright objects Server Time
28 Apr 2024 19:46:54 EDT (-0400)
  Re: antialiasing fails with very bright objects  
From: Bald Eagle
Date: 23 Feb 2021 23:10:01
Message: <web.6035d08b1995ddaf1f9dae300@news.povray.org>
Functions.

Render your scene, then paste the filename into the provided spot.

Render this scene.
I think it _ought_ to do what you want.


#version 3.8;
global_settings {assumed_gamma 1.0}

#declare Zoom = 60; // 15
camera {
 orthographic
 right     x*image_width/Zoom
 up   y*image_height/Zoom
 location <0, 0, -20>  // x = 5
 look_at  <0, 0, 0>
 //rotate -y*1
}

light_source { <0, 0, -20>  color rgb <1, 1, 1>}

sky_sphere {pigment {rgb 1}}

//=====================================================================================================================
==

#declare Filename = "/home/oem/Documents/POV-Ray-3.8/PovLogo.png";
#declare ImageMap = pigment {image_map {Filename}}
#declare Pattern2 = function {pigment {image_map {Filename}}}

#declare f_red = function {max(Pattern2 (x, y, z).red, 1)-1}
#declare f_grn = function {max(Pattern2 (x, y, z).green, 1)-1}
#declare f_blu = function {max(Pattern2 (x, y, z).blue, 1)-1}

#declare OverOne = function {max(f_red (x,y,z), f_grn (x,y,z), f_blu (x,y,z))}


#declare Pigment2 =
pigment {
 function {OverOne (x, y, z)}
 color_map {
  [ 0 rgb 0 ]
  [ 1 rgb 1 ]
 }
}

#declare Resolution = max_extent (ImageMap);
#declare Resolution = Resolution + <0, 0, 1>;

box {0, 1
 pigment {Pigment2}
 translate <-0.5, -0.5, -0.5>
 scale Resolution*(1/Resolution.x)
}


Post a reply to this message

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