POV-Ray : Newsgroups : povray.binaries.scene-files : Geodesic.inc Server Time
25 Apr 2024 10:12:53 EDT (-0400)
  Geodesic.inc (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: And
Subject: Re: Geodesic.inc
Date: 30 Oct 2013 20:30:01
Message: <web.5271a3e7c0b30abfd7d2abf60@news.povray.org>
"Samuel Benge" <stb### [at] hotmailcom> wrote:
> Hi,
>
> This is a utility for creating geodesic spheres and domes. It aims to be both
> easy to use, and extensible: the end-user designs their own triangle object.
>
> It also includes a special gradient function that makes certain operations
> easier.
>
> Happy Raytracing!
>
> Sam


Could I ask for a macro that creats position points on sphere in an array? Or it
has existed?
I would like to make a light dome and light bulbs which have raytrace picture
elegant like some other people do in this newsgroup.

thanks.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Geodesic.inc
Date: 31 Oct 2013 03:53:55
Message: <52720c93$1@news.povray.org>
Excellent, Sam! Thank you indeed.

Thomas


Post a reply to this message

From: Samuel Benge
Subject: Re: Geodesic.inc
Date: 31 Oct 2013 15:45:01
Message: <web.5272b213c0b30abf1353ccf10@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:
> Could I ask for a macro that creats position points on sphere in an array? Or it
> has existed?
> I would like to make a light dome and light bulbs which have raytrace picture
> elegant like some other people do in this newsgroup.
>
> thanks.

Somebody might have already posted some code for that. If not, ask your question
in the general section :)


Post a reply to this message

From: Samuel Benge
Subject: Re: Geodesic.inc
Date: 31 Oct 2013 15:45:01
Message: <web.5272b25cc0b30abf1353ccf10@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> Excellent, Sam! Thank you indeed.

No Problem, Thomas. It was on my to-do list anyway; I just finally got around to
doing it :)


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Geodesic.inc
Date: 1 Nov 2013 13:47:12
Message: <5273e920@news.povray.org>
And wrote:

> Could I ask for a macro that creats position points on sphere in an array? Or it
> has existed?

Try

http://news.povray.org/povray.binaries.images/thread/%3C461ba1e1%40news.povray.org%3E/?mtop=241021

and

http://news.povray.org/povray.binaries.scene-files/thread/%3C461efe8a%241%40news.povray.org%3E/

These are from 2007 so the code probably needs to be adapted for 3.7.


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Geodesic.inc
Date: 1 Nov 2013 13:49:06
Message: <5273e992@news.povray.org>
To clarify, the links are not about evenly spaced points
on a sphere, but about creating points for a light dome.


Post a reply to this message

From: And
Subject: Re: Geodesic.inc
Date: 2 Nov 2013 10:20:00
Message: <web.527509b2c0b30abfdccc31210@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> And wrote:
>
> > Could I ask for a macro that creats position points on sphere in an array? Or it
> > has existed?
>
> Try
>
>
http://news.povray.org/povray.binaries.images/thread/%3C461ba1e1%40news.povray.org%3E/?mtop=241021
>
> and
>
>
http://news.povray.org/povray.binaries.scene-files/thread/%3C461efe8a%241%40news.povray.org%3E/
>
> These are from 2007 so the code probably needs to be adapted for 3.7.


It seems useful and have many information.
Previously, I found that Samuel Benge's macro seems easy to use, so I asked for
this directly.
Thank you.


Post a reply to this message

From: Samuel Benge
Subject: Re: Geodesic.inc
Date: 2 Nov 2013 14:00:01
Message: <web.52753d54c0b30abf6949fcad0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> To clarify, the links are not about evenly spaced points
> on a sphere, but about creating points for a light dome.

I haven't checked out those links, but I've got a good way to produce an
arbitrary number of evenly-spaced points on a sphere. It's based on the Fermat
Spiral, but adapted to work on a sphere (can't remember where I found it):

union{
 #local NPoints = 256;
 #local Radius  = 1;

 #local Inc = pi * (3 - sqrt(5));
 #local Off = 2 / NPoints;
 #for(K, 0, NPoints-1)
  #local Y = K * Off - 1 + (Off / 2);
  #local R = sqrt(1 - Y*Y);
  #local Phi = K * Inc;

  #local ThisPoint = <cos(Phi)*R, Y, sin(Phi)*R>*Radius;
  sphere{ThisPoint, .1}
 #end

 pigment{rgb 1}
}

"And" <49341109@ntnu.edu.tw> wrote:
> It seems useful and have many information.
> Previously, I found that Samuel Benge's macro seems easy to use, so I asked for
> this directly.
> Thank you.

My geodesic sphere code is not the best choice, as it produces duplicate points,
and you can't just /choose/ any number of points you want (when dealing with a
light dome made up of numerous light_sources, you would probably want an easy
way to fine-tune quality over speed). The above code should work fairly well for
producing an array of lights for a light dome.

Maybe somebody who has experience working with light domes can put it to use.

Sam


Post a reply to this message

From: Alain
Subject: Re: Geodesic.inc
Date: 2 Nov 2013 23:27:48
Message: <5275c2b4$1@news.povray.org>

> Christian Froeschlin <chr### [at] chrfrde> wrote:
>> And wrote:
>>
>>> Could I ask for a macro that creats position points on sphere in an array? Or it
>>> has existed?
>>
>> Try
>>
>>
http://news.povray.org/povray.binaries.images/thread/%3C461ba1e1%40news.povray.org%3E/?mtop=241021
>>
>> and
>>
>>
http://news.povray.org/povray.binaries.scene-files/thread/%3C461efe8a%241%40news.povray.org%3E/
>>
>> These are from 2007 so the code probably needs to be adapted for 3.7.
>
>
> It seems useful and have many information.
> Previously, I found that Samuel Benge's macro seems easy to use, so I asked for
> this directly.
> Thank you.
>

Both of those used an now obsolete version of megapov. Megapov is a test 
bed branch of POV-Ray.

You can now use high dynamic range images directly when using the 
version 3.7. It also provide illumination when combined with radiosity.

You can also do a search for "light dome". It's a way to generate lights 
according to a high dynamic range image. The lights placement and 
density generated is not uniform as it depends on the bright parts of 
the source image.



Alain


Post a reply to this message

From: And
Subject: Re: Geodesic.inc
Date: 4 Nov 2013 03:45:00
Message: <web.52775dd5c0b30abfdccc31210@news.povray.org>
"Samuel Benge" <stb### [at] hotmailcom> wrote:
> I haven't checked out those links, but I've got a good way to produce an
> arbitrary number of evenly-spaced points on a sphere. It's based on the Fermat
> Spiral, but adapted to work on a sphere (can't remember where I found it):
>
> union{
>  #local NPoints = 256;
>  #local Radius  = 1;
>
>  #local Inc = pi * (3 - sqrt(5));
>  #local Off = 2 / NPoints;
>  #for(K, 0, NPoints-1)
>   #local Y = K * Off - 1 + (Off / 2);
>   #local R = sqrt(1 - Y*Y);
>   #local Phi = K * Inc;
>
>   #local ThisPoint = <cos(Phi)*R, Y, sin(Phi)*R>*Radius;
>   sphere{ThisPoint, .1}
>  #end
>
>  pigment{rgb 1}
> }
>
> My geodesic sphere code is not the best choice, as it produces duplicate points,
> and you can't just /choose/ any number of points you want (when dealing with a
> light dome made up of numerous light_sources, you would probably want an easy
> way to fine-tune quality over speed). The above code should work fairly well for
> producing an array of lights for a light dome.
>
> Maybe somebody who has experience working with light domes can put it to use.
>
> Sam

Oh, you are kind. Thanks.
Although I have no experience with light dome, I intend to make one.
I will try it.


Alain <kua### [at] videotronca> wrote:
>
> Both of those used an now obsolete version of megapov. Megapov is a test
> bed branch of POV-Ray.
>
> You can now use high dynamic range images directly when using the
> version 3.7. It also provide illumination when combined with radiosity.
>
> You can also do a search for "light dome". It's a way to generate lights
> according to a high dynamic range image.
>


I'm unfamiliar with megapov except for viewing its mechanical simulation several
years ago, I know that pov-ray 3.7 can use hdr image directly. However those
links contain the theme you just mentioned such as lights placement depends on
the brightness of the point.
It is a bit hard to me, and with my poor english it is harder when I read them.


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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