POV-Ray : Newsgroups : povray.animations : JPEGs and Movies : Re: JPEGs and Movies Server Time
10 Jun 2024 12:40:50 EDT (-0400)
  Re: JPEGs and Movies  
From: Mike Williams
Date: 8 Jan 2006 01:46:27
Message: <Qc3noIAhTLwDFwkc@econym.demon.co.uk>
Wasn't it Trevor G Quayle who wrote:
>"James" <bat### [at] hotmailcom> wrote:
>> I have a series of JPEG files I exported from Adobe Premiere and I want to
>> use these in an animation as images on a screen within the animation. The
>> line I use to successfully put one image up is
>>
>> #box { <0.0, 0.0, -screenthi> <screenwid, screenhei, screenthi> finish {
>> ambient 1 diffuse 0.9 } pigment { image_map { jpeg "filename.jpg" once
>> interpolate 2.0 } scale <screenwid, screenhei, screenthi> } translate
>> <-screenwid/2, 0, 0>}
>>
>> the filenames are from train0001.jpg to train7046.jpg so I want to use the
>> clock to change the input file so that the code will look at the right
>> frame. I tried using a concatenation script however parenthesis around the
>> filename didn't allow that. How do I achieve this result?
>
>
>instead of using concat within the filename:
>image_map { jpeg concat("filename", str(filenum,0,0),".jpg")}
>
>try predeclaring it:
>
>#declare filnam = concat("filename", str(filenum,0,0),".jpg");
>image_map {jpeg filam}

You may need to use str(filenum,-4,0) to get the leading zeroes in
"train0001.jpg".

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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