 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
... and it also works with isosurface sphere....
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <39747813.ECD7B37A@itam.cas.cz>, Vaclav Cermak
<dis### [at] itam cas cz> 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] mac com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>
> Try increasing the accuracy of the isosurface.
>
Already tried 0.0000000001, no success.....
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Disnel <dis### [at] itam cas cz> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
>
> Disnel <dis### [at] itam cas cz> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |