|
![](/i/fill.gif) |
"sunrisefe" <sun### [at] 126 com> wrote in message
news:web.4909b0923dbceb7bda9c2a10@news.povray.org...
>I am a newer to POV-Ray and I already read the FAQ but didn't get the
>answer of
> following doubt:
> 1. Is it possilble to implement walkthrough in forest with pov-ray? or is
> it
> possible/convinient to realize animation with povray?
Hi and welcome.
Yes. There's quite a bit you can do by way of animation. There are two
newsgroups dedicated to animation (povray.animations and
povray.binaries.animations). It's generally not considered a newbie topic
because you need to have an understanding of the POV-Ray coordinate system
and how to control variables in POV-Ray, but if you just want to do a simple
walkthrough it might not get too complicated.
POV-Ray allows you to generate a sequence of frames using the command line
options +kfi and +kff (key frame initial and key frame final), so specifying
+kfi0 +kff60 will generate 61 images, numbered 00 to 60. If you don't change
anything in the scene you'll get 61 identical images, so you need to change
something and this is usually done using the 'clock' setting, which runs
from 0 to 1 from the start to the end of the animation cycle.
To move the camera in a straight line you can, for example, specify your
camera as:
camera {location <0,1,-3+clock> }
which will move the camera from <0,1,-3> to <0,1,-2> through the animation
cycle.
You can construct more complex camera paths in a number of ways, including
using splines.
There's an introductory Wiki page here
http://wiki.povray.org/content/HowTo:Create_animations
> 2. Browse all the pov files after installed in windows, I didn't find any
> object
> with textured picture from harddisk. Is it possible use one picture as
> texture
> of one object rendered by povray?
You need to look for image_map in the help. You can use an image as a
pigment or a normal within a texture statement. By default the image appears
between x=0, y=0 and x=1, y=1 and is extruded in the positive and negative Z
directions. You can scale it and translate it to cover your object. You can
also use uv-mapping to wrap it around various different types of surfaces
(though this requires quite an understanding of the POV-Ray coordinate
system and the uv-mapping options).
>
> 3. If I want to render a forest with many trees and trees are modeled by
> XFOG,
> is it possible to integrate the tree's code in pov file? From
> http://hof.povray.org/Boreal_big.html , i wonder how to realize it.
I don't know XFOG, but most tools allow you to export into a format suitable
for conversion to POV-Ray, and some support POV-Ray format directly. For
example, if it exports obj files you could convert them with PoseRay (a
freely downloadable utility).
Regards,
Chris B.
Post a reply to this message
|
![](/i/fill.gif) |