POV-Ray : Newsgroups : povray.binaries.tutorials : Making matte/shadow-textures in instant-compositings Server Time
19 Jul 2024 10:45:50 EDT (-0400)
  Making matte/shadow-textures in instant-compositings (Message 1 to 2 of 2)  
From: H  Karsten
Subject: Making matte/shadow-textures in instant-compositings
Date: 13 Jan 2009 08:00:01
Message: <web.496c8e8bd6f3d46e6b25087b0@news.povray.org>
Making matte/shadow-textures in instant-compositings

To complete the chrome-map tutorial, here the one to show you how to make
matte/shadow-textures in renderings.

I've posted a new thread, because you can use this also in other issues like
HDR-renderings of object into an additional photos of the HDR-environments and

By the way: don't confuse the chrome-map with HDRs the one has nothing to do
with the other.

For this tutorial you'll need:
-A picture, where you like to put a 3d-object into.
-read this: web.496bc004fe4d566620776f0@news.povray.org

To let your 3d-object better fit into the real environment, a shadow is very
important - and in most cases its easy!

In fact, most cases means a plane: In normal environments, you have a ground and
you will put something on it. What you need is a plane that is more or less
opaque in-, and invisible outside of the shadows.

The first step is, to fit the plane, or other objects, to the
background-picture. this is the most difficult part. Sometimes you need to
adjust your lens-angle to.

When this is done, do this:

plane {y,0  // adjust plane first
hollow on
pigment {
projection {
object {your_object} // this pattern projects your object onto the plane
point <-20,40,15> // point of the light_source
//normal on  // use this to get an occlusion-effect                        //
instead of a normal shadow
blur .1,64  // this blurs your shadow (amount,samples)
color_map {
[0 color rgbt 1] // this is outside of the shadow (invisible)
[1 color rgbt <0,0,0,0.5>] // experiment with the last value:
}}}      // 1=invisible 0=black

If you have more than one object, define them as a union{..} and take them for
the projection{object{...}} keyword.

To finalize your rendering, focus the camera somewhere between your object and
the camera-plane that contains the background-image. Use small values for the
aperture keyword.

With this trick, you cam adjust the sharpness between you object and the photo.

Sharp objects often looking very artificial.

Have fun


Post a reply to this message

Download 'shadow.png' (593 KB)

Preview of image 'shadow.png'


From: clipka
Subject: Re: Making matte/shadow-textures in instant-compositings
Date: 13 Jan 2009 08:30:01
Message: <web.496c964cdf70e042f15adb2a0@news.povray.org>
"H. Karsten" <h-karsten()web.de> wrote:
> By the way: don't confuse the chrome-map with HDRs the one has nothing to do
> with the other.

Well, they have, insofar as they are often combined ;)

They're then often called "HDR light probes" - but H. Karsten is right in that
there are indeed "light probes" which are not HDR at all (bad choice if I'm
asked), and there are HDR images that have nothing to do with light probes.

The reason why light probes and HDR usually go tother hand in hand is that a HDR
light probe still gives very good results if your reflective object happens to
be only somewhat reflective, while standard 8-bit file formats have some
disadvantages in these cases. They're much easier to produce with a digicam
though, and if you need something other than plain chrome for your rendered
object, you may think about using a sphere made of just the desired material.

Post a reply to this message

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