POV-Ray : Newsgroups : povray.binaries.images : YingYang (22kb) : Re: YingYang (22kb) Server Time
15 Aug 2024 06:12:15 EDT (-0400)
  Re: YingYang (22kb)  
From: Bruce Duncan
Date: 22 Jul 2002 13:44:49
Message: <n7gojucokka9936e1uu5b6qa20hfcm6vfj@4ax.com>
I used a sphere_sweep, getting the sphere placing took a bit of math,
and some trial and error.

This is probably the bit that you're after

// yy_n is the number (visible) sweep components
// (higher = better definition,  but slower)

#declare yy_n = 15; 
#declare yy_i = -1;

sphere_sweep {
    b_spline
    yy_n + 3,

    #while( yy_i <= yy_n + 1 )
    
        #declare yy_a = radians( (yy_i / yy_n) * 180 );
        #declare yy_x = cos( yy_a ) / ( cos( yy_a ) - 3 ) * 2;
        #declare yy_z = sin( yy_a ) / ( cos( yy_a ) - 3 ) * 2;
        #declare yy_r = ( cos( yy_a ) - 1 ) / ( cos( yy_a ) - 3 );
        
        <yy_x, 0, yy_z>, yy_r           // place node
    
        #declare yy_i = yy_i + 1;
    #end
    
    tolerance 0.1
    scale <1, 0.5, 1>
}


I've also attached a couple of images with transparency and photons.
I could have picked better colors, but I like the light patterns cast
by the photons.




On Sun, 21 Jul 2002 22:33:42 +0100, "Steve Tremayne"
<I_G### [at] Using_My_Email_AddressCom> wrote:

>Only one: how did you do that?! I've *just* started trying to do exactly the
>same symbol and I've got no idea where to start! Blobs? Sweeps? Heightfields?
>
>Give me a clue?!
>
>Cheers,
>
>Steve
>
>
>"Bruce Duncan" <ayt### [at] hotmailcom> wrote in message
>news:78nlju0ag295o0hkfac2g8eumpu48h2p46@4ax.com...
>(I think I goofed, so this is a repost)
>
>Just picked pov up again after about 2 years of not using it at all
>Started rehashing old stuff that I did.
>
>Any comments or suggestions?
>
>
>


Post a reply to this message


Attachments:
Download 'yingyang2_1.jpg' (24 KB) Download 'yingyang2_2.jpg' (30 KB)

Preview of image 'yingyang2_1.jpg'
yingyang2_1.jpg

Preview of image 'yingyang2_2.jpg'
yingyang2_2.jpg


 

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