POV-Ray : Newsgroups : povray.newusers : Need help with POV-Ray !! Server Time
29 Jul 2024 00:27:25 EDT (-0400)
  Need help with POV-Ray !! (Message 11 to 20 of 28)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 8 Messages >>>
From: k1s3k1
Subject: Re: Need help with POV-Ray !!
Date: 15 Aug 2007 13:20:01
Message: <web.46c334ba4683e64799fead9e0@news.povray.org>
so.. that is okay right??

i should do the mountains now??
im not quite sure how to make the mountains using height_fields though :(

where can i find the image files for height_field?


Post a reply to this message

From: M a r c
Subject: Re: Need help with POV-Ray !!
Date: 15 Aug 2007 13:34:12
Message: <46c33914$1@news.povray.org>

web.46c334ba4683e64799fead9e0@news.povray.org...
> so.. that is okay right??
>
> i should do the mountains now??
> im not quite sure how to make the mountains using height_fields though :(
>
> where can i find the image files for height_field?

That's the hardest : you'll have to make them.
Have you well understood that the whitest the pixel of the image is, the 
highest the heigh_field?
A simple solution is to run a paint software and  use a blurred brush to 
paint clear zones on a black background.
Then save your image and use it as image for your height_field.
You'll have to follow a try and error way I guess
Marc


Post a reply to this message

From: kurtz le pirate
Subject: Re: Need help with POV-Ray !!
Date: 15 Aug 2007 13:43:04
Message: <kurtzlepirate-EE14C0.19430415082007@news.povray.org>
In article <web.46c2da8ebc1e6cbb99fead9e0@news.povray.org>,
 "k1s3k1" <k1s### [at] gmailcom> wrote:

> im very new to POV-Ray and I have an assignment which is due next month.
> 
> I want to make an image of a photo something like this,
> http://www.dskendall.com/images/199812.jpg
> 
> Can anyone help me get started? Is it a difficult task to do?

have a look here : <http://www.imagico.de/lotw/index.html>



-- 
klp


Post a reply to this message

From: k1s3k1
Subject: Re: Need help with POV-Ray !!
Date: 15 Aug 2007 13:45:00
Message: <web.46c33b024683e64799fead9e0@news.povray.org>
"M_a_r_c" <jac### [at] wanadoofr> wrote:
>
> That's the hardest : you'll have to make them.
> Have you well understood that the whitest the pixel of the image is, the
> highest the heigh_field?
> A simple solution is to run a paint software and  use a blurred brush to
> paint clear zones on a black background.
> Then save your image and use it as image for your height_field.
> You'll have to follow a try and error way I guess
> Marc

So.. with the image, black background and white blurred brush?

If possible, can anyone give me an example of the image? :)

Thanks


Post a reply to this message

From: M a r c
Subject: Re: Need help with POV-Ray !!
Date: 15 Aug 2007 14:22:14
Message: <46c34456@news.povray.org>

web.46c33b024683e64799fead9e0@news.povray.org...
> "M_a_r_c" <jac### [at] wanadoofr> wrote:
> If possible, can anyone give me an example of the image? :)
>
> Thanks
>
Here is a very fast done example... put the image in the same folder as the 
.pov file

Marc

camera {
  location  <-2, 0.5, -4.0>*.6
  direction 1.5*z
  right     x*image_width/image_height
  angle 100
  look_at   <-.4, 0.5,  0.0>
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------
#declare P_Rock = pigment { color rgb <1,0.3,0.1>}
plane {
  y, 0
  pigment {P_Rock} }


// uses image color index as height, extends along X-Z axes
// from <0 0 0> to <1 1 1>
height_field {
  png               // the file type to read (tga/pot/pgm/ppm/png/sys)
  "new-1.png"
     // the file name to read
smooth
 pigment {P_Rock}
 translate <-.5,-.02,-.5>
 scale <5,1,5>
}


Post a reply to this message


Attachments:
Download 'new-1.png' (61 KB)

Preview of image 'new-1.png'
new-1.png


 

From: Larry Hudson
Subject: Re: Need help with POV-Ray !!
Date: 15 Aug 2007 20:57:46
Message: <46c3a10a@news.povray.org>
k1s3k1 wrote:
> ...
> If possible, can anyone give me an example of the image? :)
> 
> Thanks
> 
You can find a quickie demo in the scenes directory (a collection of 
examples to study/play with) that is installed with POV-Ray.  Look for 
crater.pov and crater_dat.pov in the objects directory.  Read the 
comments at the beginning of crater.pov for the instructions on 
rendering this example -- you have to render crater_dat first.

      -=- Larry -=-


Post a reply to this message

From: Alain
Subject: Re: Need help with POV-Ray !!
Date: 16 Aug 2007 06:01:37
Message: <46c42081@news.povray.org>
kurtz le pirate nous apporta ses lumieres en ce 2007/08/15 13:43:
> In article <web.46c2da8ebc1e6cbb99fead9e0@news.povray.org>,
>  "k1s3k1" <k1s### [at] gmailcom> wrote:
> 
>> im very new to POV-Ray and I have an assignment which is due next month.
>>
>> I want to make an image of a photo something like this,
>> http://www.dskendall.com/images/199812.jpg
>>
>> Can anyone help me get started? Is it a difficult task to do?
> 
> have a look here : <http://www.imagico.de/lotw/index.html>
> 
> 
> 
This is prety advanced stuff, and, as it makes heavy use of randomness, it's 
harn do acheive specific results.

-- 
Alain
-------------------------------------------------
Q. What's the difference between Batman and Bill Gates?
A. When Batman fought the Penguin, he won.
                                            -- J. Levine


Post a reply to this message

From: k1s3k1
Subject: Re: Need help with POV-Ray !!
Date: 16 Aug 2007 20:55:00
Message: <web.46c4f17b4683e64799fead9e0@news.povray.org>
thanks Marc  you helped me so much! i quite understand it now.. :)

By the way, is it possible to make the ground a big curvy, not flat? Because
of rocks etc.. And how do i add shrubs ?


Post a reply to this message

From: Alain
Subject: Re: Need help with POV-Ray !!
Date: 16 Aug 2007 21:11:32
Message: <46c4f5c4$1@news.povray.org>
k1s3k1 nous apporta ses lumieres en ce 2007/08/16 20:53:
> thanks Marc  you helped me so much! i quite understand it now.. :)
> 
> By the way, is it possible to make the ground a big curvy, not flat? Because
> of rocks etc.. And how do i add shrubs ?
> 
> 
> 
You can use a very large, possibly flatened sphere. This will make it gently 
curve down from the center.
For example:
sphere{0, 10000 scale<5,0.01,5> translate -100*y}

It's possible to use an isosurface to do the same, with the benefit that you can 
alter the actual shape, but with a slower rendering speed.

-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when you have ever brought your 
computer to its knees by mistakenly launching 64 simultaneous frames to be 
traced, while trying to maximizing the benefits of parallelizing them.
Carsten Whimster


Post a reply to this message

From: M a r c
Subject: Re: Need help with POV-Ray !!
Date: 17 Aug 2007 04:32:44
Message: <46c55d2c@news.povray.org>

46c4f5c4$1@news.povray.org...
> You can use a very large, possibly flatened sphere. This will make it 
> gently curve down from the center.
> For example:
> sphere{0, 10000 scale<5,0.01,5> translate -100*y}
>
> It's possible to use an isosurface to do the same, with the benefit that 
> you can alter the actual shape, but with a slower rendering speed.
>
An other easy alternative, now that k1s3k1 has understood height_fields is 
to use a 2nd one made from a image created by POVRay.
It is sometimes easy to use the procedural textures to create images for 
height_fields.
I post 2 small example files in povray.binaries.scene-files (see topic 
"Rocky ground")

Marc


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 8 Messages >>>

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