 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Hi all,
I just finished writing a macro to tile boxes on a sphere and here is
one image that came out of it (it's pretty unifinished though).
Makes me think of a small planet with far too many buildings.
The second image is to show what the macro can really do if anyone
interested.
Nicolas
Post a reply to this message
Attachments:
Download 'planet.jpg' (96 KB)
Download 'planet-2.jpg' (28 KB)
Preview of image 'planet.jpg'

Preview of image 'planet-2.jpg'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Program ended abnormally on 2003-08-08 17:38, Due to a catastrophic Nico
error:
>
> Hi all,
>
> I just finished writing a macro to tile boxes on a sphere and here is
> one image that came out of it (it's pretty unifinished though).
> Makes me think of a small planet with far too many buildings.
Humm... Travelling North-south would aslo be a pain in the back as you'd
constantly have to turn on East-West streets.
>
> The second image is to show what the macro can really do if anyone
> interested.
>
Cool. Post it to P.B.T-F. I'm sure someone will find it useful.
I was actually thinking of doing a macro like that the other day, but laziness
and other things got in the way.
--
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/* flabreque */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/* @ */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/* videotron.ca */}camera{orthographic location<6,1.25,-6>look_at a }
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Program ended abnormally on 2003-08-08 18:16, Due to a catastrophic
Francois Labreque error:
>
>
> Program ended abnormally on 2003-08-08 17:38, Due to a catastrophic Nico
> error:
>
>>
>> Hi all,
>>
>> I just finished writing a macro to tile boxes on a sphere and here is
>> one image that came out of it (it's pretty unifinished though).
>> Makes me think of a small planet with far too many buildings.
>
>
> Humm... Travelling North-south would aslo be a pain in the back as
> you'd constantly have to turn on East-West streets.
>
>>
>> The second image is to show what the macro can really do if anyone
>> interested.
>>
>
> Cool. Post it to P.B.T-F. I'm sure someone will find it useful.
I meant P.B.S-F. Sorry.
>
> I was actually thinking of doing a macro like that the other day, but
> laziness and other things got in the way.
>
--
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/* flabreque */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/* @ */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/* videotron.ca */}camera{orthographic location<6,1.25,-6>look_at a }
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
How did you do that?? Wow!
Please post code.
Regards,
Hugo
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nico <rou### [at] loria fr> wrote in news:3F3### [at] loria fr:
>
>
> Zero-Knowledge MIME Encapsulated Message
>
> --------------090606090701000801010604
> Content-Type: text/plain;
> format = "flowed" ;
> charset = "us-ascii"
> Content-Transfer-Encoding: 7bit
>
>
> Hi all,
>
> I just finished writing a macro to tile boxes on a sphere and here is
> one image that came out of it (it's pretty unifinished though).
> Makes me think of a small planet with far too many buildings.
>
> The second image is to show what the macro can really do if anyone
> interested.
>
>
> Nicolas
>
> --------------090606090701000801010604
> Content-Type: image/jpeg;
> name = "planet.jpg"
> Content-Transfer-Encoding: base64
> Content-Disposition: inline;
> filename = "planet.jpg"
>
> /9j/4AAQSkZJRgABAQEABwAHAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwAGBAUG
> BQQGBgUGBwcGCAoQCgoJCQoUDg8MEBcUGBgXFBYWGh0lHxobIxwWFiAsICMmJykqKRkfLTAt
> KDAlKCko/9sAQwEHBwcKCAoTCgoTKBoWGigoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgo
> KCgoKCgoKCgoKCgoKCgoKCgoKCgo/8AAEQgCWAMgAwEiAAIRAQMRAf/EABwAAQACAwEBAQAA
snip snip
Unfortunetly your post shows up like this and am not able to decode it
--
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Marc Champagne <nos### [at] please com> wrote in news:Xns93D1BF9EE4E2CPOVMIKA@
204.213.191.226:
> Unfortunetly your post shows up like this and am not able to decode it
Well, same here. But I was able to decode them the hard way. Here they are,
the yEnc way to save space....
Ciao!
--
-+======================+-
Martin Bélair [MAB]
Montréal, Québec, Canada
bad### [at] hotmail DOT com
-+======================+-
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Post a reply to this message
Attachments:
Download '=ybegin line=128 size=28024 name=planet-2.jpg.dat' (29 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Post a reply to this message
Attachments:
Download '=ybegin line=128 size=97775 name=planet-1.jpg.dat' (99 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
This has been a test of the emergency broadcasting system...
--
Douglas C. Eichenberg
dou### [at] nls net
http://www.getinfo.net/douge
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I posted the source code to P.T.S.F. (file is not so long) with several
examples included tha use brick but it is theoritically possible to tile
any object on a sphere (dimensions are taken from object bounding box).
Nicolas
Francois Labreque wrote:
>> Cool. Post it to P.B.T-F. I'm sure someone will find it useful.
>
>
> I meant P.B.S-F. Sorry.
>
>>
>> I was actually thinking of doing a macro like that the other day, but
>> laziness and other things got in the way.
>>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I posted the images with netscape newsreader so I guess I will have to
check my options are ok. Sorry you can't see them.
The good news is that source code is in P.T.S.F. so you can render them...
Nicolas
Marc Champagne wrote:
>
> snip snip
>
>
> Unfortunetly your post shows up like this and am not able to decode it
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Martin Belair <bad### [at] hotmail DOT com> wrote in
news:Xns### [at] 204 213 191 226:
> [...]
> Well, same here. But I was able to decode them the hard way. Here they
> are, the yEnc way to save space....
> [...]
Yup, same problem for me with the original post.
Your yEnc versions worked well, thanks!
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nico <rou### [at] loria fr> wrote in news:3F3### [at] loria fr:
> Hi all,
>
> I just finished writing a macro to tile boxes on a sphere and here is
> one image that came out of it (it's pretty unifinished though).
> Makes me think of a small planet with far too many buildings.
Folks, Heres my "fiddle with his macro" results using text instead of
boxes.
One of my problems with Pov is my lack of remembrance with geometry math,
high-school was only 20 years ago for me...
I couldn't come up with such macros if you paid me, well then again there
the big library called internet to help...
Thanks for sharing Nico.
--
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
Attachments:
Download 'tiled.sphere.jpg' (94 KB)
Preview of image 'tiled.sphere.jpg'

|
 |
|  |
|  |
|
 |
From: Nicolas Rougier
Subject: Re: Tiled sphere (96k + 28k) - 1 attachment
Date: 11 Aug 2003 03:39:13
Message: <3F374820.9090503@loria.fr>
|
|
 |
|  |
|  |
|
 |
You're welcome. I learned so much from these newsgroups that it's quite
natural to share anything that might be useful...
Nice image by the way.
I'm still struggling with my boxes to make it looks like a big city. I
think I have to add some clouds but I do not know what method could suit
my needs since I think I need some "volumetric" clouds. Any idea ?
Nicolas
Marc Champagne wrote:
>
> Folks, Heres my "fiddle with his macro" results using text instead of
> boxes.
>
> One of my problems with Pov is my lack of remembrance with geometry math,
> high-school was only 20 years ago for me...
>
> I couldn't come up with such macros if you paid me, well then again there
> the big library called internet to help...
>
> Thanks for sharing Nico.
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Florian Brucker
Subject: Re: Tiled sphere (96k + 28k) - 1 attachment
Date: 11 Aug 2003 09:51:25
Message: <3f379f5d@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Hi Nico!
> "volumetric" clouds. Any idea ?
Scattering media could be a way to achieve nice realistic looking
clouds. Perhaps you could have a look at Gille's MakeCloud macro which
you can find at http://www.oyonale.com/ressources/english/sources13.htm
Another nice example is Tim Nikias' "Worldbowl":
http://news.povray.org/povray.binaries.images/30620/
HTH,
Florian
--
//=================[web: http://www.torfbold.com]==================\\
#local a=-5;#while(a<5)sphere{<sin(a*pi)*5a*10pow(a,5)*.01>sin(a*a*a*
.1)+1pigment{rgb 9*z}}#local a=a+.01;#end camera{look_at-y*10location
<8,-3,-8>*10}// [www.povray.org] [www.imp.org] [www.irtc.org]
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Rougier <rou### [at] loria fr> wrote in news:3F3### [at] loria fr:
>
>
> You're welcome. I learned so much from these newsgroups that it's quite
> natural to share anything that might be useful...
> Nice image by the way.
Thanks
> I'm still struggling with my boxes to make it looks like a big city. I
> think I have to add some clouds but I do not know what method could suit
> my needs since I think I need some "volumetric" clouds. Any idea ?
My clouds are boring and flat, volumetric I have yet to tackle..
--
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
It did notice...
If you were trying to center (to the origin) the passed object
to your tiled_sphere macro, I believe this should of been the
formula: -Min-((Max-Min)/2)
Just -(Max-Min)/2 was only moving it closer to the origin by
half the objects size.
--
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Nicolas Rougier
Subject: Re: Tiled sphere (96k + 28k) - 1 attachment
Date: 12 Aug 2003 03:36:56
Message: <3F389918.1060004@loria.fr>
|
|
 |
|  |
|  |
|
 |
Yes, yes, you're right. I realized that a few minuter after having
posted the code. I have to correct it in p.t.s.f.
In fact, I'm using - Min - <(Max.x-Min.x), 0, (Max.z-Min.z)>/2 to have
the bottom of the object lying on the ground in order to avoid some
collisions.
Nicolas
Marc Champagne wrote:
>
> It did notice...
>
> If you were trying to center (to the origin) the passed object
> to your tiled_sphere macro, I believe this should of been the
> formula: -Min-((Max-Min)/2)
>
> Just -(Max-Min)/2 was only moving it closer to the origin by
> half the objects size.
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Rougier <rou### [at] loria fr> wrote in news:3F3### [at] loria fr:
>
> Yes, yes, you're right. I realized that a few minuter after having
> posted the code. I have to correct it in p.t.s.f.
>
> In fact, I'm using - Min - <(Max.x-Min.x), 0, (Max.z-Min.z)>/2 to have
> the bottom of the object lying on the ground in order to avoid some
> collisions.
Makes sense...
--
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Rougier <rou### [at] loria fr> wrote in news:3F3### [at] loria fr:
>
> Yes, yes, you're right. I realized that a few minuter after having
> posted the code. I have to correct it in p.t.s.f.
>
> In fact, I'm using - Min - <(Max.x-Min.x), 0, (Max.z-Min.z)>/2 to have
> the bottom of the object lying on the ground in order to avoid some
> collisions.
I think this may be less confusing though (results are the same)
- Min - < (Max.x-Min.x)/2, 0, (Max.z-Min.z)/2 >
--
(MIKA) Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Program ended abnormally on 2003-08-08 18:16, Due to a catastrophic
Francois Labreque error:
>
>
> Program ended abnormally on 2003-08-08 17:38, Due to a catastrophic Nico
> error:
>
>> The second image is to show what the macro can really do if anyone
>> interested.
>
> Cool. Post it to P.B.T-F. I'm sure someone will find it useful.
>
> I was actually thinking of doing a macro like that the other day, but
> laziness and other things got in the way.
>
Thanks to your macro, I was able to complete an image I've been wanting to do
for years...
Behold the reflective sphere over a checkered plane!!!!
--
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/* flabreque */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/* @ */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/* videotron.ca */}camera{orthographic location<6,1.25,-6>look_at a }
Post a reply to this message
Attachments:
Download 'discoball.jpg' (70 KB)
Preview of image 'discoball.jpg'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Hi!
Francois Labreque <fla### [at] videotron ca> wrote in
news:3f3972f8@news.povray.org:
>
> Thanks to your macro, I was able to complete an image I've been wanting
> to do for years...
>
> Behold the reflective sphere over a checkered plane!!!!
Hehe! Well done. Now, you can pass @ phase 2: Animation time.
Have fun!
Ciao!
Mart
--
-+======================+-
Martin Bélair [MAB]
Montréal, Québec, Canada
bad### [at] hotmail DOT com
-+======================+-
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |