POV-Ray : Newsgroups : povray.newusers : how can I do the opposite of clipped_by? Server Time
14 Nov 2024 04:33:05 EST (-0500)
  how can I do the opposite of clipped_by? (Message 1 to 4 of 4)  
From: EitanTal
Subject: how can I do the opposite of clipped_by?
Date: 24 Apr 1999 04:14:05
Message: <37216f3d.0@news.povray.org>
for example, I want to make a black rock with some text written on it, (that
it is
actually holes in the rock)

I mean, the text "eats" the rock by its form.

this is the opposite of clipped by.
how do I do this?


Post a reply to this message

From: Ken
Subject: Re: how can I do the opposite of clipped_by?
Date: 24 Apr 1999 08:52:12
Message: <3721B009.1EC1D24A@pacbell.net>
EitanTal wrote:
> 
> for example, I want to make a black rock with some text written on it, (that
> it is
> actually holes in the rock)
> 
> I mean, the text "eats" the rock by its form.
> 
> this is the opposite of clipped by.
> how do I do this?


  There are really two possible opposites to the clipped by but
I will list the most common method. What you are looking for is
probably the "difference" CSG operation. If you want to punch a
hole in something, either part of the way or all of the way, you
could use the difference to do this. I will give you a quick
example of both.

  A hole part of the way through the object example:

  difference {
    cylinder { z*-1.0, z*1.0, 1.0 }
    cylinder { z*-1.1, z*0.0, 0.5 }}


  A hole all of the way through the object example:

  difference {
    cylinder { z*-1.0, z*1.0, 1.0 }
    cylinder { z*-1.1, z*1.1, 0.5 }}


 If you wanted to subtract text from the face of a box you
could use the same method above using the Pov-Ray text
function to make your letters and then difference them from
the box. Always remember to have the object that is going
to have the hole taken from it as the first object in the
difference statement. The object that is the shape you are
removing must be the second object in the difference
statement.


-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Andrew Cocker
Subject: Re: how can I do the opposite of clipped_by?
Date: 24 Apr 1999 10:12:05
Message: <3721c325.0@news.povray.org>
EitanTal <eit### [at] netvisionnetil> wrote in message
news:37216f3d.0@news.povray.org...
> for example, I want to make a black rock with some text written on it, (that
> it is
> actually holes in the rock)
>
> I mean, the text "eats" the rock by its form.
>
> this is the opposite of clipped by.
> how do I do this?
>
>

difference {
    object {Rock}
    object {Text}
    }

Andy


Post a reply to this message

From: Bob Hughes
Subject: Re: how can I do the opposite of clipped_by?
Date: 26 Apr 1999 06:34:28
Message: <372432EF.C60C9820@aol.com>
Just to add here, as good a place as any:

 difference { //primary object first
  MainObject
  SecondaryObject
  SecondaryObject
  SecondaryObject
 }

 intersection { //primary object last
  SecondaryObject
  SecondaryObject
  SecondaryObject
  MainObject
 }

 merge { //any order(?) this one I'm not positive of at the moment
  SecondaryObject
  MainObject
  SecondaryObject
  SecondaryObject
 }

 union { //any order
  SecondaryObject
  SecondaryObject
  MainObject
  SecondaryObject
 }


Ken wrote:
> 
> Always remember to have the object that is going
> to have the hole taken from it as the first object in the
> difference statement. The object that is the shape you are
> removing must be the second object in the difference
> statement.
> 
> --
> Ken Tyler
> 
> mailto://tylereng@pacbell.net

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

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