POV-Ray : Newsgroups : povray.general : Making shell Server Time
16 Nov 2024 07:13:38 EST (-0500)
  Making shell (Message 1 to 6 of 6)  
From: bobby
Subject: Making shell
Date: 23 Feb 2004 16:31:43
Message: <403a713f@news.povray.org>
I wish informations to build some shells with povray 3.5 .
Have you some exemples ? Some equations ?

Thanks for your help.


Post a reply to this message

From: Hughes, B 
Subject: Re: Making shell
Date: 23 Feb 2004 21:37:23
Message: <403ab8e3$1@news.povray.org>
"bobby" <bob### [at] club-internetfr> wrote in message
news:403a713f@news.povray.org...
>
> I wish informations to build some shells with povray 3.5 .
> Have you some examples ? Some equations ?


I know there have been some made, just not sure where to find them without a
search.

Perhaps one thing that might be useful for creating shells is at Mike
William's Isosurface Tutorial, the Realistic Surfaces link. It could be
changed in various ways if you can manage to manipulate it.
http://www.econym.demon.co.uk/isotut/index.htm

Equations are another matter. I adapted the little C program I found at
http://www.notam02.no/~oyvindha/loga.html to plot out points of shells:


/* plot points for a shell */
#macro SeaShell(PC,RA,UF,RV,IT,TS)
// #local PC=1000;
// #local RA=20;
// #local UF=0.09;
// #local RV=0.33;
// #local IT=49; // minor radius plot count
// #local TS=0.2;
union {
#local i=0;
#while (i<PC)
    #local theta=i/RA;         /* Rotation angle */
    #local r=exp(theta*UF);   /* Distance from axis (UF is uncoiling factor)
*/
    #local d=RV*r; /* Radius relative to r (involute/evolute) */
                         /* For ornament, add a periodic function to d */
    #local j=0;
    #while (j<IT+1)
      #local phi=2*pi*j/IT;
      #local X=d*cos(phi)*cos(theta);
      #local Y=d*cos(phi)*sin(theta);
      #local Z=d*sin(phi);
      #local X=X+r*cos(theta);
      #local Y=Y+r*sin(theta);
      #local Z=Z+r*TS;         /* Trochospiral factor */
      sphere {<X,Y,Z>,0.05 pigment {rgb 1}}
#local j=j+1;
#end
#local i=i+1;
#end
scale 0.25
rotate 90*x
translate 3*y
}
#end

SeaShell(500,30,0.08,1.0,25,4.0)

Of the web pages I've seen, they use various equations written differently.
Unfortunately, math isn't a real strong point for me. Also, have a look at
http://www.dynabits.com/sw/free/macros/mathsurf/gallery/seashell.htm .
However, you might not need to go any further than the Isosurface Tutorial
and tweak that example unless you're looking to convert other equations to
POV-Ray.

-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message

From: Mike Williams
Subject: Re: Making shell
Date: 24 Feb 2004 00:14:37
Message: <NgvgnCA4MnOAFw4m@econym.demon.co.uk>
Wasn't it bobby who wrote:
>
>I wish informations to build some shells with povray 3.5 .
>Have you some exemples ? Some equations ?

There's one in my isosurface tutorial
<http://www.econym.demon.co.uk/isotut/real.htm>

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Mike Williams
Subject: Re: Making shell
Date: 24 Feb 2004 01:45:28
Message: <HAJJ8DAeruOAFwKd@econym.demon.co.uk>
Wasn't it bobby who wrote:
>
>I wish informations to build some shells with povray 3.5 .
>Have you some exemples ? Some equations ?

Another source of shells is the winning image from the July-August 1996
Internet Raytracing Competition by Steve Gowers. As a winner, it remains
on the IRTC website, and you can grab the source code from
<http://www.irtc.org/irtc-cd4/stills/1996-08-31/bucket1.zip>

It was written for POV 3.0. To run it under recent versions of POV,
you'll have to insert a few ";"s at the end of "#declares". The
individual shells are in separate include files.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Tom Melly
Subject: Re: Making shell
Date: 24 Feb 2004 04:30:20
Message: <403b19ac@news.povray.org>
"bobby" <bob### [at] club-internetfr> wrote in message
news:403a713f@news.povray.org...
>
> I wish informations to build some shells with povray 3.5 .
> Have you some exemples ? Some equations ?
>
> Thanks for your help.
>

plane{-z,-5
  pigment{
    object{
      text{ttf "COUR.TTF" "C:\\WINDOWS" 1,0 translate z*-.5 scale .25
translate<-3,2,5>}
      rgb 0
      rgb<0,1,0>
    }
  }
  finish{ambient 1}
}


Post a reply to this message

From: Tom Galvin
Subject: Re: Making shell
Date: 26 Feb 2004 18:35:10
Message: <Xns949BBD115916Atomatimporg@203.29.75.35>
"bobby" <bob### [at] club-internetfr> wrote in news:403a713f@news.povray.org:

> 
> I wish informations to build some shells with povray 3.5 .
> Have you some exemples ? Some equations ?
> 
> Thanks for your help.
> 
> 

There is a Moray plugin just for making seashells.

http://news.povray.org/moray.win/thread/%3C3efd78fe%241%40news.povray.org%3E/

-- 
Tom
_________________________________
The Internet Movie Project
http://www.imp.org/


Post a reply to this message

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