POV-Ray : Newsgroups : povray.binaries.scene-files : REQ: model of a set of dice Server Time
7 May 2024 21:23:05 EDT (-0400)
  REQ: model of a set of dice (Message 1 to 2 of 2)  
From: Ryan Rife
Subject: REQ: model of a set of dice
Date: 24 Feb 1998 23:16:10
Message: <34f39afc.0@news.povray.org>
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


Post a reply to this message

From: Edward Wedig
Subject: Re: REQ: model of a set of dice
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.