POV-Ray : Newsgroups : povray.advanced-users : VRand_On_Object? : Re: VRand_On_Object? Server Time
29 Jul 2024 14:22:20 EDT (-0400)
  Re: VRand_On_Object?  
From: RAY
Date: 15 Feb 2002 16:23:45
Message: <3c6d7c61$1@news.povray.org>
> In what way better, faster,more points on the object (less misses), hits
more
> evenly distributed?
preferably fast and evenly distrubuted
> After I read your post I did a little test. I had five different ways to
shoot
> traces at an object.

Is there a way without calling trace?
This works, anyway
> Here's a quick list of the results:
> in Box with ray shot toward the center ___ 100% hit  : placement Good
> in Box with ray shot side ways _________  80% hits : placement Fair
> on Cylinder with ray shot side ways______ 70% hits  : placement Fair
> on Sphere with ray shot toward the center  100% hits : placement Good
> on Sphere with ray shot side ways _______ 20% hits : placement Fair

I guess on a box is pretty acurate, but if you used a mesh, it could have a
alcove type thing, or a pit, where that wouldn't work, but then again that
isn't needed in my macro to randomly place hairs ( it's for a hair
simulation using sphere sweeps, I need the macro to find my first point)
Thanks

> The boxes: used (VRand_In_Box) for the random number.
> The spheres used(Vrand_on_Sphere)for the random number.
> I made the random number generator for the cylinder
Thanks a bunch, this really helped


Post a reply to this message

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