POV-Ray : Newsgroups : povray.general : Variable demotion : Variable demotion Server Time
7 Aug 2024 05:18:06 EDT (-0400)
  Variable demotion  
From: Greg M  Johnson
Date: 9 Nov 2001 08:52:58
Message: <3BEBDF58.4FC45639@aol.com>
I had a scene where I had lots of complex math (okay, sloppy algebra)
going on across several include files. After making a change, I found
that a vector variable I was using in a scale command was giving an
error about "vector expression expected but color found."  I assume this
means I somehow accidentally turned my 3-dimensional vector into a 4 or
5 dimensional one.  (#debugging seemed to confirm this).   Minutes of
scouring my scene files turned up no specific error.  I ended up
starting over with a backed-up version of the file.

Q: How could I have turned it back?  I want the same variable name, just
altered so that pov will think it's a 3 dimensional vector.


Post a reply to this message

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