|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |