POV-Ray : Newsgroups : povray.newusers : walkthrough, texture picture, other proceduel? Server Time
23 Dec 2024 21:53:47 EST (-0500)
  walkthrough, texture picture, other proceduel? (Message 1 to 3 of 3)  
From: sunrisefe
Subject: walkthrough, texture picture, other proceduel?
Date: 30 Oct 2008 09:05:01
Message: <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?
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?

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.

Thank you in advance.


Post a reply to this message

From: Chris B
Subject: Re: walkthrough, texture picture, other proceduel?
Date: 30 Oct 2008 11:49:09
Message: <4909d775$1@news.povray.org>
"sunrisefe" <sun### [at] 126com> 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

From: Alain
Subject: Re: walkthrough, texture picture, other proceduel?
Date: 30 Oct 2008 17:52:22
Message: <490a2c96$1@news.povray.org>
sunrisefe nous illumina en ce 2008-10-30 09:03 -->
> 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?
Yes.
But it is importent to understand that it won't be a real time animation. The 
result will be a collection of images whose names are constructed from the name 
of the scene file appended with a number. You will need some external 
application to combine those into a single file.

> 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?
Read the answer by Chris B
You can use most image file formats.
> 
> 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.
> 
> Thank you in advance.
> 
> 


-- 
Alain
-------------------------------------------------
Stoicism: This shit is good for me.


Post a reply to this message

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