POV-Ray : Newsgroups : povray.binaries.images : Can we join together to make a baseball? : Re: Can we join together to make a baseball? Server Time
7 Aug 2024 09:20:08 EDT (-0400)
  Re: Can we join together to make a baseball?  
From: Jim Charter
Date: 17 Apr 2006 17:21:31
Message: <444406db$1@news.povray.org>
wayne461 wrote:

> However, I think now Jelby's lead might help us more finely code the holes
> in the ball and stitches exiting and going into ball?  Is that how you see
> things proceeding, Jim?  Do you want me to play around and see what I can
> come up with?
> 
The math on the page Jellby quoted might be used to make a more accurate 
spline. Not urgent at the moment. Mine is not very accurate. But in my 
opinion using a spline gives the ability to work within sdl without 
knowing sophisticated math.

The code I showed you was meant as more of a direction than a solution.

For instance the pigment yellow and magenta pigment was included only to 
show the influence of the added blob components.  A shallower ridge can 
be gotten by tweaking down the threshold value ( get it low, maybe .03 
or so ) while increasing the radius of the ridge blobs ( maybe .14 )
You migh also notice that I also locate the blobs just under the surface 
of the ball.

Also in the original thread you quoted, H E Day posted a suggestion for 
how to "feather" the edges ( which was the original question on the 
thread.)  His suggestin was to replace each blob component with several 
in the same place each one trading off radius v strength

So

instead of something like:

Radius=.14
Strength=1
blob { threshold .03
	sphere { 0, 1, 1 }
	STARTLOOP
		sphere ( Location, Radius, Strenght )

	ENDLOOP
}

do something like:

Radius1=.10
Strenght1=1.2
Radius2=.12
Strength2=1.1
Radius3=.14
Strenght3=1.0

blob { threshold .03
	sphere { 0, 1, 1 }
	STARTLOOP
		sphere { Location, Radius1, Strength1 }
		sphere { Location, Radius2, Strength2 }
		sphere { Location, Radius3, Strength3 }
	ENDLOOP
}

I think you could try and tweak these factors before we attack the 
threading issue.

I am not sure how radically you would need to vary the Radius and 
Strenght over the three "copies" in order to get the effect H Day 
describes.  I have never tried the technique myself.  But H E Day was a 
blob master.  Perhaps try some controlled experiments to assure yourself 
of how the technique works before working directly on the ball model.

-Jim


Post a reply to this message

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