POV-Ray : Newsgroups : povray.text.tutorials : Rounding off edges Server Time
23 Nov 2024 21:12:47 EST (-0500)
  Rounding off edges (Message 1 to 10 of 19)  
Goto Latest 10 Messages Next 9 Messages >>>
From: TigerHawk
Subject: Rounding off edges
Date: 27 Aug 1999 18:19:52
Message: <37C862D1.C1A56DE7@stic.net>
About a week ago I started creating a toilet model in pov-ray (yes,
I know it's been done, but I wanted my own toilet :) via a text editor.
I did not want to use a modeller because I'd be able to move things
around better (I suppose I could make peices of it in a modeller, but
the scaling may be off, etc. Besides, I like CSG). The problem I have
encountered is the smoothing of the edges. Now, I know I can use a
superellipsoid for the tank and tank lid, but what about the seat and
the top of the base? Using cylinders and such makes the edges very sharp
(OUCH!) and I am wondering how might one go about smoothing them
out? Superellipsoinds can't do rounded cylinder shapes (or can they?) so
I am kind of stuck

I thought about using CSG of the difference of a square and the side of
a cylinder, and using that and differencing that with another object,
but that would only make a mold for a straight-edge.

Any ideas?

Tim Soderstrom
TigerHawk
Tig### [at] SticNet


Post a reply to this message

From: Ken
Subject: Re: Rounding off edges
Date: 27 Aug 1999 18:37:28
Message: <37C712E0.4EB927F0@pacbell.net>
TigerHawk wrote:
> 
> About a week ago I started creating a toilet model in pov-ray (yes,
> I know it's been done, but I wanted my own toilet :) via a text editor.
> I did not want to use a modeller because I'd be able to move things
> around better (I suppose I could make peices of it in a modeller, but
> the scaling may be off, etc. Besides, I like CSG). The problem I have
> encountered is the smoothing of the edges. Now, I know I can use a
> superellipsoid for the tank and tank lid, but what about the seat and
> the top of the base? Using cylinders and such makes the edges very sharp
> (OUCH!) and I am wondering how might one go about smoothing them
> out? Superellipsoinds can't do rounded cylinder shapes (or can they?) so
> I am kind of stuck
> 
> I thought about using CSG of the difference of a square and the side of
> a cylinder, and using that and differencing that with another object,
> but that would only make a mold for a straight-edge.
> 
> Any ideas?
> 
> Tim Soderstrom
> TigerHawk
> Tig### [at] SticNet

Prisms and lathes are pretty powerfull features. A prism for the tank lid
and a lathe for the seat with an uneven scaling to make it oblong.

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: TigerHawk
Subject: Re: Rounding off edges
Date: 27 Aug 1999 19:14:52
Message: <37C86FB8.2BC2F93E@stic.net>
Ken wrote:

> Prisms and lathes are pretty powerfull features. A prism for the tank lid
> and a lathe for the seat with an uneven scaling to make it oblong.
>
> --
> Ken Tyler

Hey, I didn't think of that! Thanks! Now I'll just have to do some reading up
on lathes and I'm all set (I've been cheating by using sPatch as I do not do
many lathes and they frequently need some modification.

Again, thanks for the help - and happy tracing

Tim Soderstrom
TigerHawk
Tig### [at] SticNet


Post a reply to this message

From: Steve
Subject: Re: Rounding off edges
Date: 29 Aug 1999 04:47:11
Message: <37C73930.C8BB9D34@ndirect.co.uk>
Tim

I think I'd look into intersections, such as 

intersection{
             cylinder{
                      <0,1,0>,
                      <0,-1,0> 0.75
                     }
             sphere{
                    <0,0,0>,1
                    scale <1.25,1.25,1>
                   }
             pigment{
                     gradient y
                     color_map{
                               [0.0 color Orange] 
                               [0.25 color White]
                               [0.5 color Green]
                               [0.75 color White]
                               [1.0 color Orange] 
                              }scale 0.25
                    }  
             rotate z*90       
            }           
    
you can do some really interesting things with intersections, and
don't forget that you can scale an object aswell, as in my
example above, I've intersected a sphere and a cylinder, but
scaled the sphere uneavenly, which gives the finished object this
unusual shape.  I am of the mind that anything can be done with
CSG though a few extra key words to enhance the scaling and
bending of objects would help.    

TigerHawk wrote:
> 
> About a week ago I started creating a toilet model in pov-ray (yes,
> I know it's been done, but I wanted my own toilet :) via a text editor.
> I did not want to use a modeller because I'd be able to move things
> around better (I suppose I could make peices of it in a modeller, but
> the scaling may be off, etc. Besides, I like CSG). The problem I have
> encountered is the smoothing of the edges. Now, I know I can use a
> superellipsoid for the tank and tank lid, but what about the seat and
> the top of the base? Using cylinders and such makes the edges very sharp
> (OUCH!) and I am wondering how might one go about smoothing them
> out? Superellipsoinds can't do rounded cylinder shapes (or can they?) so
> I am kind of stuck
> 
> I thought about using CSG of the difference of a square and the side of
> a cylinder, and using that and differencing that with another object,
> but that would only make a mold for a straight-edge.
> 
> Any ideas?
> 
> Tim Soderstrom
> TigerHawk
> Tig### [at] SticNet

-- 
Cheers       
Steve        email: mailto:sjl### [at] ndirectcouk   

%HAV-A-NICEDAY Error not enough coffee.   0 PPS

web: http://www.ndirect.co.uk/~sjlen/   
 or: http://start.at/zero-pps


Post a reply to this message

From: Chris Huff
Subject: Re: Rounding off edges
Date: 29 Aug 1999 09:27:40
Message: <37C93587.3F5A374F@compuserve.com>
In addition to what the others have said, don't forget the torus shape.
IMO, it is under-used. You can easily make a rounded cylinder which
renders faster than an equivalent superellipsoid.(a macro for this is
included in my macro collection in povray.binaries.utilities, and a
version for cones will probably be in the next version. Ken, would you
post this one for me too? This time I will make both Mac and PC text
versions, for those who don't know how to convert.)


Post a reply to this message

From: Ken
Subject: Re: Rounding off edges
Date: 29 Aug 1999 09:41:13
Message: <37C93843.BDFCF883@pacbell.net>
Chris Huff wrote:
> 
> In addition to what the others have said, don't forget the torus shape.
> IMO, it is under-used. You can easily make a rounded cylinder which
> renders faster than an equivalent superellipsoid.(a macro for this is
> included in my macro collection in povray.binaries.utilities, and a
> version for cones will probably be in the next version. Ken, would you
> post this one for me too? This time I will make both Mac and PC text
> versions, for those who don't know how to convert.)

Sure. Send it over and it will be posted like before.

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Ken
Subject: Re: Rounding off edges
Date: 29 Aug 1999 09:51:27
Message: <37C93AA8.7AD3FA87@pacbell.net>
Ken wrote:
> 
> Chris Huff wrote:
> >
> > In addition to what the others have said, don't forget the torus shape.
> > IMO, it is under-used. You can easily make a rounded cylinder which
> > renders faster than an equivalent superellipsoid.(a macro for this is
> > included in my macro collection in povray.binaries.utilities, and a
> > version for cones will probably be in the next version. Ken, would you
> > post this one for me too? This time I will make both Mac and PC text
> > versions, for those who don't know how to convert.)
> 
> Sure. Send it over and it will be posted like before.

Have you also added those to Twysts macro collection ? It is becoing
formidable and you additions would be welcome.

http://macroscope.twysted.net/

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Chris Huff
Subject: Re: Rounding off edges
Date: 29 Aug 1999 10:00:50
Message: <37C93D4B.2DBA960B@compuserve.com>
Well, since some of the macros are designed to work together in the
collection and rely on each other, the collection will probably go in
the includes section instead. I may separate a few and put them in the
macros section, although a lot of the macros would just be duplicating
existing stuff.
I will get back to work on the macro collection, although it may be a
little while before it is ready, as I am working on learning Java and
making another particle simulator(written in Java).


Post a reply to this message

From: Remco de Korte
Subject: Re: Rounding off edges
Date: 29 Aug 1999 11:23:30
Message: <37C951A4.F8CCC23B@xs4all.nl>
Chris Huff wrote:
> 
> In addition to what the others have said, don't forget the torus shape.

Or how about blobs?
Too bad you can't use toruses as blob-elements.

Remco


Post a reply to this message

From: Ken
Subject: Re: Rounding off edges
Date: 29 Aug 1999 11:43:02
Message: <37C954D0.9C2CCDE6@pacbell.net>
Remco de Korte wrote:
> 
> Chris Huff wrote:
> >
> > In addition to what the others have said, don't forget the torus shape.
> 
> Or how about blobs?
> Too bad you can't use toruses as blob-elements.
> 
> Remco

... but you can make a torus from blobs so would there be much difference ?

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

Goto Latest 10 Messages Next 9 Messages >>>

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