POV-Ray : Newsgroups : povray.general : how to prevent overlapping random objects? : Re: how to prevent overlapping random objects? Server Time
30 Jul 2024 04:14:28 EDT (-0400)
  Re: how to prevent overlapping random objects?  
From: Slime
Date: 21 Aug 2010 15:38:04
Message: <4c702b1c$1@news.povray.org>
> So far, my C++ implementation is very fast, for not being coded with ASM
> and all. I was able to implement a few speedups, like not using
> sqrt(x*x+y*y) for *every pixel*, but instead making a 1/4 circle 2D
> array and picking from that.

You're doing a radius comparison, right? You probably don't need to take 
a square root.

  - Slime


Post a reply to this message

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