POV-Ray : Newsgroups : povray.unofficial.patches : trace() not working with isosurfaces? Server Time
2 Sep 2024 06:17:18 EDT (-0400)
  trace() not working with isosurfaces? (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Disnel
Subject: Re: trace() not working with isosurfaces?
Date: 19 Jul 2000 13:01:41
Message: <3975DEF5.F1A6AFCE@itam.cas.cz>
... and it also works with isosurface sphere....


Post a reply to this message

From: Chris Huff
Subject: Re: trace() not working with isosurfaces?
Date: 19 Jul 2000 13:28:30
Message: <chrishuff-78F1F0.12290319072000@news.povray.org>
In article <39747813.ECD7B37A@itam.cas.cz>, Vaclav Cermak 
<dis### [at] itamcascz> wrote:

>   I'am playing with ridgedfm heightfield and I'am trying
>   to place some "trees" (cylinders, right now ;-) on it.
>   But something is wrong: when I made box, sphere,
>   isosurface with function { y } instead of heightfield,
>   it works. When I use ridgedmf, or noise, or pigment
>   in fuction it is unable to fund intersection of rays
>   with hf. But is heightfield itself displays correctly.

Try increasing the accuracy of the isosurface.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Tim Riley
Subject: Re: trace() not working with isosurfaces?
Date: 19 Jul 2000 14:09:24
Message: <3975EECF.97D54001@its.bldrdoc.gov>
Disnel wrote:
> 
> 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

Another problem is that "Normal" is a reserved word. When I changed it
to something else (such as "Norm"), it worked.


Post a reply to this message

From: Ron Parker
Subject: Re: trace() not working with isosurfaces?
Date: 19 Jul 2000 14:15:46
Message: <slrn8nbsqa.4br.ron.parker@linux.parkerr.fwi.com>
On Wed, 19 Jul 2000 12:09:19 -0600, Tim Riley wrote:
>Another problem is that "Normal" is a reserved word. When I changed it
>to something else (such as "Norm"), it worked.

Is not.  Reserved words don't have capital letters in them.  Try it as 
posted and see if it works that way.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Fabien Mosen
Subject: Re: trace() not working with isosurfaces?
Date: 19 Jul 2000 16:13:37
Message: <39760AB5.9EC409D@skynet.be>
Disnel wrote:
> 
> 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.

At least, once I did that, it worked fine... 
otherwise it didn't...

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

Win version, MegaPOV 0.5A


Post a reply to this message

From: Tim Riley
Subject: Re: trace() not working with isosurfaces?
Date: 19 Jul 2000 17:26:56
Message: <39761D12.F7088486@its.bldrdoc.gov>
Ron Parker wrote:
> 
> On Wed, 19 Jul 2000 12:09:19 -0600, Tim Riley wrote:
> >Another problem is that "Normal" is a reserved word. When I changed it
> >to something else (such as "Norm"), it worked.
> 
> Is not.  Reserved words don't have capital letters in them.  Try it as
> posted and see if it works that way.


I tried it as posted, then changed the variable names in the PlaceTree
macro as suggested; neither would work (Normal was always equal to <0,0,0>).
When I changed the variable name to Norm, it did work (placed a tree at
each point). I realize that "normal" is reserved, but I can't explain why
"Norm" works and "Normal" does not.


Post a reply to this message

From: Disnel
Subject: Re: trace() not working with isosurfaces?
Date: 20 Jul 2000 08:45:25
Message: <3976F465.21185F2E@itam.cas.cz>
> 
> Try increasing the accuracy of the isosurface.
> 

Already tried 0.0000000001, no success.....


Post a reply to this message

From: Disnel
Subject: Re: trace() not working with isosurfaces?
Date: 20 Jul 2000 08:46:06
Message: <3976F48E.67E60C9F@itam.cas.cz>
For me, neither Normal nor Norm works :(((....

Tim Riley wrote:
> 
> Ron Parker wrote:
> >
> > On Wed, 19 Jul 2000 12:09:19 -0600, Tim Riley wrote:
> > >Another problem is that "Normal" is a reserved word. When I changed it
> > >to something else (such as "Norm"), it worked.
> >
> > Is not.  Reserved words don't have capital letters in them.  Try it as
> > posted and see if it works that way.
> 
> I tried it as posted, then changed the variable names in the PlaceTree
> macro as suggested; neither would work (Normal was always equal to <0,0,0>).
> When I changed the variable name to Norm, it did work (placed a tree at
> each point). I realize that "normal" is reserved, but I can't explain why
> "Norm" works and "Normal" does not.


Post a reply to this message

From: Warp
Subject: Re: trace() not working with isosurfaces?
Date: 20 Jul 2000 09:46:21
Message: <397702ad@news.povray.org>
Disnel <dis### [at] itamcascz> wrote:
:> Try increasing the accuracy of the isosurface.

: Already tried 0.0000000001, no success.....

  Accuracy is not always the answer. Sometimes you have to play with
the max_gradient.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Disnel
Subject: Re: trace() not working with isosurfaces?
Date: 20 Jul 2000 10:05:05
Message: <39770710.687133E0@itam.cas.cz>
Warp wrote:
> 
> Disnel <dis### [at] itamcascz> wrote:
> :> Try increasing the accuracy of the isosurface.
> 
> : Already tried 0.0000000001, no success.....
> 
>   Accuracy is not always the answer. Sometimes you have to play with
> the max_gradient.
> 

Tried max_gradient 100000000, no success. It suspiciously
fast parse the file, the render is unfinishable.

When I try method 1, it places some "trees" but at wrong
places (I think) and isosurface itself has many holes


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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