POV-Ray : Newsgroups : povray.binaries.images : Some macros I wrote ... Server Time
3 Oct 2024 11:15:02 EDT (-0400)
  Some macros I wrote ... (Message 1 to 9 of 9)  
From: Paul Vanukoff
Subject: Some macros I wrote ...
Date: 29 Jan 2000 11:59:43
Message: <38931c7f@news.povray.org>
Some images created to illustrate these macros. They are available at

  http://www.primenet.com/~vanukoff/3d/povray/

AngOfDist -> returns the angle of a distance on a circumference, specify
radius, and distance, returns the angle. The angle is calculated to evenly
divide into 360, so you can create rings of evenly spaced objects with no
uneven gaps.

RGBfromHue -> returns an RGB vector specifying a color of the hue you have
passed it. Hue is specified from 0 - 1, where 0 is red, 1/6 is yellow, 1/3
is green, 1/2 is cyan, 2/3 is blue, 5/6 is magenta, and 1 is red again. An
invalid hue value will return gray.

Comments welcome.

--
Paul Vanukoff
van### [at] primenetcom


Post a reply to this message


Attachments:
Download 'Sinesque.jpg' (71 KB) Download 'ColoredRings.jpg' (52 KB)

Preview of image 'Sinesque.jpg'
Sinesque.jpg

Preview of image 'ColoredRings.jpg'
ColoredRings.jpg


 

From: Ken
Subject: Re: Some macros I wrote ...
Date: 29 Jan 2000 13:28:29
Message: <38933080.6E7A937F@pacbell.net>
Paul Vanukoff wrote:
> 
> Some images created to illustrate these macros. They are available at
> 
>   http://www.primenet.com/~vanukoff/3d/povray/

The image is pretty impressive. Will you be offering these at this address
for a while so that I can link to them from the POV-Ray links page ?

-- 
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

From: Paul Vanukoff
Subject: Re: Some macros I wrote ...
Date: 29 Jan 2000 15:19:11
Message: <38934b3f@news.povray.org>
Ken wrote:
> The image is pretty impressive. Will you be offering these at this address
> for a while so that I can link to them from the POV-Ray links page ?

Yeah I'll keep 'em there .. If I ever move them, I'll let you know. Thanks!

--
Paul Vanukoff
van### [at] primenetcom


Post a reply to this message

From: David Fontaine
Subject: Re: Some macros I wrote ...
Date: 29 Jan 2000 15:23:55
Message: <38934C33.A6111809@faricy.net>
> AngOfDist -> returns the angle of a distance on a circumference, specify
> radius, and distance, returns the angle. The angle is calculated to evenly
> divide into 360, so you can create rings of evenly spaced objects with no
> uneven gaps.

Not sure what this means... could you post a little graphical example?

> RGBfromHue -> returns an RGB vector specifying a color of the hue you have
> passed it. Hue is specified from 0 - 1, where 0 is red, 1/6 is yellow, 1/3
> is green, 1/2 is cyan, 2/3 is blue, 5/6 is magenta, and 1 is red again. An
> invalid hue value will return gray.

Ooh! Why don't you make a RGB<->CMYK converter? (j/k)

--
Homepage: http://www.faricy.net/~davidf/
___     ______________________________
 | \     |_       <dav### [at] faricynet>
 |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

From: Paul Vanukoff
Subject: Re: Some macros I wrote ...
Date: 29 Jan 2000 17:07:17
Message: <38936495@news.povray.org>
David Fontaine wrote in message <38934C33.A6111809@faricy.net>...
>> AngOfDist -> returns the angle of a distance on a circumference, specify
>> radius, and distance, returns the angle. The angle is calculated to
evenly
>> divide into 360, so you can create rings of evenly spaced objects with no
>> uneven gaps.
>
>Not sure what this means... could you post a little graphical example?


The 2nd image I posted above (ColoredRings) is the example. Each ring is
composed of spheres 0.5 units apart on the circumference. The macro simply
calculates the angle between one sphere and the next for a given ring. The
angle given is rounded to the nearest value that will divide into 360, so
objects can be placed evenly around the circumference, with no uneven gaps.

I don't know how else to explain it, you can look at the source code in the
same www folder the macros are in, if you'd like. :)

--
Paul Vanukoff
van### [at] primenetcom


Post a reply to this message

From: David Fontaine
Subject: Re: Some macros I wrote ...
Date: 29 Jan 2000 23:12:59
Message: <3893BA20.F1094000@faricy.net>
> The 2nd image I posted above (ColoredRings) is the example. Each ring is
> composed of spheres 0.5 units apart on the circumference. The macro simply
> calculates the angle between one sphere and the next for a given ring. The
> angle given is rounded to the nearest value that will divide into 360, so
> objects can be placed evenly around the circumference, with no uneven gaps.

Oh! I get it. I was confised; the second picture shows both macros in use, what
is the point of the first one then?

--
Homepage: http://www.faricy.net/~davidf/
___     ______________________________
 | \     |_       <dav### [at] faricynet>
 |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

From: Peter Warren
Subject: Re: Some macros I wrote ...
Date: 30 Jan 2000 06:57:05
Message: <38942711@news.povray.org>
Paul

This looks really great.  Regretablly I am unable to access
your web site at the present time.

This should not be a problem for me in the future.
Nonetheless I might suggest that you post these
most excellent looking macros to povray.binaries.scene-files.
It couldn't hurt.

I look forward to exploring them.

Peter Warren
war### [at] hotmailcom


Post a reply to this message

From: Paul Vanukoff
Subject: Re: Some macros I wrote ...
Date: 30 Jan 2000 10:42:38
Message: <38945bee@news.povray.org>
David Fontaine wrote in message <3893BA20.F1094000@faricy.net>...

>Oh! I get it. I was confised; the second picture shows both macros in use,
what
>is the point of the first one then?
>


Well, the first one is probably kind of pointless ... it uses the rgb macro
only ... I thought it looked neat though, so I posted it .. probably
slightly confusing ... sorry .. :)

--
Paul Vanukoff
van### [at] primenetcom


Post a reply to this message

From: Paul Vanukoff
Subject: Re: Some macros I wrote ...
Date: 30 Jan 2000 10:43:10
Message: <38945c0e@news.povray.org>
Peter Warren wrote in message <38942711@news.povray.org>...
>Paul
>
>This looks really great.  Regretablly I am unable to access
>your web site at the present time.
>
>This should not be a problem for me in the future.
>Nonetheless I might suggest that you post these
>most excellent looking macros to povray.binaries.scene-files.
>It couldn't hurt.


I can do that ...

--
Paul Vanukoff
van### [at] primenetcom


Post a reply to this message

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