|
|
Psychomek wrote:
> I get this error....
>
> //---------------------------------------------------------------------------------
>
> #macro IfDebug(string <----ERROR
>
> C:\Program Files\POV-Ray\INCLUDE\smokegen.inc:35: error: identifier or
> expression. expected but string found instead.
I was able to render the attached .mdl file in Moray without any problems, so I wonder
what
version of POV-Ray you are using? At least in v3.1, 'string' is not a keyword. I
haven't
checked MegaPOV yet, but it could be that 'string' is a keyword in MegaPOV. If it is,
(or
whatever the reason) you can replace the current definition of IfDebug in SmokeGen.mry
with
this:
#macro IfDebug(aString)
#ifdef(Debugging)
#if(Debugging)
#debug aString
#end
#end
#end
However, no smoke was generated in the scene, and this was due to (mainly) two things:
1. Scene Start Clk was not set to 0. The clock (+k) value is always 0 when Moray calls
POV-Ray - thus, the routine that simulates previous frames (the SimulateElapsedTime
macro)
will not work as it requires that clock = SceneStartClock. Actually, (at least in the
current implementation of the Moray SmokeGen plugin) the Scene Start Clk parameter is
obsolete, so just leave it to 0.
2. Trail Length was set to 2, which means that only two elements will be generated.
And as
the Const Ascend Rate parameter was set to 0.25, the only two elements generated were
hidden
inside the red sphere.
Also, 272 simulated frames is unnecessary when the camera is that close (in
conjunction with
the ascension used) - 50 is quite adequate for such a close-up image.
Hope this helps,
- Mikael.
----------------------------------------------------
Mikael Carneholm
Dep. of Computer Science and Business Administration
Personal home page:
http://www.studenter.hb.se/~arch
E-mail:
sa9### [at] idautbhbse
Post a reply to this message
|
|