|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 18.02.2017 um 12:18 schrieb kurtz le pirate:
> How to convert old scene which uses internal function ?
> POVRay 3.7 raise this error : Function 'internal(XX)' does not exist.
Are you sure this is a genuine POV-Ray scene (as opposed to e.g. a
MegaPOV scene)? I'd be surprised if POV-Ray ever ditched any of its
inbuilt functions or renumbered them.
That said, in either case you'll have to:
1. Figure out what mathematical function the numeric code "XX" is
supposed to represent.
2. Replace the unsupported `internal` function with either:
2.a) The corresponding named function from `functions.inc` (if it exists).
2.b) A corresponding user-defined function.
2.c) A user-defined macro (if the function is used in a manner that it
can be replaced with a macro).
The trickiest part will be Step 1. There are essentially two ways you
can do this:
1.a) Examine the scene and guess what the function is.
1.b) Examine the source code of whatever version or derivative of
POV-Ray the scene was originally rendered with, to find out what the
internal function actually did.
We may be able to help you with this, but only if you disclose some more
details. For an attempt at 1.a) we'd probably need to see the entire
scene. For an attempt at 1.b) we'll need to know at least the internal
number of the function in question (the "XX" part), and anything that
might help to identify the version originally used.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Le 18/02/2017 à 13:33, clipka a écrit :
> Are you sure this is a genuine POV-Ray scene (as opposed to e.g. a
> MegaPOV scene)? I'd be surprised if POV-Ray ever ditched any of its
> inbuilt functions or renumbered them.
> ...
> [snip]
>
Thanks for your help, and yes, it's a POVRay scene.
Here the begin of the code :
// Persistence of Vision Ray Tracer Scene Description File
// File: mb_basic.pov
// Vers: 3.6, 3.7
// Desc: Basic Scene Example
// Date: 12/18/09
// Auth: David Wagner
// Cite: http://www.skytopia.com/project/fractal/2mandelbulb.html
#version 3.6;
#include "colors.inc"
#declare f_mandelbulb=function{internal(79)};
global_settings {
assumed_gamma 1.0
}
...
...
I had already looked in 'functions.inc' and 79 is not defined in the
file. Last is 78, f_noise_generator :(
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 02/18/2017 09:25 AM, kurtz le pirate wrote:
> Le 18/02/2017 à 13:33, clipka a écrit :
>> Are you sure this is a genuine POV-Ray scene (as opposed to e.g. a
>> MegaPOV scene)? I'd be surprised if POV-Ray ever ditched any of its
>> inbuilt functions or renumbered them.
>> ...
>> [snip]
>>
>
> Thanks for your help, and yes, it's a POVRay scene.
> Here the begin of the code :
>
> // Persistence of Vision Ray Tracer Scene Description File
> // File: mb_basic.pov
> // Vers: 3.6, 3.7
> // Desc: Basic Scene Example
> // Date: 12/18/09
> // Auth: David Wagner
> // Cite: http://www.skytopia.com/project/fractal/2mandelbulb.html
>
> #version 3.6;
>
> #include "colors.inc"
>
> #declare f_mandelbulb=function{internal(79)};
>
> global_settings {
> assumed_gamma 1.0
> }
> ...
> ...
>
> I had already looked in 'functions.inc' and 79 is not defined in the
> file. Last is 78, f_noise_generator :(
>
>
>
If I recall correctly, David was running his own patched version of
POV-Ray where he added the additional function himself. You would need
to do the same I guess.
Bill P.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 2/18/2017 2:25 PM, kurtz le pirate wrote:
> Le 18/02/2017 à 13:33, clipka a écrit :
>> Are you sure this is a genuine POV-Ray scene (as opposed to e.g. a
>> MegaPOV scene)? I'd be surprised if POV-Ray ever ditched any of its
>> inbuilt functions or renumbered them.
>> ...
>> [snip]
>>
>
> Thanks for your help, and yes, it's a POVRay scene.
> Here the begin of the code :
>
> // Persistence of Vision Ray Tracer Scene Description File
> // File: mb_basic.pov
> // Vers: 3.6, 3.7
> // Desc: Basic Scene Example
> // Date: 12/18/09
> // Auth: David Wagner
> // Cite: http://www.skytopia.com/project/fractal/2mandelbulb.html
>
> #version 3.6;
>
> #include "colors.inc"
>
> #declare f_mandelbulb=function{internal(79)};
>
> global_settings {
> assumed_gamma 1.0
> }
> ....
> ....
>
> I had already looked in 'functions.inc' and 79 is not defined in the
> file. Last is 78, f_noise_generator :(
>
>
>
Have a look at these threads:
http://news.povray.org/povray.general/thread/%3C4b2c7c62$1@news.povray.org%3E/?ttop=385585&toff=600
http://news.povray.org/povray.binaries.scene-files/thread/%3C4b3c8167@news.povray.org%3E/
--
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 18.02.2017 um 15:25 schrieb kurtz le pirate:
> Le 18/02/2017 à 13:33, clipka a écrit :
>> Are you sure this is a genuine POV-Ray scene (as opposed to e.g. a
>> MegaPOV scene)? I'd be surprised if POV-Ray ever ditched any of its
>> inbuilt functions or renumbered them.
>> ...
>> [snip]
>>
>
> Thanks for your help, and yes, it's a POVRay scene.
> Here the begin of the code :
...
> #declare f_mandelbulb=function{internal(79)};
Ah! The famous Mandelbulb function!
I'm sorry, but it is /not/ really a POV-Ray scene: It is a scene for a
special /patched/ version.
The other fellows' posts might provide useful pointers.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Le 19/02/2017 à 00:45, clipka a écrit :
>
> The other fellows' posts might provide useful pointers.
>
OK, Thanks...
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
kurtz le pirate <kur### [at] gmailcom> wrote:
> Le 18/02/2017 à 13:33, clipka a écrit :
> > Are you sure this is a genuine POV-Ray scene (as opposed to e.g. a
> > MegaPOV scene)? I'd be surprised if POV-Ray ever ditched any of its
> > inbuilt functions or renumbered them.
> > ...
> > [snip]
> >
>
> Thanks for your help, and yes, it's a POVRay scene.
> Here the begin of the code :
>
> // Persistence of Vision Ray Tracer Scene Description File
> // File: mb_basic.pov
> // Vers: 3.6, 3.7
> // Desc: Basic Scene Example
> // Date: 12/18/09
> // Auth: David Wagner
> // Cite: http://www.skytopia.com/project/fractal/2mandelbulb.html
>
> #version 3.6;
>
> #include "colors.inc"
>
> #declare f_mandelbulb=function{internal(79)};
Note that the documentation is very clear on the use of "internal" - do not,
ever, use it directly in your scene. Use functions.inc .
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Thorsten Froehlich" <nomail@nomail> wrote:
> Note that the documentation is very clear on the use of "internal" - do not,
> ever, use it directly in your scene. Use functions.inc .
so then,
#macro WorstMacroEver (Variable)
global_settings {
assumed gama 2.2
}
#declare Mangled = Variable * internal(666);
Mangled;
#end
would not be recommended practice?
:D
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 2/21/2017 12:53 PM, Bald Eagle wrote:
> "Thorsten Froehlich" <nomail@nomail> wrote:
>
>> Note that the documentation is very clear on the use of "internal" - do not,
>> ever, use it directly in your scene. Use functions.inc .
>
> so then,
>
> #macro WorstMacroEver (Variable)
> global_settings {
> assumed gama 2.2
> }
> #declare Mangled = Variable * internal(666);
> Mangled;
> #end
>
> would not be recommended practice?
>
> :D
>
>
Except on Soul Cake Tuesday. ;)
--
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
clipka <ano### [at] anonymousorg> wrote:
> Am 18.02.2017 um 15:25 schrieb kurtz le pirate:
> > Le 18/02/2017 à 13:33, clipka a écrit :
> >> Are you sure this is a genuine POV-Ray scene (as opposed to e.g. a
> >> MegaPOV scene)? I'd be surprised if POV-Ray ever ditched any of its
> >> inbuilt functions or renumbered them.
> >> ...
> >> [snip]
> >>
> >
> > Thanks for your help, and yes, it's a POVRay scene.
> > Here the begin of the code :
> ...
> > #declare f_mandelbulb=function{internal(79)};
>
> Ah! The famous Mandelbulb function!
>
> I'm sorry, but it is /not/ really a POV-Ray scene: It is a scene for a
> special /patched/ version.
>
> The other fellows' posts might provide useful pointers.
The fellows... like, from the fellowship?
"One version to rule them all, and in the brightness bind them..."
must have said Clipka after he decided the dark days of unmergeable POV vs
MegaPOV were over. He had found Sauron's Git commit keys and decided to bridge
POV, UberPOV, HGPOV... by keeping them in synch with the help of the Community
and the (version unofficial keyword) ! Thanks again! :-)
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |