POV-Ray : Newsgroups : povray.text.scene-files : Smooth edges on sphere and cube? Server Time
23 Dec 2024 22:19:34 EST (-0500)
  Smooth edges on sphere and cube? (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Chuck Roberts
Subject: Smooth edges on sphere and cube?
Date: 28 Jul 2000 09:38:30
Message: <39818D7D.17AD6F52@accn.org>
Anyone know how to easily make rounded smooth edges on cubes and
cylinders? 
TIA
Chuck

-- 
See my Free stuff page. It has compares free website provider,
and lists free internet access providers. 
http://www.crosswinds.net/~robertsc/free.htm
Win98 help file loaded with hints and tips, including securing a
Win 95/98 PC in a classroom setting. VB4 help file with lots of
code and hints. 
At http://www.crosswinds.net/~robertsc/


Post a reply to this message

From: Warp
Subject: Re: Smooth edges on sphere and cube?
Date: 28 Jul 2000 09:47:53
Message: <39818f08@news.povray.org>
Chuck Roberts <rob### [at] accnorg> wrote:
: Anyone know how to easily make rounded smooth edges on cubes and
: cylinders? 

  You either use a superellipsoid or then use spheres and cylinders to
smooth the edges (there exists include files for this; someone can give
you an URL).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Christoph Hormann
Subject: Re: Smooth edges on sphere and cube?
Date: 28 Jul 2000 09:53:03
Message: <3981904C.512E5AD6@schunter.etc.tu-bs.de>
Warp wrote:
> 
>   You either use a superellipsoid or then use spheres and cylinders to
> smooth the edges (there exists include files for this; someone can give
> you an URL).
> 

There is also an isosurface function for that (requires megapov of course).

Christoph

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Bob Hughes
Subject: Re: Smooth edges on sphere and cube?
Date: 28 Jul 2000 10:35:35
Message: <39819a37@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:39818f08@news.povray.org...
| Chuck Roberts <rob### [at] accnorg> wrote:
| : Anyone know how to easily make rounded smooth edges on cubes and
| : cylinders?
|
|   You either use a superellipsoid or then use spheres and cylinders to
| smooth the edges (there exists include files for this; someone can give
| you an URL).

The only one I knew of was in the povray links:
http://ftp.tu-clausthal.de/pub/TEXT/EXPERT/mirror/povray/povray/objects
 The Rounded Box Include there and it's showing a Error:File Not Found.

Bob


Post a reply to this message

From: ryan constantine
Subject: Re: Smooth edges on sphere and cube?
Date: 28 Jul 2000 17:24:28
Message: <3981F91E.7F95792A@yahoo.com>
moray has built-in rouded cubes and cylinders.

Chuck Roberts wrote:
> 
> Anyone know how to easily make rounded smooth edges on cubes and
> cylinders?
> TIA
> Chuck
> 
> --
> See my Free stuff page. It has compares free website provider,
> and lists free internet access providers.
> http://www.crosswinds.net/~robertsc/free.htm
> Win98 help file loaded with hints and tips, including securing a
> Win 95/98 PC in a classroom setting. VB4 help file with lots of
> code and hints.
> At http://www.crosswinds.net/~robertsc/


Post a reply to this message

From: Chris Huff
Subject: Re: Smooth edges on sphere and cube?
Date: 28 Jul 2000 18:21:50
Message: <chrishuff-0DD0BB.17223628072000@news.povray.org>
In article <3981904C.512E5AD6@schunter.etc.tu-bs.de>, 
chr### [at] gmxde wrote:

> There is also an isosurface function for that (requires megapov of 
> course).

You are probably just talking about an isosurface superellipsoid, which 
can render faster than the superellipsoid primitive but otherwise has 
the same problems.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Chris Huff
Subject: Re: Smooth edges on sphere and cube?
Date: 28 Jul 2000 18:32:42
Message: <chrishuff-0DF8FA.17332828072000@news.povray.org>
In article <39818D7D.17AD6F52@accn.org>, rob### [at] accnorg wrote:

> Anyone know how to easily make rounded smooth edges on cubes and
> cylinders? 

One way to do this is with the superellipsoid object, as has been 
mentioned. However, this method doesn't give you as good control over 
the radius of the curve, and all the faces will be slightly curved and 
not perfectly flat.

The usual method to get a true rounded box or cylinder is to use a CSG 
union or merge or to use a macro which produces such a CSG. A rounded 
box consists of 8 spheres, 12 cylinders, and 3 boxes. A rounded cylinder 
consists of 2 cylinders and 2 torii, or you can just cap the ends of a 
single cylinder with spheres. The locations for these are easy to figure 
out for boxes and cylinders. The math for rounded cones is a bit more 
complex, but still fairly simple if you know a little trigonometry.
If you use a union, and your objects are not transparent, it is slightly 
faster...if you want to use transparent objects, you should usually use 
merge to remove the internal surfaces.

There should be macros to do what you want here:
http://www.erols.com/vansickl/macs.htm

PS: I don't think you can get smooth edges on a sphere... :-)

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Christoph Hormann
Subject: Re: Smooth edges on sphere and cube?
Date: 28 Jul 2000 18:40:45
Message: <39820BFB.24A8A870@schunter.etc.tu-bs.de>
Chris Huff wrote:
> 
> 
> You are probably just talking about an isosurface superellipsoid, which
> can render faster than the superellipsoid primitive but otherwise has
> the same problems.
> 

from the rbox.pov sample scene:

isosurface{
        function {"rounded_box",<0.1>}
        contained_by{box{<-0.4,0.6,-1>,<0.4,1.6,1>}}
        pigment {rgb 1}
}

There is nothing about it in the Docu, but i think, i already used it sometime.  

Christoph

--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Chris Huff
Subject: Re: Smooth edges on sphere and cube?
Date: 29 Jul 2000 13:53:38
Message: <chrishuff-B523E7.12542629072000@news.povray.org>
In article <39820BFB.24A8A870@schunter.etc.tu-bs.de>, 
chr### [at] gmxde wrote:

> There is nothing about it in the Docu, but i think, i already used it 
> sometime.  

I had forgotten about this one...I never use the built-in functions.
I don't really understand the source code for it, but it looks like it 
might render a real rounded box, not just a superellipsoid.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Ron Parker
Subject: Re: Smooth edges on sphere and cube?
Date: 31 Jul 2000 09:34:21
Message: <slrn8ob0sp.1kl.ron.parker@fwi.com>
On Sat, 29 Jul 2000 12:54:26 -0500, Chris Huff wrote:
>In article <39820BFB.24A8A870@schunter.etc.tu-bs.de>, 
>chr### [at] gmxde wrote:
>
>> There is nothing about it in the Docu, but i think, i already used it 
>> sometime.  
>
>I had forgotten about this one...I never use the built-in functions.
>I don't really understand the source code for it, but it looks like it 
>might render a real rounded box, not just a superellipsoid.

It does.  It gets the dimensions of the box from the contained_by, so it's
somewhat strange.  I'm guessing it gives poor results for nonzero thresholds.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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