POV-Ray : Newsgroups : povray.newusers : difference and bicubic_patch : Re: difference and bicubic_patch Server Time
5 Sep 2024 04:15:12 EDT (-0400)
  Re: difference and bicubic_patch  
From: Batronyx
Date: 24 Nov 2001 13:51:10
Message: <3bffec1e@news.povray.org>
"marabou" <not### [at] availableyet> wrote in message news:3bfbf8ed@news.povray.org...
>
> hello,
> i made a shape with bicubic_patch and failed as i tried to difference it
> from a box:
>
> difference{
> box{<0,0,0>,<1,1,1> pigment{color Green}}
> object{
>         a_bicubic_object
> }
> }//difference
>
> the result was an empty scene.
> is there any way to come by this problem?

As warp explained, this won't work directly. However, heightfields _do_
difference correctly. Depending on what you want to do, this will work: render
an orthographic view of your patch object, with the cutting side pointing
towards the camera, and a black to white gradient assigned to the patch -- back
to front with respect to the camera view -- and use ambient one and no lights.
Use the resulting image as a heigtfield and difference it from the cube. In 3.5
or MegaPOV, using max_extents on your patch object can help you get the proper
scaling values for the heightfield.

Hope that helps :)

Batronyx ^"^


Post a reply to this message

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