|
|
Dennis Miller wrote:
> I am trying to load a long sequence of TGA files into this image map:
> image_map { tga concat("D:\\sketches\\follow", str(clock*600,-4,0), ".tga")
>
> in the folder Sketches folder on my D drive there are 1800 files starting
> with
> follow0000.tga
> to
> follow1800.tga
>
> Can someone see a problem with the string here? I want to read in only the
> first 600 while the clock moves from 0.1 to 1.
> The whole code segment is:
> #local D=
> pigment{
> image_map { tga concat("D:\\sketches\\follow", str(clock*600,-4,0),
> ".tga") //group.tga is excellent 1352
> map_type 2 interpolate 2 once } translate <0, 0,0> scale 1 + clock*2 }
>
> and I am getting a Parse Error that says: Cannot open TGA image.
> thanks much for any help.
> d
>
I haven't checked it, but if you send your "concat" statement to #debug,
you can verify whether you're actually getting the correct string.
However, since you're only wanting integers, I'd suggest using
"frame_number" rather than "clock." (Just the first thing that occurs
to me; 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
|
|