POV-Ray : Newsgroups : moray.binaries : SCaleable Smoke gen? : Re: SCaleable Smoke gen? Server Time
28 Jun 2024 23:45:13 EDT (-0400)
  Re: SCaleable Smoke gen?  
From: Mikael Carneholm
Date: 7 Feb 2000 16:08:34
Message: <389F3459.C0E4C998@ida.utb.hb.se>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.