POV-Ray : Newsgroups : povray.binaries.images : Object Placement Rabbit Hole : Re: Object Placement Rabbit Hole Server Time
5 Aug 2025 07:09:08 EDT (-0400)
  Re: Object Placement Rabbit Hole  
From: Josh English
Date: 19 Jul 2025 20:31:33
Message: <687c38e5$1@news.povray.org>
On 7/18/2025 7:07 AM, Chris R wrote:

> 
> The code needs a lot more testing before I put documentation and official
> examples into the GitHub repo with my libraries, but I thought I'd share the
> idea in case there are comments, (like "someone has already done this...") :-)
> 
> -- Chris R

I'm kind of reminded of my cloth simulation renders from way way back. 
It used a lot of trace commands and spring functions that could 
determine a bunch of normals, but trace would give that anyway.

The only other way I could think to do this is to sample a bunch of 
projections of the shape onto the surface until I was satisfied with the 
highest point of contact, then find the second highest point of contact 
and adjust the shape's orientation to touch those two points, then find
the next highest point and orient again.

I look forward to seeing what you've put together.

Josh


Post a reply to this message

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