![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I found a bug in MegaPov which has to do with #declared function
pigments used in isosurfaces. It gave me an error, "cannot load
function." I wanted to test the sped-up crackle and found the bug as a
result. Here's the code:
#declare Tex = function{ pigment{ crackle color_map{ [0 rgb 1][1 rgb 0]
} } }
isosurface{
function
( x^2+y^2+z^2 )+( Tex( x,y,z )/4 )
threshold 1 sign 1
accuracy .005 max_gradient 10
pigment{ rgb 1 } finish{ phong 1 }
}
--
Samuel Benge
E-Mail: STB### [at] aol com
Visit the still unfinished isosurface tutorial:
http://members.aol.com/stbenge
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"SamuelT." wrote:
>
> I found a bug in MegaPov which has to do with #declared function
> pigments used in isosurfaces. It gave me an error, "cannot load
> function." I wanted to test the sped-up crackle and found the bug as a
> result. Here's the code:
I ran into several demo's with the same problem. Also the iso demos that
had the 'library" function in the statement would not work at all.
--
Ken Tyler - 1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I tried to use a function as a pigment, too, and it did not work. I even
tried putting it directly into the pigment statement, not declaring it, but
it still won't work. It doesn't seem to reconize the word 'function'.
Ken wrote:
> "SamuelT." wrote:
> >
> > I found a bug in MegaPov which has to do with #declared function
> > pigments used in isosurfaces. It gave me an error, "cannot load
> > function." I wanted to test the sped-up crackle and found the bug as a
> > result. Here's the code:
>
> I ran into several demo's with the same problem. Also the iso demos that
> had the 'library" function in the statement would not work at all.
>
> --
> Ken Tyler - 1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
--
Samuel Benge
E-Mail: STB### [at] aol com
Visit the still unfinished isosurface tutorial:
http://members.aol.com/stbenge
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
SamuelT. <STB### [at] aol com> wrote:
Tried it and they do work. However, there was a switch missing in
Nathan's frame.h. Perhaps it wasn't there when he uploaded version 0.1.
Anyway, in the next version this will work, just tried your example.
We also fixed the library problem for the isosurface. You can now use:
function { "func_13", <5.5>, library "i_nfunc" }
or
function { "func_13", <5.5> }
External libs are not supported in the MegaPov but most of them are
build in.
There is one library we didn't add yet: i_dat3d. That one needs
initialisation. An error will be given.
Perhaps it would be better if we remove those example scenes (i_3d_o.pov
and i_3d_o2.pov)
Smellenbergh
> I tried to use a function as a pigment, too, and it did not work. I even
> tried putting it directly into the pigment statement, not declaring it, but
> it still won't work. It doesn't seem to reconize the word 'function'.
>
> Ken wrote:
>
> > "SamuelT." wrote:
> > >
> > > I found a bug in MegaPov which has to do with #declared function
> > > pigments used in isosurfaces. It gave me an error, "cannot load
> > > function." I wanted to test the sped-up crackle and found the bug as a
> > > result. Here's the code:
> >
> > I ran into several demo's with the same problem. Also the iso demos that
> > had the 'library" function in the statement would not work at all.
> >
> > --
> > Ken Tyler - 1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
> > http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
>
> --
> Samuel Benge
>
> E-Mail: STB### [at] aol com
>
> Visit the still unfinished isosurface tutorial:
> http://members.aol.com/stbenge
--
e-mail:sme### [at] skynet be
http://users.skynet.be/smellenbergh
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |