[Radiance-general] problems creating animation viewfile

Jack de Valpine jedev at visarc.com
Mon Nov 8 16:46:46 CET 2004


Hi Tarik,

The problem is that keys.cal is not being completely generated. I think 
that there are a couple of things to look at.

First, I do not think that you are doing quite the right thing to create 
key.fmt. "key.fmt" should be a file that contains a format, in this case:

rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh} -vv ${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t}

This should all be on one line and should not contain trailing or 
leading white spaces. This is the string that rcalc will match to in 
order to extract your variables.

As far as I can tell, I do not think that this is a valid command:

./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh} -vv ${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t} > key.fmt

Second, I believe that there may be a problem with the case of the 
variable names used. For example, your key.fmt uses all lower case (such 
as px, py and pz). Whereas in the call to tabfunc and the second call to 
rcalc you use mixed case for the variable names such as (Px, Py and Pz). 
I am not sure what os you are running on, it is possible that cygwin 
ignores case and quite likely that windows does. Unix/Linux/OsX however 
do expect case to match.

-Jack de Valpine

Tarik Rahman wrote:

>Hi,
> I'm having a problem in generating my anim.vf file. I set my views by working
>in rview doing
>v keys.vf -t 2 etc. every time I change view.
>
>Then I create key.fmt from the command line
>
>./rview -vtv -vp ${px} ${py} ${pz} -vd ${dx} ${dy} ${dz} -vu 0 0 1 -vh ${vh} -vv
>${vv} -vo 0 -va 0 -vs 0 -vl 0 -t ${t} > key.fmt
>
>Then I want to generate the  key.cal file
>
>./rcalc -i key.fmt -e
>'$1=recno;$2=px;$3=py;$4=pz;$5=dx;$6=dy;$7=dz;$8=vh;$9=vv;$10=t' keys.vf |
>tabfunc Px Py Pz Dx Dy Dz H V T > key.cal
>
>I'm animating 15 fps for 29 seconds so I do
>./cnt 435 | rcalc -o key.fmt -f key.cal -f spline.cal -e 't=$1/15' -e
>'px=s(Px);py=s(Py);pz=s(Pz);dx=s(Dx);dy=s(Dy);dz=s(Dz);vh=s(H);vv=s(V)' >
>anim.vf
>
>This is where I get my error
>
>key.cal, line 1:
>Px(x):select(1,);
>                ^ unexpected character
>
> here is my key.cal as you specified
> more key.cal
> Px(x):select(1,);
> Py(x):select(1,);
> Pz(x):select(1,);
> Dx(x):select(1,);
> Dy(x):select(1,);
> Dz(x):select(1,);
> H(x):select(1,);
> V(x):select(1,);
> T(x):select(1,);
>I don't know where I'm going wrong but think it has something to do with reading
>from keys.vf into key.cal
>
>I then want to use anim.vf in my ranimate file
>
>Thanks for any help
>
>Tarik
>
>
>--
>Tarik Rahman
>PhD student, Institue of Perception, Action and Behaviour
>School of Informatics
>University of Edinburgh
>
>_______________________________________________
>Radiance-general mailing list
>Radiance-general at radiance-online.org
>http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
>  
>

-- 
#	John E. de Valpine
#	president
#
#	visarc incorporated
#	http://www.visarc.com
#
#	channeling technology for superior design and construction





More information about the Radiance-general mailing list