POV-Ray : Newsgroups : povray.text.scene-files : Golf Ball Help Server Time
22 Dec 2024 04:26:48 EST (-0500)
  Golf Ball Help (Message 1 to 9 of 9)  
From: Allen
Subject: Golf Ball Help
Date: 18 Jun 2007 18:05:02
Message: <web.467700fa911d3421793de9de0@news.povray.org>
Hey World,

Well, you have gotten me started on CGSphere stuff.  I'm trying to model a
small scene, but I have gotten stuck early on.  I am attempting to model a
golfball, but I can't find any resources on one.  I just can't seem to
figure out how to get the dimples on the ball.  I can get one row, but then
I still have tons others to hand place.

Can anyone help me develop a macro for this?  I can't figure out the formula
that would allow this to be simplified.  I'll post anything I do figure
out... this isn't something that is easy to find information on.

Thanks in advance,
Allen

----
View My Portfolio At
http://allen.emailnuts.com/


Post a reply to this message

From: Allen
Subject: Re: Golf Ball Help
Date: 18 Jun 2007 19:05:01
Message: <web.46770edfbc62bf83793de9de0@news.povray.org>
I did a bit more work trying to figure this problem out, and I came up with
the following code.  My only concern is that some of the dimples don't line
up right, and the spacing isn't correct all around, except for the equator
ring.  It is also a big resource hog.



#declare DimplesPattern =
union {
  sphere {
    0,
    3
    translate <0,0,-32.35>
    rotate <0,8,0>
  }
  /*
  sphere {
    0,
    3
    translate <0,0,-32.35>
    rotate <7,4,0>
  }
  sphere {
    0,
    3
    translate <0,0,-32.35>
    rotate <-7,4,0>
  }
  */
}




#declare Dimples_Equator =
union {
  #declare Count=0;
  #declare CountMax=45;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,Count*8,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_1up =
union {
  #declare Count=0;
  #declare CountMax=44;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,-4,0>
    rotate <8,Count*8.2,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_2up =
union {
  #declare Count=0;
  #declare CountMax=43;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,0,0>
    rotate <16,Count*8.4,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_3up =
union {
  #declare Count=0;
  #declare CountMax=42;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,-4,0>
    rotate <24,Count*8.6,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_4up =
union {
  #declare Count=0;
  #declare CountMax=40;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,0,0>
    rotate <32,Count*9,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_5up =
union {
  #declare Count=0;
  #declare CountMax=39;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,-4,0>
    rotate <40,Count*9.5,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_6up =
union {
  #declare Count=0;
  #declare CountMax=37;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,0,0>
    rotate <48,Count*10.3,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_7up =
union {
  #declare Count=0;
  #declare CountMax=36;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,-4,0>
    rotate <56,Count*10.9,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_8up =
union {
  #declare Count=0;
  #declare CountMax=34;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,0,0>
    rotate <64,Count*11.4,0>
  }

  #declare Count=Count+1;
  #end
}

#declare Dimples_9up =
union {
  #declare Count=0;
  #declare CountMax=20;
  #while (Count < CountMax)

  object {
    DimplesPattern
    translate <0,0,0>
    rotate <0,-4,0>
    rotate <64,Count*14,0>
  }

  #declare Count=Count+1;
  #end
}



// Golf Ball

difference {
  sphere {
    0,
    30
    rotate <0,0,0>
    translate <0,0,0>
  }

  object { Dimples_Equator }
  union {
  object { Dimples_1up }
  object { Dimples_2up }
  object { Dimples_3up }
  object { Dimples_4up }
  object { Dimples_5up }
  object { Dimples_6up }
  object { Dimples_7up }
  object { Dimples_8up }
  object { Dimples_9up }
  rotate <0,180,0>
  translate <0,0,0>
  }
  union {
  object { Dimples_1up }
  object { Dimples_2up }
  object { Dimples_3up }
  object { Dimples_4up }
  object { Dimples_5up }
  object { Dimples_6up }
  object { Dimples_7up }
  object { Dimples_8up }
  object { Dimples_9up }
  rotate <0,180,-180>
  translate <0,0,0>
  }


  texture {
    pigment {
      color rgb <1,1,1>
    }
  }
  translate <0,-10,0>
}

----
View My Portfolio At
http://allen.emailnuts.com/


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Golf Ball Help
Date: 18 Jun 2007 19:35:01
Message: <web.4677167dbc62bf835e73ab330@news.povray.org>
"Allen" <nomail@nomail> wrote:
> Hey World,
>
> Well, you have gotten me started on CGSphere stuff.  I'm trying to model a
> small scene, but I have gotten stuck early on.  I am attempting to model a
> golfball, but I can't find any resources on one.  I just can't seem to
> figure out how to get the dimples on the ball.  I can get one row, but then
> I still have tons others to hand place.
>
> Can anyone help me develop a macro for this?  I can't figure out the formula
> that would allow this to be simplified.  I'll post anything I do figure
> out... this isn't something that is easy to find information on.
>
> Thanks in advance,
> Allen

Have a look at the geodesic dome macro I posted a while ago here:
http://news.povray.org/povray.newusers/message/%3Cweb.45ba5cd1a6cc4078c150d4c10%40news.povray.org%3E/#%3Cweb.45ba5cd1a6
cc4078c150d4c10%40news.povray.org%3E

Not necessarily the best layout for real golf balls, but will give you a
fairly homogenous looking layout.  There are other packings that can be
developed too, then it's just a matter of mapping them to a sphere.

You may want to do a little bit of trig and CSG if you can to add to this so
you get rounded dimples rather than sharp edged ones.  Right now I don't
have time to help you lay this out, maybe later or perhaps someone else can
point you in the right direction.

-tgq


Post a reply to this message

From: Simon
Subject: Re: Golf Ball Help
Date: 19 Jun 2007 09:49:19
Message: <4677dedf@news.povray.org>
I tried to do a mace with evenly spaced spikes. I found I could either do a 
geodesic dome as mentioned above OR itterate repeatedly simulating the 
"dimples" as electrons stuck to the surface of a sphere repulsing each 
other - after a couple of hundred itterations, the opints are pretty evenly 
spaced.

For the record, I cheated - I found a list of polar co-ordinates on the net 
and just dumped them into an array - lots of dimples, yet (relatively) low 
parse time.

Hope this helped

~Simon


"Allen" <nomail@nomail> wrote in message 
news:web.467700fa911d3421793de9de0@news.povray.org...
> Hey World,
>
> Well, you have gotten me started on CGSphere stuff.  I'm trying to model a
> small scene, but I have gotten stuck early on.  I am attempting to model a
> golfball, but I can't find any resources on one.  I just can't seem to
> figure out how to get the dimples on the ball.  I can get one row, but 
> then
> I still have tons others to hand place.
>
> Can anyone help me develop a macro for this?  I can't figure out the 
> formula
> that would allow this to be simplified.  I'll post anything I do figure
> out... this isn't something that is easy to find information on.
>
> Thanks in advance,
> Allen
>
> ----
> View My Portfolio At
> http://allen.emailnuts.com/
>
>


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Golf Ball Help
Date: 19 Jun 2007 10:16:58
Message: <4677e55a$1@news.povray.org>
Simon wrote:

> I tried to do a mace with evenly spaced spikes. I found I could either do a 
> geodesic dome as mentioned above OR itterate repeatedly simulating the 
> "dimples" as electrons stuck to the surface of a sphere repulsing each 
> other - after a couple of hundred itterations, the opints are pretty evenly 
> spaced.

Google actually turned up a patent applying this to golf balls ;)

"A golf ball having a plurality of dimples on its surface, the dimples
as a whole are distributed on at least a portion of the golf ball using
principles of electromagnetic theory. The dimples placed on the golf
ball surface are assigned charge values that are used to determine the
electric potential. A solution method is then applied to minimize the
potential by rearrangement of the dimple positions."

http://www.freepatentsonline.com/6884184.html


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Golf Ball Help
Date: 19 Jun 2007 10:45:01
Message: <web.4677eba5bc62bf83c150d4c10@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> Google actually turned up a patent applying this to golf balls ;)
>
> "A golf ball having a plurality of dimples on its surface, the dimples
> as a whole are distributed on at least a portion of the golf ball using
> principles of electromagnetic theory. The dimples placed on the golf
> ball surface are assigned charge values that are used to determine the
> electric potential. A solution method is then applied to minimize the
> potential by rearrangement of the dimple positions."
>
> http://www.freepatentsonline.com/6884184.html

Interesting idea, but I wonder how this actually works with respect to the
prinicpal of having the dimples in the first place which is an aerodynamic
flow problem...

-tgq


Post a reply to this message

From: Simon
Subject: Re: Golf Ball Help
Date: 19 Jun 2007 16:14:15
Message: <46783917@news.povray.org>
My solution was emrely for evenly spaced and visually "average" dimples. I 
have to say that it never occured to me the technique might be copytight. in 
my defense, I was doing spikes on a mace :)

As to the aerodynamics - I only know that the dimples cause pockets of air 
reducing the friction/air resistance by creating an envelope around the 
ball. Beyond that, I'm afraid yuou're on your own - if it's any consolation, 
I doubt many people will know if it's wrong.

"Trevor G Quayle" <Tin### [at] hotmailcom> wrote in message 
news:web.4677eba5bc62bf83c150d4c10@news.povray.org...
> Christian Froeschlin <chr### [at] chrfrde> wrote:
>> Google actually turned up a patent applying this to golf balls ;)
>>
>> "A golf ball having a plurality of dimples on its surface, the dimples
>> as a whole are distributed on at least a portion of the golf ball using
>> principles of electromagnetic theory. The dimples placed on the golf
>> ball surface are assigned charge values that are used to determine the
>> electric potential. A solution method is then applied to minimize the
>> potential by rearrangement of the dimple positions."
>>
>> http://www.freepatentsonline.com/6884184.html
>
> Interesting idea, but I wonder how this actually works with respect to the
> prinicpal of having the dimples in the first place which is an aerodynamic
> flow problem...
>
> -tgq
>
>


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Golf Ball Help
Date: 20 Jun 2007 08:10:02
Message: <web.4679185abc62bf83c150d4c10@news.povray.org>
"Simon" <povray@*NOSPAM*SOWare.co.uk> wrote:
> My solution was emrely for evenly spaced and visually "average" dimples. I
> have to say that it never occured to me the technique might be copytight. in
> my defense, I was doing spikes on a mace :)
>
> As to the aerodynamics - I only know that the dimples cause pockets of air
> reducing the friction/air resistance by creating an envelope around the
> ball. Beyond that, I'm afraid yuou're on your own - if it's any consolation,
> I doubt many people will know if it's wrong.
>

I was just derailing the thread a bit, wondering whether the patentee
created a concept that has any valid correlation to what it's meant to
accomplish.

I agree that no one would notice.  The kind of person who notice an
incorrect ball dimple pattern is more likely out on the course these days
than in here :D

-tgq


Post a reply to this message

From: Graham
Subject: Re: Golf Ball Help
Date: 13 Jul 2013 11:35:01
Message: <web.51e17368bc62bf83aee21ad10@news.povray.org>
"Allen" <nomail@nomail> wrote:
> I did a bit more work trying to figure this problem out, and I came up with
> the following code.  My only concern is that some of the dimples don't line
> up right, and the spacing isn't correct all around, except for the equator
> ring.  It is also a big resource hog.
>
> 8>< trim code 8><

Allen, how would the attached work for you?


Post a reply to this message


Attachments:
Download '200 sides.png' (61 KB)

Preview of image '200 sides.png'
200 sides.png


 

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