POV-Ray : Newsgroups : povray.unofficial.patches : Accuracy of trace w/ blobs? Server Time
1 Nov 2024 11:16:10 EDT (-0400)
  Accuracy of trace w/ blobs? (Message 1 to 3 of 3)  
From: Greg M  Johnson
Subject: Accuracy of trace w/ blobs?
Date: 20 Nov 2000 21:15:17
Message: <3a19dab5@news.povray.org>
I've set up a blob which is about 100 cylinders and one big sphere.  The
cylinders are arranged kind of like cloves on an orange.

I've been calling a trace function to it and getting the wackiest of
results.
    #declare Downhere=
trace(collection,actorp[n]+<0,100,0>,-y,Normhere);
gives a different value for Downhere.y than:
    #declare Downhere= trace(collection,actorp[n]+<0,10,0>,-y,Normhere);

The +<0,100,0> trace value is 15 units below the one w/<0,10,0>.


Post a reply to this message

From: Greg M  Johnson
Subject: wait a sec
Date: 21 Nov 2000 09:06:43
Message: <3A1A8021.4DAC1120@my-dejanews.com>
I just tried again with a much simpler scene and had no probs.  Will post
the full file later.


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Accuracy of trace w/ blobs? a bug?
Date: 21 Nov 2000 21:41:33
Message: <3a1b325d@news.povray.org>
#version unofficial MegaPov 0.5;
#include "colors.inc"
#declare yall=9;//height of cylinders
#declare radi=.8;//radi of cylinders
#declare stren=.0005;//strength in blob
#declare collection=blob{
    threshold 0.5
    cylinder{<9.25,0,2.75>,<9.25,yall,2.75>,radi,stren}
    cylinder{<10.25,0,6.25>,<10.25,yall,6.25>,radi,stren}
    cylinder{<10.25,0,8.25>,<10.25,yall,8.25>,radi,stren}
    cylinder{<10.25,0,8.75>,<10.25,yall,8.75>,radi,stren}
    cylinder{<10.25,0,10.75>,<10.25,yall,10.75>,radi,stren}
    cylinder{<10.25,0,12.75>,<10.25,yall,12.75>,radi,stren}
    cylinder{<10.75,0,5.25>,<10.75,yall,5.25>,radi,stren}
    cylinder{<11.25,0,2.25>,<11.25,yall,2.25>,radi,stren}
    cylinder{<11.25,0,4.25>,<11.25,yall,4.25>,radi,stren}
    cylinder{<11.25,0,6.25>,<11.25,yall,6.25>,radi,stren}
    cylinder{<11.25,0,9.75>,<11.25,yall,9.75>,radi,stren}
    cylinder{<11.75,0,2.75>,<11.75,yall,2.75>,radi,stren}
    cylinder{<11.75,0,6.75>,<11.75,yall,6.75>,radi,stren}
    sphere{<0,-300,0>,568.25,1}  //also try changing this radius to 600,
then 601.
    pigment {White}
}

#declare n=5;
#while(n<670)

#declare Norm=<0,0,0>;
#declare tracey=trace(collection,<10,n,10>,-y,Norm);
#debug "\n tracey.y is "
#debug str(tracey.y,7,4)
#debug "when n is "
#debug str(n,7,4)

#declare n=n+10;
#end

camera {
  location <0, -65,-0>  look_at  <0, 0, 0>
  angle 30}

light_source{<10,200,-50>rgb 1.2}

fog { fog_type 1 distance 2000 rgb <.2,.3,.7>}


Post a reply to this message

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