POV-Ray : Newsgroups : povray.general : alpha transparency help : Re: alpha transparency help Server Time
19 Nov 2024 07:30:47 EST (-0500)
  Re: alpha transparency help  
From:
Date: 4 Apr 2002 15:50:00
Message: <64epau09jm2je8i8bofek3tcrsg536lu8q@4ax.com>
On Thu, 4 Apr 2002 14:32:26 -0500, "Corey Woodworth" <cdw### [at] mpinetnet> wrote:
> Is there a way I can give the
> floor a no_image tag or something similar but still let shadows be cast on
> it.

Try this:

1. Create plane/background as object in variable.
2. Create your model as object in variable.
3. Trace grid of rays:
  - resolution of grid (grid_res) is small becouse makes smoothness/accuracy
    of edges in shadow
  - whole grid contains all vertices of bounding box of your model
  - everyt ray start from light_source and goes along grid
  - test intersection of ray with model
4. For every succesful intersection in point 3 test intersection of the same
    ray with your background object
5. For every succesful intersection in point 4 create disc with
  - center at intersection point
  - normal at intersection point
  - radius = grid_res / sqrt(2)
  - material as in background object

Tell me if it works, I never tested.

ABX


Post a reply to this message

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