![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
is it possible to subtract two shapes in a single difference statement?
as in this:
difference {
box1 //the box that is subtracted from
box2 //box1 has this shape subtracted from it
box3 //does box3 have this shape subtracted from it as well?
}//end difference statement
and can anyone point me to a tutorial on csg?
Many thanks for any help,
CMcCabe
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
CMcCabe wrote:
>
> is it possible to subtract two shapes in a single difference statement?
> as in this:
> difference {
> box1 //the box that is subtracted from
> box2 //box1 has this shape subtracted from it
> box3 //does box3 have this shape subtracted from it as well?
> }//end difference statement
>
> and can anyone point me to a tutorial on csg?
>
> Many thanks for any help,
> CMcCabe
It is easist to think of this way. Box 1 is the only object acted upon
in a csg operation (the first object in a csg operation). In the above
example box 1 will be acted upon by box 2 and box 3 but box 2 will not
be acted upon by box 3.
It is possible to nest csg operations -
difference {
union {
box1
box2
}
box3
}
In the above box 1 and box 2 are unioned together and then differenced
by box 3 so that box 1 and box 2 are both acted upon by box 3.
intersection {
merge {
box 1
box 2
}
box 3
}
In the above box 1 is merged with box 2, and then box 1 and box 2,
are both intersected by box 3. You can use any combination and depth
of csg nesting to acheive the desired shape you are looking for.
POV-Ray tutorials can be found by following this link
http://www.povray.org/links/3D_Tutorials/POV-Ray_Tutorials/
--
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
i found out what i did wrong and now have another question
in using a merge or difference statement, why is it that objects just
dissappear if they are not touching?
as for tutorials... after doing a text search for 'geometry' or 'csg' in the
page, i couldn't find what i was looking for
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
CMcCabe wrote:
>
> i found out what i did wrong and now have another question
> in using a merge or difference statement, why is it that objects just
> dissappear if they are not touching?
It would be hard to say unless you provided me with a specific example
to look at. Needless to say a CSG operation (except a union) requires
that the objects in the CSG must be touching for the operation to work
properly. In your original example the only object that would ever be
visible in the scene would be box 1. Box 2 and box 3 are only reference
shapes for the operation and would not be visible regardless if they
touched box 1 or not.
> as for tutorials... after doing a text search for 'geometry' or 'csg' in the
> page, i couldn't find what i was looking for
Try this page; chapter 8 - http://jan.ucc.nau.edu/~dld6/pov_lessons/index.html
--
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Tue, 21 Mar 2000 17:19:41 -0500, CMcCabe wrote:
>i found out what i did wrong and now have another question
>in using a merge or difference statement, why is it that objects just
>dissappear if they are not touching?
>
>as for tutorials... after doing a text search for 'geometry' or 'csg' in the
>page, i couldn't find what i was looking for
>
The POV documentation describes CSG very well along with examples.
When I first got POV, I printed the whole manual out and used to take
various sections to work with me so that I could read them on the bus.
--
Cheers
Steve email mailto:sjl### [at] ndirect co uk
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.ndirect.co.uk/~sjlen/
or http://start.at/zero-pps
3:41pm up 3 days, 12:16, 6 users, load average: 1.81, 1.50, 1.25
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Steve wrote:
> The POV documentation describes CSG very well along with examples.
> When I first got POV, I printed the whole manual out and used to take
> various sections to work with me so that I could read them on the bus.
Gee Steve, was that a disguised RTFM relpy I just detected ? :)
--
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Steve" <sjl### [at] ndirect co uk> wrote in message
news:slr### [at] zero-pps localdomain...
> The POV documentation describes CSG very well along with examples.
> When I first got POV, I printed the whole manual out and used to take
> various sections to work with me so that I could read them on the bus.
Any simple way to reformat the manual so that it will print compactly--in
other words, without reams of white space/scratch paper between
sub-sections?
--
s. (who reads TFM on his smoke breaks, but keeps a quad notebook for ideas)
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
sighmoan wrote:
>
> "Steve" <sjl### [at] ndirect co uk> wrote in message
> news:slr### [at] zero-pps localdomain...
>
> > The POV documentation describes CSG very well along with examples.
> > When I first got POV, I printed the whole manual out and used to take
> > various sections to work with me so that I could read them on the bus.
>
> Any simple way to reformat the manual so that it will print compactly--in
> other words, without reams of white space/scratch paper between
> sub-sections?
Besides the Windows .hlp format there are 3 other versions of the docs
available at the link below - .pdf, .doc, and html. Choose your favorite.
http://www.povray.org/ftp/pub/povray/Official/Docs/
--
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Wed, 22 Mar 2000 14:50:56 -0800, Ken wrote:
>
>
>Steve wrote:
>
>> The POV documentation describes CSG very well along with examples.
>> When I first got POV, I printed the whole manual out and used to take
>> various sections to work with me so that I could read them on the bus.
>
>Gee Steve, was that a disguised RTFM relpy I just detected ? :)
Yes: The only thing I forgot was the links to the pov docs in all their
different forms.
I've been using the product for about two years now and still use my
text based version of the Official Pov docs for almost every single
pov project I work on, I've even got a little script that opens it
up for me in it's own Xterminal window with my prefered colours,
I've named the script 'emanuel'.
--
Cheers
Steve email mailto:sjl### [at] ndirect co uk
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.ndirect.co.uk/~sjlen/
or http://start.at/zero-pps
12:35am up 3 days, 21:10, 5 users, load average: 1.18, 1.28, 1.21
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Ken" <tyl### [at] pacbell net> wrote in message
news:38D9E780.19D60849@pacbell.net...
> Besides the Windows .hlp format there are 3 other versions of the docs
> available at the link below - .pdf, .doc, and html. Choose your favorite.
>
> http://www.povray.org/ftp/pub/povray/Official/Docs/
Thanks, Ken--I should have known.....
I've been getting warnings about a damaged help file, lately, and need to
fix it anyway.
May the road rise to you, and your PPS be faster than your typing speed.
--
s.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |