POV-Ray : Newsgroups : povray.newusers : How to debug object properties Server Time
1 Nov 2024 16:21:44 EDT (-0400)
  How to debug object properties (Message 1 to 4 of 4)  
From: nelviant
Subject: How to debug object properties
Date: 18 Nov 2007 14:45:00
Message: <web.47409568b97380fbf13150910@news.povray.org>
Is it possible to debug an object property?
I've tried tu use:

#debug concat("ANGLE: ", camera.angle)

to output the angle property of a camera, but it doesn work.

Thanks in advance


Post a reply to this message

From: nemesis
Subject: Re: How to debug object properties
Date: 18 Nov 2007 17:05:00
Message: <web.4740b66dadcb496c82e15b410@news.povray.org>
"nelviant" <nomail@nomail> wrote:
> Is it possible to debug an object property?
> #debug concat("ANGLE: ", camera.angle)
>
> to output the angle property of a camera, but it doesn work.

povray SDL is not object oriented.  There are default values for all scene
objects that you may look up in the manual.  Other than that, it's up to you to
set up the values you want.


Post a reply to this message

From: Sherry Shaw
Subject: Re: How to debug object properties
Date: 19 Nov 2007 13:05:24
Message: <4741d064@news.povray.org>
nemesis wrote:
> "nelviant" <nomail@nomail> wrote:
>> Is it possible to debug an object property?
>> #debug concat("ANGLE: ", camera.angle)
>>
>> to output the angle property of a camera, but it doesn work.
> 
> povray SDL is not object oriented.  There are default values for all scene
> objects that you may look up in the manual.  Other than that, it's up to you to
> set up the values you want.
> 
> 
> 

You can, however, use #debug with any variables that you have created to 
define object parameters.  For example:

#declare CAMERA_ANGLE = some calculations;
#debug concat("ANGLE: ", str(CAMERA_ANGLE, 3, 1)
camera {
   other camera stuff
   angle CAMERA_ANGLE
}

Hope this helps...

--Sherry Shaw

-- 
#macro T(E,N)sphere{x,.4rotate z*E*60translate y*N pigment{wrinkles scale
.3}finish{ambient 1}}#end#local I=0;#while(I<5)T(I,1)T(1-I,-1)#local I=I+
1;#end camera{location-5*z}plane{z,37 pigment{granite color_map{[.7rgb 0]
[1rgb 1]}}finish{ambient 2}}//                                   TenMoons


Post a reply to this message

From: JetRacer
Subject: Re: How to debug object properties
Date: 1 Dec 2007 16:40:00
Message: <web.4751d382adcb496c278fa6d50@news.povray.org>
Hi, nelviant.

I'd like to point out that the solution presented in the previus post is
something you should make a mental note of because it's often the solution to
many different problems one may run into.

In an ideal world everone would defign macros with camera transformations so
they can do retrieve camera properties easily. In reality no-one does this even
if they know better than not to (including myself). So start getting the habit
while you still can.


Post a reply to this message

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