|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am I doing it wrongly, or is it impossible to #declare a warp? Povray even
_crashes_ when I try to get around by using a #macro.
I tried this:
#macro Foo
turbulence 0.4
#end
And later:
object
something_nice_as_well
pigment {
marble warp { Foo }
}
}
This causes Povray to crash. I also tried to wrap the warp-statement as well
into the macroa dn just calling the macro to place it like this:
pigment { marble Foo }
But Povray didn't like a warp in a macro.
Anyone who can explain?
TIA,
Simen Kvaal.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Simen Kvaal <sim### [at] studentmatnatuiono> wrote:
: Am I doing it wrongly, or is it impossible to #declare a warp?
Yes, I'm impossible to #declare.
--
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Simen Kvaal wrote:
>
> Am I doing it wrongly, or is it impossible to #declare a warp? Povray even
> _crashes_ when I try to get around by using a #macro.
>
I don't think you can declare a warp. However I have no problems using it in a
macro:
#macro Foo()
turbulence .2
#end
sphere{
0,1
pigment{checker rgb 1, rgb 0 Foo()}
}
Works just like expected, both in regular 3.1g and MegaPov 0.5 (Windows). What
version are you using?
--
Margus Ramst
Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Simen Kvaal wrote in message <39301e5a@news.povray.org>...
>object
>
> something_nice_as_well
> pigment {
> marble warp { Foo }
> }
>}
You appear to have forgotten the parentheses in your macro call. Try this:
object
something_nice_as_well
pigment {
marble warp { Foo() }
}
}
Mark
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Maybe you already realize this, cannot declare a keyword for use later.
#declare Turb=turbulence 0.4
would need to be retrieved as:
warp {turbulence Turb} anyhow. If that's possible to begin with anyway in a warp, I
didn't check.
Bob
"Simen Kvaal" <sim### [at] studentmatnatuiono> wrote in message
news:39301e5a@news.povray.org...
| Am I doing it wrongly, or is it impossible to #declare a warp? Povray even
| _crashes_ when I try to get around by using a #macro.
|
| I tried this:
|
| #macro Foo
| turbulence 0.4
| #end
|
| And later:
|
| object
|
| something_nice_as_well
| pigment {
| marble warp { Foo }
| }
| }
|
| This causes Povray to crash. I also tried to wrap the warp-statement as well
| into the macroa dn just calling the macro to place it like this:
|
| pigment { marble Foo }
|
| But Povray didn't like a warp in a macro.
|
| Anyone who can explain?
|
| TIA,
| Simen Kvaal.
|
|
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mr. Wagner wrote:
>You appear to have forgotten the parentheses in your macro call.
Ah! That might be the problem. But seriously, Povray shouldn't _crash_ on
me, performing "an illegal operation", when stumbling into erroneus
scripting ...
I also find it somewhat inconsistent not to be able to #declare a warp;
what's the logical difference between a warp-block and a, say,
pigment-block? I have to say it would be very convenient to be able to do
so.
Simen.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Oh no! I should have expected that! :-) But I _can_ declare you:
for example:
#declare Warp =
pigment {
checker
color rgb <1.0, 0.77, 0.94> // yuckish pink color for my dear Warp. ;-)
color rgb <1.0, 0.32, 0.83> // saturate the pink, yuckish color a bit
}
*chuckle*
Simen.
> Yes, I'm impossible to #declare.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sat, 27 May 2000 21:13:27 +0200, "Simen Kvaal"
<sim### [at] studentmatnatuiono> wrote:
>Am I doing it wrongly, or is it impossible to #declare a warp? Povray even
>_crashes_ when I try to get around by using a #macro.
Correct me if I'm wrong but a warp is a kind of transform, so have you
tried declaring it as such?
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Peter Popov wrote:
>
> Correct me if I'm wrong but a warp is a kind of transform, so have you
> tried declaring it as such?
>
No, transform does not take a warp; it only takes general transformations
(translate, rotate, scale, matrix).
--
Margus Ramst
Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I would prefer:
pigment { checker Blue, White }
--
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
|
|
| |
| |
|
|
|
|
| |