POV-Ray : Newsgroups : povray.binaries.scene-files : REQ: model of a set of dice : Re: REQ: model of a set of dice Server Time
19 May 2024 15:55:30 EDT (-0400)
  Re: REQ: model of a set of dice  
From: Edward Wedig
Date: 25 Feb 1998 03:23:02
Message: <34F3D4E2.43C8@kreber.com>
Ryan Rife wrote:
> 
> I am looking for a real looking model of a set od dice or a single di.  I
> don't want a fancy scene, just the dice so I can mold it around a bit. Thanx

Here, try this:

#declare Die=
difference {
	superellipsoid{ <0.25,0.25>}
	//One
	sphere {<-1,0,0>,0.15
		pigment {color rgb 0.0}}
	//Two
	sphere {<-0.6,1,-0.6>,0.15
			pigment {color rgb 0.0}}
	sphere {<0.6,1,0.6>,0.15
			pigment {color rgb 0.0}}
	//Three
	sphere {<0.5,0.5,1>,0.15
			pigment {color rgb 0.0}}
	sphere {<-0.5,-0.5,1>,0.15
			pigment {color rgb 0.0}}
	sphere {<0,0,1>,0.15
			pigment {color rgb 0.0}}
	//Four
	sphere {<-0.6,-1,-0.6>,0.15
			pigment {color rgb 0.0}}
	sphere {<0.6,-1,0.6>,0.15
			pigment {color rgb 0.0}}
	sphere {<-0.6,-1,0.6>,0.15
			pigment {color rgb 0.0}}
	sphere {<0.6,-1,-0.6>,0.15
			pigment {color rgb 0.0}}
	// Five
	sphere {<0,0,-1>,0.15
			pigment {color rgb 0.0}}
	sphere {<0.5,0.5,-1>,0.15
			pigment {color rgb 0.0}}
	sphere {<-0.5,-0.5,-1>,0.15
			pigment {color rgb 0.0}}
	sphere {<-0.5,0.5,-1>,0.15
			pigment {color rgb 0.0}}
	sphere {<0.5,-0.5,-1>,0.15
			pigment {color rgb 0.0}}
	//Six
	sphere {<1,0.5,-0.5>,0.15
			pigment {color rgb 0.0}}
	sphere {<1,0.5,0.5>,0.15
			pigment {color rgb 0.0}}
	sphere {<1,0,-0.5>,0.15
			pigment {color rgb 0.0}}
	sphere {<1,0,0.5>,0.15
			pigment {color rgb 0.0}}
	sphere {<1,-0.5,-0.5>,0.15
			pigment {color rgb 0.0}}
	sphere {<1,-0.5,0.5>,0.15
			pigment {color rgb 0.0}}
	pigment {color rgb 1.0}
	finish {Shiny}
	scale 5
			}

I hope that'll work for what you want to do.

-Ed

-- 
Edward Wedig
Content Management
Kreber Graphics
Columbus, OH


Post a reply to this message

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