POV-Ray : Newsgroups : povray.unofficial.patches : trace() not working with isosurfaces? : Re: trace() not working with isosurfaces? Server Time
2 Sep 2024 02:18:19 EDT (-0400)
  Re: trace() not working with isosurfaces?  
From: Disnel
Date: 19 Jul 2000 11:28:35
Message: <3975C923.726301EE@itam.cas.cz>
I don't think so. It works when I replace isosurface with
box or sphere (and I think, that px and pz are declared locally
in macro). And it does not work when I replace them with
ax or az, as you wrote.

Which version od MegaPOV are you using? I use Linux version.

Fabien Mosen wrote:
> 
> The problem is due to the fact that you use the same variable
> names in the macro and in the loop.  This works :
> 
> #macro PlaceTree(ax, az)
>   #local Normal=<0, 0, 0>;
>   #local Where = trace(Landscape, <ax, 10, az>, <0, -1, 0>, Normal);
>   #if (Normal.x = 0 & Normal.y = 0 & Normal.z = 0)
>     #warning "Tree not placed\n"
>   #else
>     object {Tree translate Where}
>   #end
> #end


Post a reply to this message

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