|
![](/i/fill.gif) |
"Bald Eagle" <cre### [at] netscape net> wrote:
> "Cousin Ricky" <rickysttATyahooDOTcom> wrote:
>
> "I'm rendering the shadowy part
> separately with area lights, then splicing that into the main scene."
>
> Very cool lenses!
> How does one do this splicing thing of which you speak?
In years past, with GIMP or Micro$haft Paint, and lots of tedious counting of
pixels. This time, I'm doing it entirely in POV-Ray, compositing the final
image with image maps of the earlier renders.
Here is a snippet of the code:
____________________________________________________________________
#declare SAFETY_MARGIN = 0.005;
#declare S_INSET_NAME = "cgs-convex_stack-inset.png"
union
{ plane { -z, 0 }
object { RC3Embossed_Message (2014) translate <DIM - 30, 25, 0> }
#if (file_exists (S_INSET_NAME)) // soft-shadow inset
#debug "Inserting soft-shadow inset.\n"
box
{ <0.30, 0.15, -1> + SAFETY_MARGIN, <1, 0.29 - SAFETY_MARGIN, 0>
pigment { image_map { png S_INSET_NAME } }
scale <DIM, DIM, 1>
}
#else
#debug "Soft-shadow inset image not found.\n"
#end
pigment
{ image_map { png "cgs-convex_stack.png" }
scale DIM
}
no_shadow
}
____________________________________________________________________
The inset file is created with the command line options:
+sc0.30 +sr0.71 +er0.85 declare=Soft=1
and
+ocgs-convex_stack-inset
The Soft variable turns on the area light. The SAFETY_MARGIN (more than)
accounts for any pixel rounding from the partial render. The macro
RC3Embossed_Message creates the copyright notice.
Post a reply to this message
|
![](/i/fill.gif) |