|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I have compiled pmp recently and i have some problems:
The first one: it works fine for simple scenes, but when i try to use
something more advanced, like #define (or its shortened version, $) i'm
in trouble: i can't modify the #define'd variables (it says "undeclared
identifier expected, but r found" - my variable was r here).
Another problem: wherever I use arithmetics in translation/rotation
I get an error message : "no matching } in object(or anything else),
*(or / or - or +) found instead".
My toys are: 8 x i686(Celeron), RedHat7.2 and pvm 3.4.3.
Thank you in advance.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
sabin iacob <iac### [at] atomhp> wrote:
> I have compiled pmp recently and i have some problems:
> The first one: it works fine for simple scenes, but when i try to use
> something more advanced, like #define (or its shortened version, $) i'm
> in trouble: i can't modify the #define'd variables (it says "undeclared
> identifier expected, but r found" - my variable was r here).
AGAIK 'r' is a reserved keyword in megapov. You can't use it as a variable
name.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
sabin iacob wrote:
>>(it says "undeclared identifier expected, but r found" - my variable was
r here).
It's always a good idea to begin your variable names with a capital letter.
That way, you will never have an accidental conflict with a reserved
keyword.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
sabin iacob wrote:
> Another problem: wherever I use arithmetics in translation/rotation
> I get an error message : "no matching } in object(or anything else),
> *(or / or - or +) found instead".
Can you provide an example scene file for this?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks, it worked. As with the arithmetic operations, i have forgotten
to update the rendering script, so there was an +mv3.1 lying there and
messing up things.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |