POV-Ray : Newsgroups : povray.newusers : issue rendering demo files Server Time
22 Dec 2024 00:02:30 EST (-0500)
  issue rendering demo files (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: kurtz le pirate
Subject: issue rendering demo files
Date: 1 Jun 2014 06:04:29
Message: <538afaad@news.povray.org>
hello,

on the /scenes/advanced/blocks, the 'stackertransp.pov' demo file hang 
with this error :

"makestacks.inc" line 24 - Parse Error: Expected 'numeric expression', 
undeclared identifier 'AspectRatio' found instead

the code is :
#declare Screen= // pseudo screen to test the visibility of an object
   mesh{
     triangle{0,x,x+y}
     triangle{0,y,x+y}
     translate -0.5*(x+y)
     scale <AspectRatio,1,1> <-- ligne 24.
     translate CamZoom*z
     matrix < CamR.x,  CamR.y,  CamR.z,
              CamU.x,  CamU.y,  CamU.z,
              CamD.x,  CamD.y,  CamD.z,
              CamLoc.x,CamLoc.y,CamLoc.z >
   }

in the original 'visibility test' from thomas de groot, there is an 
'AspectRatio' declared var.
//--start code--
#declare CamLoc = <0, .3, 0>;
#declare CamEye = <0.0, 6,  0.0>;
#declare CamSky = y;
#declare AspectRatio = 640/1000;
#declare CamZoom = 1.5;

camera {
   location  CamLoc
   direction z*CamZoom
   right     x*AspectRatio
   look_at   CamEye
}
...

and the modified code from gilles tran use this var but it's not declared...


if i remember good, in mac megapov, there is two vars 'image_height' and 
'image_width' and AspectRatio can be calculated by image_height/image_width.


how to deal now with povray 3.7 ?





---
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

From: Thomas de Groot
Subject: Re: issue rendering demo files
Date: 1 Jun 2014 07:21:06
Message: <538b0ca2$1@news.povray.org>
This seems to be an oversight indeed. Add:

#declare AspectRatio=image_height/image_width;

to makestacks.inc before the #declare Screen= line.

Thomas


Post a reply to this message

From: Stephen
Subject: Re: issue rendering demo files
Date: 1 Jun 2014 07:44:52
Message: <538b1234$1@news.povray.org>
On 01/06/2014 12:20, Thomas de Groot wrote:
> This seems to be an oversight indeed. Add:
>
> #declare AspectRatio=image_height/image_width;
>
> to makestacks.inc before the #declare Screen= line.
>
> Thomas
>
>

Strange stackertransp.pov renders fine on my setup. Which is new and has 
no library paths set. Having said that povray.ini has none setbut the 
message pane says that it does.
I cannot see where the Windows/fonts and PovRay\ver 3.7\include
paths are defined.

-- 

Regards
     Stephen


Post a reply to this message

From: Alain
Subject: Re: issue rendering demo files
Date: 1 Jun 2014 14:25:13
Message: <538b7009@news.povray.org>

> On 01/06/2014 12:20, Thomas de Groot wrote:
>> This seems to be an oversight indeed. Add:
>>
>> #declare AspectRatio=image_height/image_width;
>>
>> to makestacks.inc before the #declare Screen= line.
>>
>> Thomas
>>
>>
>
> Strange stackertransp.pov renders fine on my setup. Which is new and has
> no library paths set. Having said that povray.ini has none setbut the
> message pane says that it does.
> I cannot see where the Windows/fonts and PovRay\ver 3.7\include
> paths are defined.
>

Those two paths are default paths. They are defined during the install 
or automaticaly generated the first POV-Ray is executed if they are not 
previously defined. The font folder path is taken from the system path.

The image_height and image_width are global variables available at least 
since version 3.6.0.


Post a reply to this message

From: Stephen
Subject: Re: issue rendering demo files
Date: 1 Jun 2014 14:48:19
Message: <538b7573$1@news.povray.org>
On 01/06/2014 7:25 PM, Alain wrote:

>
> Those two paths are default paths. They are defined during the install
> or automaticaly generated the first POV-Ray is executed if they are not
> previously defined. The font folder path is taken from the system path.
>

Thanks, I thought it must be something like that. Too lazy to search the 
registry, me.
It begs the question, why Kurtz le pirate got an "undeclared identifier" 
error.

> The image_height and image_width are global variables available at least
> since version 3.6.0.
>

I couldn't find that in the docs. :-(

-- 
Regards
     Stephen

I solemnly promise to kick the next angle, I see.


Post a reply to this message

From: Thomas de Groot
Subject: Re: issue rendering demo files
Date: 2 Jun 2014 03:12:39
Message: <538c23e7$1@news.povray.org>
On 1-6-2014 20:48, Stephen wrote:
> On 01/06/2014 7:25 PM, Alain wrote:
>
>>
>> Those two paths are default paths. They are defined during the install
>> or automaticaly generated the first POV-Ray is executed if they are not
>> previously defined. The font folder path is taken from the system path.
>>
>
> Thanks, I thought it must be something like that. Too lazy to search the
> registry, me.
> It begs the question, why Kurtz le pirate got an "undeclared identifier"
> error.

Well, if you run stackertransp.pov right out of the box you just read 
the stacks.inc file already provided.

If you make WriteFile = true;  then you will invoke makestacks.inc were 
the missing declare should be. Alternatively, you also can declare 
AspectRatio /before/ including makestacks.inc

Thomas


Post a reply to this message

From: Stephen
Subject: Re: issue rendering demo files
Date: 2 Jun 2014 03:42:04
Message: <538c2acc$1@news.povray.org>
On 02/06/2014 8:12 AM, Thomas de Groot wrote:
> On 1-6-2014 20:48, Stephen wrote:

>> Thanks, I thought it must be something like that. Too lazy to search the
>> registry, me.
>> It begs the question, why Kurtz le pirate got an "undeclared identifier"
>> error.
>
> Well, if you run stackertransp.pov right out of the box you just read
> the stacks.inc file already provided.
>
> If you make WriteFile = true;  then you will invoke makestacks.inc were
> the missing declare should be. Alternatively, you also can declare
> AspectRatio /before/ including makestacks.inc
>
>




Thanks Thomas,

To be honest, it was more idle curiosity. I didn't even read the file. 
Just searched for AspectRatio


-- 
Regards
     Stephen


Post a reply to this message

From: Thomas de Groot
Subject: Re: issue rendering demo files
Date: 2 Jun 2014 07:08:42
Message: <538c5b3a$1@news.povray.org>
On 2-6-2014 9:42, Stephen wrote:

> Thanks Thomas,
>
> To be honest, it was more idle curiosity. I didn't even read the file.
> Just searched for AspectRatio

Curiosity kills the cat ;-)

Thomas


Post a reply to this message

From: Stephen
Subject: Re: issue rendering demo files
Date: 2 Jun 2014 15:12:47
Message: <538cccaf$1@news.povray.org>
On 02/06/2014 12:08, Thomas de Groot wrote:
> On 2-6-2014 9:42, Stephen wrote:
>
>> Thanks Thomas,
>>
>> To be honest, it was more idle curiosity. I didn't even read the file.
>> Just searched for AspectRatio
>
> Curiosity kills the cat ;-)
>

Idle curiosity makes it sit back and look contemptuous. ;-)


-- 

Regards
     Stephen


Post a reply to this message

From: Thomas de Groot
Subject: Re: issue rendering demo files
Date: 3 Jun 2014 03:22:50
Message: <538d77ca$1@news.povray.org>
On 2-6-2014 21:12, Stephen wrote:
> On 02/06/2014 12:08, Thomas de Groot wrote:
>> On 2-6-2014 9:42, Stephen wrote:
>>
>>> Thanks Thomas,
>>>
>>> To be honest, it was more idle curiosity. I didn't even read the file.
>>> Just searched for AspectRatio
>>
>> Curiosity kills the cat ;-)
>>
>
> Idle curiosity makes it sit back and look contemptuous. ;-)
>
>

LOL

Which the neighbours' cat was just doing the other day, watching me mow 
the grass (and not doing a very good job - too long).

Thomas


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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