POV-Ray : Newsgroups : povray.binaries.images : CGSE (Golf Ball) Server Time
24 Apr 2024 20:04:50 EDT (-0400)
  CGSE (Golf Ball) (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
From: Simon
Subject: Re: CGSE (Golf Ball)
Date: 21 Jun 2007 20:29:38
Message: <467b17f2$1@news.povray.org>
How did you distribute the dimples in the end?

"Allen" <nomail@nomail> wrote in message 
news:web.467ae5a399fd8ad3b59da54c0@news.povray.org...
> Here it is.  ^.^
>
> ----
> View My Portfolio At
> http://allen.emailnuts.com/
>


--------------------------------------------------------------------------------


Post a reply to this message

From: Allen
Subject: Re: CGSE (Golf Ball)
Date: 22 Jun 2007 02:00:11
Message: <web.467b64227fa6236fb59da54c0@news.povray.org>
"Simon" <povray@*NOSPAM*SOWare.co.uk> wrote:
> How did you distribute the dimples in the end?

I had to end up using a macro to place a bunch of difference spheres around
the larger sphere.  Ate up memory at render, but was faster than the
geodesic macro.


"You need to maintain the camera perspective and sphere size as well as
render at a 800x800 resolution.  I would suggest fixing this and
resubmitting so you don't get hit too hard in the ratings"

Yeah, right as soon as I tried to upload it, it said "needs to be 800x800"
It'll be another two days before the 800x800 is done... so I just added
some black bars for now.

I'll rotate the sphere as well... thanks ^.^
----
View My Portfolio At
http://allen.emailnuts.com/


Post a reply to this message

From: Arno
Subject: Re: CGSE (Golf Ball)
Date: 22 Jun 2007 13:30:01
Message: <web.467c06e57fa6236f7875dea70@news.povray.org>
I absolutely love the grass!! How did you do that? Is that an isosurface?


Post a reply to this message

From: Allen
Subject: Re: CGSE (Golf Ball)
Date: 22 Jun 2007 16:20:02
Message: <web.467c2d077fa6236f1298e5960@news.povray.org>
"Arno" <nomail@nomail> wrote:
> I absolutely love the grass!! How did you do that? Is that an isosurface?

Thank you!  I modeled a couple of grass blades, then just randomly traced
them to an invisible box.  For the texture, I added it to the union of
blades so I could get patches of yellow grass as well as green grass.

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


Post a reply to this message

From: Thomas de Groot
Subject: Re: CGSE (Golf Ball)
Date: 23 Jun 2007 03:58:57
Message: <467cd2c1$1@news.povray.org>
"Allen" <nomail@nomail> schreef in bericht 
news:web.467ae5a399fd8ad3b59da54c0@news.povray.org...
> Here it is.  ^.^
>
> ----
> View My Portfolio At
> http://allen.emailnuts.com/
>

Excellent!  What about the shadow of a golf stick?

Thomas


Post a reply to this message

From: Allen
Subject: Re: CGSE (Golf Ball)
Date: 25 Jun 2007 15:55:01
Message: <web.468018907fa6236f4dc153cb0@news.povray.org>
"Thomas de Groot" <t.d### [at] internlDOTnet> wrote:
>
> Excellent!  What about the shadow of a golf stick?
>
> Thomas

Maybe, I'm not totally sure about that.  The ball itself is around 30units
in radius.  So, if I did a golf stick, it would be like 30*40units tall.
That's just huge.  To get it to the right scale, it just wouldn't work in
this image.  Good idea though.

I have updated the image.
http://www.cgsphere.com/gallery/details/?submission_id=3330
Please comment and rate it ^.^

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


Post a reply to this message

From: Trevor G Quayle
Subject: Re: CGSE (Golf Ball)
Date: 25 Jun 2007 17:00:03
Message: <web.46802c887fa6236fc150d4c10@news.povray.org>
"Allen" <nomail@nomail> wrote:
>
> Maybe, I'm not totally sure about that.  The ball itself is around 30units
> in radius.  So, if I did a golf stick, it would be like 30*40units tall.
> That's just huge.  To get it to the right scale, it just wouldn't work in
> this image.  Good idea though.
>
> I have updated the image.
> http://www.cgsphere.com/gallery/details/?submission_id=3330
> Please comment and rate it ^.^
>

I see your new one, while you've resized the image itself properly, the ball
(sphere) should still have the same size as the template.  (In the POV
template this is 40 units).  Other than that, it looks pretty good and
follows all the other rules.  Sorry to make you maybe render it agin.

BTW, why is the render so long?  Is it just from the area lighting and focal
blur?  Try manual bounding of the CSG of the sphere, sometimes this can help
considerably, especially when you are differencing a whole lot of objects
like the dimples.

-tgq


Post a reply to this message

From: Trevor G Quayle
Subject: Re: CGSE (Golf Ball)
Date: 25 Jun 2007 17:10:02
Message: <web.46802f0e7fa6236fc150d4c10@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
>
> BTW, why is the render so long?  Is it just from the area lighting and focal
> blur?  Try manual bounding of the CSG of the sphere, sometimes this can help
> considerably, especially when you are differencing a whole lot of objects
> like the dimples.
>
> -tgq

To follow up on this, I have a similar type object (holes in a shell rather
than dimples) that I've worked on and instead of differencing  the holes, I
used blobs (give the dimple blobs a negative strength), and it is *much*
faster.

Compare Ball1 (blobs) to Ball2 (CSG) in the following:

//START

#macro GeodesicBlob(n,R,Obj,k)
    #if (n=0)
      cylinder{-z,z,Obj,k}
    #else
      #local nL=pow(2,(n-1));
      #local i=-nL;
      #while (i<=nL)
        #local nS=4*(nL-abs(i));
        #if (nS=0)
            cylinder{-z,z,Obj,k translate<0,0,-R> rotate x*i*90/nL}
        #else

          #local j=0;
          #while (j<nS)
            cylinder{-z,z,Obj,k translate<0,0,-R> rotate x*i*90/nL rotate
y*j*360/nS}
            #local j=j+1;
          #end

        #end
        #local i=i+1;
      #end
    #end
#end

#macro Geodesic(n,R,Obj)
    #if (n=0)
      cylinder{-z,z,Obj}
    #else
      #local nL=pow(2,(n-1));
      #local i=-nL;
      #while (i<=nL)
        #local nS=4*(nL-abs(i));
        #if (nS=0)
            cylinder{-z,z,Obj translate<0,0,-R> rotate x*i*90/nL}
        #else

          #local j=0;
          #while (j<nS)
            cylinder{-z,z,Obj translate<0,0,-R> rotate x*i*90/nL rotate
y*j*360/nS}
            #local j=j+1;
          #end

        #end
        #local i=i+1;
      #end
    #end
#end


#declare R0=40;
#declare R2=0.5;
#declare OS=5;
#declare X0=sqrt(pow(R0,2)-pow(OS,2));

#declare OS1=OS*(R0-R2)/R0;
#declare R1=X0*(R0-R2)/R0;
#declare RR=R0-2*R2;

#declare D=0.1;

#declare Ball1=
difference{
  blob{
    threshold D
    sphere{0,RR/sqrt(1-sqrt(D)),1}
    GeodesicBlob(5,RR,2,-0.01)
  }
  bounded_by{sphere{0,40}}
  rotate y*40
  pigment{rgb 1}
}


#declare Ball2=
difference{
  sphere{0,RR}
  Geodesic(6,RR,1)
  bounded_by{sphere{0,40}}
  rotate y*40
  pigment{rgb 1}
}

object{Ball2}

//END

-tgq


Post a reply to this message

From: Allen
Subject: Re: CGSE (Golf Ball)
Date: 25 Jun 2007 17:50:02
Message: <web.468038577fa6236f4dc153cb0@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:

> Compare Ball1 (blobs) to Ball2 (CSG) in the following:

Holy crap!!!  I rendered the CSG without the special effects... just the
grid and the ball.  It locked up at line 190 like usual.  That is about
where the golf ball starts.  At that point, I am lucky to get around 6pps.
Next, I tried the blobs.  The entire image without effects rendered in a
couple of minutes.  Only a minor slow down to about 800pps.

Mind if I take the macros apart and figure out how you got yours to work?...
I tried something like this, but failed so badly.

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


Post a reply to this message

From: Trevor G Quayle
Subject: Re: CGSE (Golf Ball)
Date: 26 Jun 2007 08:10:01
Message: <web.468101197fa6236fc150d4c10@news.povray.org>
"Allen" <nomail@nomail> wrote:
> "Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
>
> > Compare Ball1 (blobs) to Ball2 (CSG) in the following:
>
>
> Mind if I take the macros apart and figure out how you got yours to work?...
> I tried something like this, but failed so badly.
>

Go ahead.  The macro is virtually the same as I had posted before.  What's
important is learning how blob calculations work to get the dimensions you
want.  It helps to read the docs on blobs, the calculations I used are
based on the equation from there.

-tgq


Post a reply to this message

<<< Previous 2 Messages Goto Initial 10 Messages

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