POV-Ray : Newsgroups : povray.newusers : Rendering ONLY the shadow falling on the object (not the object itself) : Re: Rendering ONLY the shadow falling on the object (not the object itself) Server Time
4 Nov 2024 21:24:43 EST (-0500)
  Re: Rendering ONLY the shadow falling on the object (not the object itself)  
From: Peter Popov
Date: 23 Nov 2002 03:24:49
Message: <0deutugv9tvr6v0cub2upcvcq3eu8h0hur@4ax.com>
1. As suggested, put a white plane behind your object. Give your
object no_image. Render. This will render just the shadow

2. In PhotoShop, for example, select the brightness as transparency
(the easiest way is to do this in PhotoShop is to duplicate any of the
r, g or b channels and make a selection out of it). Create a
transparent layer and fill it with black using that selection or,
alternatively, with the selection still active, create a solid color
fill layer. Delete the original layer. Now you have a shadow sprite,
too. Just save the image in the appropriate format and you're
finished.

Alternatively, you can use POV-Ray's output directly, without any
post-processing, but you'll have to use multiplicative multitexturing
in your 3D engine.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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