POV-Ray : Newsgroups : povray.binaries.images : tractor 2008 (164k jpg) : Re: tractor 2008 (164k jpg) Server Time
30 Jul 2024 20:29:20 EDT (-0400)
  Re: tractor 2008 (164k jpg)  
From: Edouard Poor
Date: 7 Dec 2008 15:10:00
Message: <web.493c2ca762d2e2216349cc2c0@news.povray.org>
> > > The biggest reason I didn't model this as a mesh is because it's
> > > currently impossible to use any proximity patterns with meshes. That's
> > > right, impossible! Actually, if somebody can figure out how to get a
> > > proximity pattern working with meshes, I would really appreciate it :)
> >
> > Just write your own inside() function. I gave it a go with the following, and it
> > seems to work pretty well. It should really be improved with the equivalent of
> > an inside_vector, so you can usefully use it with open meshes, but it's OK for
> > a quick attempt.
> >
>>[...]
>
> Forgive me for being slow as usual, but could you could help me understand your
> macro?
>
> I suppose you could used the inside test to fill up the inside of a mesh with
> cubes to make CSG approximation of a mesh shape--but that doesn't appear to be
> what you did.

Just replace the "inside()" call in Sam's fastprox macros with my "inside_m()"
(or your own more complete macro) and his code then works perfectly on meshes
(but still should work with everything else too).

Cheers,
Edouard.


Post a reply to this message

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