POV-Ray : Newsgroups : povray.general : #declares within #macro are cleared across (#switch, #case, #break) : Re: #declares within #macro are cleared across (#switch, #case, #break) Server Time
31 Jul 2024 08:25:34 EDT (-0400)
  Re: #declares within #macro are cleared across (#switch, #case, #break)  
From: Mike Williams
Date: 10 Aug 2007 03:54:09
Message: <jWPLqeA9lBvGFwvS@econym.demon.co.uk>
POV variables don't persist between frames.

When you start parsing frame 2, all the variables are undefined. They
don't have the values that that they ended up with at the end of frame
1. You either have to re-calculate the values from scratch in each
frame, or write the calculated values to a file and read them back in
subsequent frames.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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