POV-Ray : Newsgroups : povray.general : Save several images from the same Scene? Server Time
1 Aug 2024 00:19:43 EDT (-0400)
  Save several images from the same Scene? (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
From: Stephen
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 05:30:00
Message: <web.451109d9dd59baeff1cb1e660@news.povray.org>
"pierre" <pie### [at] efpginpgfr> wrote:
> Hi everybody,
>
> I have created an object, and I want to study the effect of the position of
> the illumination.
> Can I created a loop, allowing to save several images from the same scene
> with different angular illumination position?
> For example (I feel I am not clear):
> I want to simulate the effect of the sun light at different time of the day
> on my object. Instead to change manually the illmuniation position, then to
> save the image and so on, I would like a loop enable to create and save as
> much images I want.
> Thanks by advance
> Pierre

You can use the animation features of Pov-Ray; help section 2.3.8 Making
Animations
Use the clock and or frame_number variables to create a series of images
that can be made into an animation using a third party programme.

Stephen


Post a reply to this message

From: Stephen
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 05:45:01
Message: <web.45110d39dd59baeff1cb1e660@news.povray.org>
"Stephen" <mcavoys_AT_aolDOT.com> wrote:
> "pierre" <pie### [at] efpginpgfr> wrote:
> > Hi everybody,
> >
>
> You can use the animation features of Pov-Ray; help section 2.3.8 Making
> Animations
> Use the clock and or frame_number variables to create a series of images
> that can be made into an animation using a third party programme.
>


changing on screen. I find this useful. Another method is to use the #debug
command to output you variables to a text file for future reference.


movie. The downside is that you have to make many more frames if you want
to view the changes over a reasonable period of time.

Stephen


Post a reply to this message

From: pierre
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 07:00:00
Message: <web.45111e03dd59baefad334ed60@news.povray.org>
Thanks for yours answers,

I tried to implemente my code with v-rotate.

But I still have the same problem, the file which is saved after runing
povray is a bitmap file (a single picture...)

I give you  my code:

#include "colors.inc"

background {color Black}
camera {     location <1000, 1866, -505>
look_at <1000, 1000, 0>
angle 10
}



 #include "vierge2pas10obj_POV_geom"

 #include "vierge2pas10obj_POV_mat"

object {vierge2pas10obj_mesh_unnamed_material_

texture{ pigment{color rgb<0.80, 0.80, 0.75>}

         finish {               ambient 0        //ambient lighting
                                brilliance 0      //brilliance
                                crand 0          //crand amount
                                diffuse 0       //diffuse lighting
                                //ior  1.52           //index of refraction
                                //metallic
                                //phong 1          //phong highlighting
                                //phong_size 250     //phong size
                                reflection 0     //reflected light
                                //refraction      //refract toggle
                                roughness 0.001       //roughness
                                specular 1      //specular highlighting

}      }   }



 light_source {
  vrotate(<-1000,0,0>,<0,clock*360,30>)

color White
  parallel
  point_at <1000, 1000, 0>
   }


Warm greetings

Pierre

"Stephen" <mcavoys_AT_aolDOT.com> wrote:
> "Stephen" <mcavoys_AT_aolDOT.com> wrote:
> > "pierre" <pie### [at] efpginpgfr> wrote:
> > > Hi everybody,
> > >
> >
> > You can use the animation features of Pov-Ray; help section 2.3.8 Making
> > Animations
> > Use the clock and or frame_number variables to create a series of images
> > that can be made into an animation using a third party programme.
> >
>

> changing on screen. I find this useful. Another method is to use the #debug
> command to output you variables to a text file for future reference.


> movie. The downside is that you have to make many more frames if you want
> to view the changes over a reasonable period of time.
>
> Stephen


Post a reply to this message

From: Tim Attwood
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 08:02:39
Message: <45112ddf$1@news.povray.org>
Producing several images from one scene can be done by
using the animation loop. Animation is controlled from
ini files. For example if you add the lines...

[640x480, AA0, 30 frame anim]
Width=800
Height=600
Antialias=Off
Initial_Frame = 1
Final_Frame = 30

to quickres.ini in the windows version,
then quit the editor, and restart it,
the option to render 30 frame animations will be on the resolution
pop-down menu. The images will have numbered names in
sequence, name01, name02 etc.


Post a reply to this message

From: Mike Williams
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 08:09:20
Message: <3VA+aBAs2SEFFwpH@econym.demon.co.uk>
Wasn't it pierre who wrote:
>Thanks for yours answers,
>
>I tried to implemente my code with v-rotate.
>
>But I still have the same problem, the file which is saved after runing
>povray is a bitmap file (a single picture...)

That would probably be because you didn't actually read the "animation"
section in the documentation.

I suppose I could copy and paste it here, but that would be a bit
redundant.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Stephen
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 09:00:00
Message: <web.45113a2add59baeff1cb1e660@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Wasn't it pierre who wrote:
> >Thanks for yours answers,
> >
> >I tried to implemente my code with v-rotate.
> >
> >But I still have the same problem, the file which is saved after runing
> >povray is a bitmap file (a single picture...)
>
> That would probably be because you didn't actually read the "animation"
> section in the documentation.
>
> I suppose I could copy and paste it here, but that would be a bit
> redundant.
>
> --
> Mike Williams
> Gentleman of Leisure

Unless Pierre meant that he wanted several images on the same frame like a
contact strip. A couple of years ago ABX posted an animation that had three
views in the one screen. I believe that he did this in Mega-Pov.

Stephen


Post a reply to this message

From: pierre
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 11:10:00
Message: <web.45115966dd59baefad334ed60@news.povray.org>
Thanks everybody,

It would have been better to post in the beginner part as I am a complete
rookie in Povray and generally speaking in computer science!
Sorry to have bothered some of you.
Neverthless I have a final stupid question to submit:
I have used the command vrotate, and add the specifical code .ini. Now I
obtained exactely what I wanted (several images from the scene!). Thanks
lot again!
But the way to use this command is rather unclear (especially for non
english guy, and a non computer science guy!):

"vrotate(A,B) Rotate A about origin by B. Given the x,y,z coordinates of a
point in space designated by the vector A, rotate that point about the
origin by an amount specified by the vector B. Rotate it about the x-axis
by an angle specified in degrees by the float value B.x. Similarly B.y and
B.z specify the amount to rotate in degrees about the y-axis and z-axis.
The result is a vector containing the new x,y,z coordinates of the point."

In my problem the center of my object is (1000,1000,0). How to define the
parameters to make a circle around the center of this object with a
distance of 1000?

Hoping it is not pushing the limit too far, to ak you such a question!


Warm greetings
Pierre




"Stephen" <mcavoys_AT_aolDOT.com> wrote:
> Mike Williams <nos### [at] econymdemoncouk> wrote:
> > Wasn't it pierre who wrote:
> > >Thanks for yours answers,
> > >
> > >I tried to implemente my code with v-rotate.
> > >
> > >But I still have the same problem, the file which is saved after runing
> > >povray is a bitmap file (a single picture...)
> >
> > That would probably be because you didn't actually read the "animation"
> > section in the documentation.
> >
> > I suppose I could copy and paste it here, but that would be a bit
> > redundant.
> >
> > --
> > Mike Williams
> > Gentleman of Leisure
>
> Unless Pierre meant that he wanted several images on the same frame like a
> contact strip. A couple of years ago ABX posted an animation that had three
> views in the one screen. I believe that he did this in Mega-Pov.
>
> Stephen


Post a reply to this message

From: Stephen
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 11:35:00
Message: <web.45115f6ddd59baeff1cb1e660@news.povray.org>
"pierre" <pie### [at] efpginpgfr> wrote:
> Thanks everybody,
>

> In my problem the center of my object is (1000,1000,0). How to define the
> parameters to make a circle around the center of this object with a
> distance of 1000?
>
> Hoping it is not pushing the limit too far, to ak you such a question!
>
>




newusers as people are more tolerant there. (No offence, Mike)


is good. But what plane do you want your circle to lie in? If you want a
camera to orbit around your object remember to have the look_at parameter
point to the centre of your object.
Experiment, use the #debug stream (a great tool) to see what is happening.

Good Luck

Stephen


Post a reply to this message

From: Tim Attwood
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 19:58:52
Message: <4511d5bc@news.povray.org>
> In my problem the center of my object is (1000,1000,0). How to define the
> parameters to make a circle around the center of this object with a
> distance of 1000?

light_source { 0 color 1
   translate -1000*x // orbit diameter
   rotate clock*360*y // move in orbit
   rotate 30*x // incline
   translate <1000,1000,0> // center on object
}


Post a reply to this message

From: Alain
Subject: Re: Save several images from the same Scene?
Date: 20 Sep 2006 21:50:59
Message: <4511f003$1@news.povray.org>
pierre nous apporta ses lumieres en ce 20/09/2006 06:54:
> Thanks for yours answers,
> 
> I tried to implemente my code with v-rotate.
> 
> But I still have the same problem, the file which is saved after runing
> povray is a bitmap file (a single picture...)
> 
> I give you  my code:
> 
> #include "colors.inc"
> 
> background {color Black}
> camera {     location <1000, 1866, -505>
> look_at <1000, 1000, 0>
> angle 10
> }
> 
> 
> 
>  #include "vierge2pas10obj_POV_geom"
> 
>  #include "vierge2pas10obj_POV_mat"
> 
> object {vierge2pas10obj_mesh_unnamed_material_
> 
> texture{ pigment{color rgb<0.80, 0.80, 0.75>}
> 
>          finish {               ambient 0        //ambient lighting
>                                 brilliance 0      //brilliance
>                                 crand 0          //crand amount
>                                 diffuse 0       //diffuse lighting
>                                 //ior  1.52           //index of refraction
>                                 //metallic
>                                 //phong 1          //phong highlighting
>                                 //phong_size 250     //phong size
>                                 reflection 0     //reflected light
>                                 //refraction      //refract toggle
>                                 roughness 0.001       //roughness
>                                 specular 1      //specular highlighting
> 
> }      }   }
> 
> 
> 
>  light_source {
>   vrotate(<-1000,0,0>,<0,clock*360,30>)
> 
> color White
>   parallel
>   point_at <1000, 1000, 0>
>    }
> 
> 
> Warm greetings
> 
> Pierre
> 
> "Stephen" <mcavoys_AT_aolDOT.com> wrote:
>> "Stephen" <mcavoys_AT_aolDOT.com> wrote:
>>> "pierre" <pie### [at] efpginpgfr> wrote:
>>>> Hi everybody,
>>>>
>>> You can use the animation features of Pov-Ray; help section 2.3.8 Making
>>> Animations
>>> Use the clock and or frame_number variables to create a series of images
>>> that can be made into an animation using a third party programme.
>>>

>> changing on screen. I find this useful. Another method is to use the #debug
>> command to output you variables to a text file for future reference.


>> movie. The downside is that you have to make many more frames if you want
>> to view the changes over a reasonable period of time.
>>
>> Stephen
> 
> 
> 
> 
Using the windows version, beside the resolutions box, you have a small text 
box. That box is a "command line options box" where you can place any command 
line" option.
In that box, enter "+kff30" and start the render.
POV-Ray will start to render 30 versions of your scene with the clock variable 
going from 0 to 1. All frames will be named consecutively as: scenenamexx.ext 
where xx is a number.

-- 
Alain
-------------------------------------------------
The more crap you put up with, the more crap you are going to get.


Post a reply to this message

<<< Previous 2 Messages Goto Initial 10 Messages

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