POV-Ray : Newsgroups : povray.newusers : Counting Intersections of a ray? : Counting Intersections of a ray? Server Time
29 Apr 2024 15:42:46 EDT (-0400)
  Counting Intersections of a ray?  
From: Horst
Date: 7 Oct 2014 07:45:01
Message: <web.5433d1b8a08cf9471762a41b0@news.povray.org>
Hi all!

I have got a problem and I hope that povray could be a solution. Perhaps you
have got a suggestion for me.

Having a bunch of polygons and a ray I would like to find out how often the ray
intersects a polygon. I guess I can find out how to set up a camera to get some
rays, but i have no idea how to count the intersections... Is it possible to
define a material, so that the resulting pixel colour reflects the number of
intersections?


Post a reply to this message

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