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