POV-Ray : Newsgroups : povray.binaries.tutorials : How to render mirrored objects into _real_ pictures Server Time
21 Dec 2024 22:52:40 EST (-0500)
  How to render mirrored objects into _real_ pictures (Message 1 to 4 of 4)  
From: H  Karsten
Subject: How to render mirrored objects into _real_ pictures
Date: 12 Jan 2009 17:20:00
Message: <web.496bc004fe4d566620776f0@news.povray.org>
This is a simple tutorial that shows you to render chrome-textured objects into
real pictures, taken by your photo-camera.

You need:
-A camera (optional a stand)
-A Chrome-Ball
-Megapov

- Put the ball almost to the place, where you like to have the 3d-object.
- Make a Photo (best, from far away with a narrow angle. Otherwise, you see your
self..)
- Make a second picture without the ball from almost the same place (best with a
stand)
- Crop the Ball picture
- Use the cropped picture as image-map for the environment sphere
(shrinkwraped!!),"no_image"
- Use the other picture as image.map for the background-plane
(screen.inc),"no_reflection"

have fun :)

PS.: Compare the image-numbers in the scene with the numbers in the uploaded
image.

####################################################################################

#include "screen.inc"

Set_Camera_Location(<0.0, 0.5, -4.0>)
Set_Camera_Look_At(<0.0, 0.0,  0.0>)
Set_Camera_Aspect(image_width,image_height)
#declare T=texture{pigment{
image_map {
  jpeg "3.jpg"
  map_type 0
  interpolate 2
}}
finish{ambient 1}
}
object{
Screen_Plane (T, 1000, <0,0>, <1,1>)
no_reflection
}
sphere {
  0.0, 1
  texture {
    pigment {
image_map {
  jpeg "2.jpg"
  map_type 7
  interpolate 2
}
    }
finish{ambient 1}
  }
scale <-1,1,1>
scale 1000
rotate y*180
no_image
}

julia_fractal {
  <-0.083,0.0,-0.83,-0.025>
  quaternion
  cube
  max_iteration 4
  precision 20
finish{reflection 1}
//optional...
rotate <frame_number,frame_number*2,frame_number*4>
scale 0.3
translate <.35,-0.2,0>
}


Post a reply to this message


Attachments:
Download 'chrome-map.png' (112 KB)

Preview of image 'chrome-map.png'
chrome-map.png


 

From: Edouard Poor
Subject: Re: How to render mirrored objects into _real_ pictures
Date: 14 Jan 2009 22:05:00
Message: <web.496ea74bcb35516a245002290@news.povray.org>
This has tripped me up, but I believe that the image of the mirror ball, and the
megapov "maptype 7" mapping are different. Paul Debevec explains it on
http://www.debevec.org/probes/


steradians. Also note that the mapping being used is different than the mapping
one observes in a mirrored ball -- the mapping we're using avoids the problems
of poor sampling near the backwards-facing directions around the circumference
of the image."

Cheers,
Edouard.


Post a reply to this message

From: clipka
Subject: Re: How to render mirrored objects into _real_ pictures
Date: 15 Jan 2009 06:00:00
Message: <web.496f16c5cb35516aaf8dfc8f0@news.povray.org>
"Edouard Poor" <pov### [at] edouardinfo> wrote:
> This has tripped me up, but I believe that the image of the mirror ball, and the
> megapov "maptype 7" mapping are different.

They are different indeed.

For the plain viewing effect it doesn't make a difference though. And if you
need correct mapping, "HDRShop" is what you want to go for.


Post a reply to this message

From: H  Karsten
Subject: Re: How to render mirrored objects into _real_ pictures
Date: 16 Jan 2009 09:15:02
Message: <web.49709630cb35516a7fad02d40@news.povray.org>
That explaines a view strange things, I've had in a view scenes.

Thanx :)


Post a reply to this message

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