POV-Ray : Newsgroups : povray.binaries.images : crash on modified sample file : Re: crash on modified sample file Server Time
16 Aug 2024 22:12:20 EDT (-0400)
  Re: crash on modified sample file  
From:
Date: 12 Dec 2001 17:40:16
Message: <dpmf1uoe65u11c5th7om3oipcns0iverkt@4ax.com>
On Wed, 12 Dec 2001 23:22:43 +0100, marabou <not### [at] availableyet> wrote:
> where lies the secret of the non-intersectional balls? in the 
> trace()-function?

partially yes
if you don't know what 'trace' does check description under
http://www.povray.org/working-docs/id000136.html#6_1_4_6

> is there a way for this in v3.1?

yes but you have to know some basic algorithms connected with finding ray's
intersection with objects (i.e. sphere)
iirc you can find some description of it within 'raytracer' part of new
documentation at http://www.povray.org/working-docs/id000107.html#4_2

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

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