POV-Ray : Newsgroups : povray.beta-test : Bug with bounded_by : Bug with bounded_by Server Time
28 Apr 2024 23:30:59 EDT (-0400)
  Bug with bounded_by  
From: Alain
Date: 11 Feb 2013 12:01:24
Message: <511923e4$1@news.povray.org>
While rendering some older scenes, I stumbled on this one.

The bounding don't work correctly when used in a way similar to an 
intersection.
The bounded object itself is not bounded correctly, it's as if the 
bounding object is oriented relative to the camera.
Next, there is a huge problem with the shadows: Most of the time, the 
part of the original object OUTSIDE the bounding object still cast 
shadows, but not always.
It's mostly appen when using some infinite primitive, like a quadric, 
but can also appen if the bounded object is a finite primitive or some CSG.

The following scene shows both problems.

//////////////////////////////
#version 3.7;
#include"shapes_old.inc"

plane{y,-2 pigment{rgb 1}}
union{
	object{Cylinder_X }
	object{Cylinder_Z}
	pigment{rgb<0,1,0>}
	bounded_by{box{<2,1,2><-2,-1,-2>}}
	}
box{<2,1,2><-2,-1,-2> pigment{rgbf<1,0.5,1,1>}}

light_source{ 100 rgb 1 }

camera{location<1,3,-9>*2 look_at<0,-2,0> rotate 90*y*clock}
//////////////////////////////


Alain


Post a reply to this message

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