POV-Ray : Newsgroups : povray.newusers : Can't find bad scale values. Server Time
21 Dec 2024 13:37:03 EST (-0500)
  Can't find bad scale values. (Message 1 to 2 of 2)  
From: Bald Eagle
Subject: Can't find bad scale values.
Date: 29 Jul 2014 19:45:00
Message: <web.53d8316aea0cbcc5e7df57c0@news.povray.org>
I get a lot of parse warnings about scaling by 0.
I've searched for "scale" through the entire file and all the includes, and
can't find any "bad" scalings.  Does this behaviour happen when a single scale
value like scale 5 is automagically promoted by POV-Ray to scale <5, 5, 5> ?
I'm just trying to clean up the code so that I have a "clean" message window and
therefore an easier time debugging ongoing scene development.

It would be helpful to quote the offending line's text, or line number (harder
to do with includes?).

I could also use a hand figuring out exactly what the camera error means.

Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale X by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale X by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Should have at least 2 objects in csg.
Parse Warning: Illegal Value: Scale X by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale X by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale X by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Should have at least 2 objects in csg.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Y by 0.0. Changed to 1.0.
Parse Warning: Illegal Value: Scale Z by 0.0. Changed to 1.0.

Parse Warning: Camera location to look_at direction and sky direction should be
different. Using default/supplied right vector
instead.


Post a reply to this message

From: clipka
Subject: Re: Can't find bad scale values.
Date: 29 Jul 2014 21:23:26
Message: <53d8490e$1@news.povray.org>
Am 30.07.2014 01:42, schrieb Bald Eagle:
>
> I get a lot of parse warnings about scaling by 0.
> I've searched for "scale" through the entire file and all the includes, and
> can't find any "bad" scalings.  Does this behaviour happen when a single scale
> value like scale 5 is automagically promoted by POV-Ray to scale <5, 5, 5> ?

No, it happens when you try to scale along a particular axis using:

     scale y*N

because from POV-Ray's syntax this is equivalent to

     scale <0,N,0>

which would make the thing a flat pancake, so POV-Ray presumes that what 
you actually meant was

     scale <1,N,1>


Post a reply to this message

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