All pastes #709426 Raw Edit

box.bzw

public text v1 · immutable
#709426 ·published 2007-09-24 17:51 UTC
rendered paste body
#######################################
# Created with PHP DrawInfo-Machine   #
#     (c)2007 Ted Smoker (Tedius)     #
#######################################


material
  name one
  #ambient 1.00000 1.00000 1.00000
  #diffuse 0.193333 0.246667 1.00000 1.00000
  #emission 0.00000e+0 0.00000e+0 0.00000e+0
  #specular 1.00000 1.00000 1.00000
  shininess 128.000
  addtexture http://cbg.bzflag.org/images/A-Delusion/sgtschultz.png
end

material
  name two
  #ambient 1.00000 1.00000 1.00000
  #diffuse 0.353333 1.00000 1.00000 1.00000
  #emission 0.00000e+0 0.00000e+0 0.00000e+0
  #specular 1.00000 1.00000 1.00000
  shininess 128.000
addtexture http://cbg.bzflag.org/images/SpazzyMcGee/chain.png
end

material
  name three
  #ambient 1.00000 1.00000 1.00000
  #diffuse 1.00000 0.186667 0.186667 1.00000
  #emission 0.00000e+0 0.00000e+0 0.00000e+0
  #specular 1.00000 1.00000 1.00000
  shininess 128.000
addtexture http://cbg.bzflag.org/images/A-Delusion/dog2.png
end

material
  name four
 # ambient 1.00000 1.00000 1.00000
 # diffuse 1.00000 0.486667 0.446667 1.00000
 # emission 0.00000e+0 0.00000e+0 0.00000e+0
 # specular 1.00000 1.00000 1.00000
  shininess 128.000
  addtexture http://cbg.bzflag.org/images/SpazzyMcGee/target-blue.png
end

material
  name five
  #ambient 1.00000 1.00000 1.00000
  #diffuse 0.306667 1.00000 4.00000e-2 1.00000
  #emission 0.00000e+0 0.00000e+0 0.00000e+0
  #specular 1.00000 1.00000 1.00000
  shininess 128.000
 addtexure red_super_bolt.png
end

material
  name six
 # ambient 1.00000 1.00000 1.00000
 # diffuse 0.653333 1.00000 0.788148 1.00000
 # emission 0.00000e+0 0.00000e+0 0.00000e+0
 # specular 1.00000 1.00000 1.00000
  shininess 128.000
  addtexture http://cbg.bzflag.org/images/Panzer/DollarSignSmall.png
end

define object
#### copy from this point on if you are inserting multiple lods
mesh
	drawInfo
	dlist
	#angvel 120	#uncomment this line to cause the object to spin at 120 degrees/second
	vertex 0 0 0		#0
	vertex 40.00000000 -160.00000000 20.00000000		#1
	vertex 40.00000000 -160.00000000 80.00000000		#2
	vertex 120.00000000 -160.00000000 80.00000000		#3
	vertex 120.00000000 -160.00000000 20.00000000		#4
	vertex 40.00000000 -80.00000000 20.00000000		#5
	vertex 40.00000000 -80.00000000 80.00000000		#6
	vertex 120.00000000 -80.00000000 80.00000000		#7
	vertex 120.00000000 -80.00000000 20.00000000		#8
	vertex 0 0 0		#9
	vertex 0 0 0		#10
	vertex 0 0 0		#11
	vertex 0 0 0		#12
	vertex 0 0 0		#13
	vertex 0 0 0		#14
	vertex 0 0 0		#15
	vertex 0 0 0		#16
	vertex 0 0 0		#17
	vertex 0 0 0		#18
	vertex 0 0 0		#19
	vertex 0 0 0		#20
	normal 0 0 0		#0
	normal -0.57735027 -0.57735027 -0.57735027		#1
	normal -0.57735027 0.57735027 -0.57735027		#2
	normal 0.57735027 0.57735027 -0.57735027		#3
	normal 0.57735027 -0.57735027 -0.57735027		#4
	normal -0.57735027 -0.57735027 0.57735027		#5
	normal -0.57735027 0.57735027 0.57735027		#6
	normal 0.57735027 0.57735027 0.57735027		#7
	normal 0.57735027 -0.57735027 0.57735027		#8
	normal 0 0 0		#9
	normal 0 0 0		#10
	normal 0 0 0		#11
	normal 0 0 0		#12
	normal 0 0 0		#13
	normal 0 0 0		#14
	normal 0 0 0		#15
	normal 0 0 0		#16
	normal 0 0 0		#17
	normal 0 0 0		#18
	normal 0 0 0		#19
	normal 0 0 0		#20
	texcoord 0 0 0		#0
	texcoord -1.6466667e-3 0.99485500		#1
	texcoord -8.6666667e-4 0.99442889		#2
	texcoord -5.9222222e-4 0.99609722		#3
	texcoord 0.0000000e+0 0.0000000e+0		#4
	texcoord 0.0000000e+0 5.5511151e-17		#5
	texcoord 0.0000000e+0 3.3306691e-16		#6
	texcoord 0.0000000e+0 1.00000000		#7
	texcoord 0.0000000e+0 1.00000000		#8
	texcoord 1.1102230e-16 0.0000000e+0		#9
	texcoord 5.4888889e-4 0.99844444		#10
	texcoord 0.99835333 0.99485500		#11
	texcoord 0.99913333 0.99442889		#12
	texcoord 0.99940778 0.99609722		#13
	texcoord 1.00000000 1.1102230e-16		#14
	texcoord 1.00000000 1.00000000		#15
	texcoord 1.00000000 2.2204460e-16		#16
	texcoord 1.00000000 1.00000000		#17
	texcoord 1.00000000 -5.5511151e-17		#18
	texcoord 1.00000000 0.0000000e+0		#19
	texcoord 1.00054889 0.99844444		#20
	corner 3 16 3		#0
	corner 7 15 7		#1
	corner 6 7 6		#2
	corner 2 9 2		#3
	corner 1 14 1		#4
	corner 5 17 5		#5
	corner 8 8 8		#6
	corner 4 6 4		#7
	corner 4 4 4		#8
	corner 8 19 8		#9
	corner 7 20 7		#10
	corner 3 10 3		#11
	corner 2 12 2		#12
	corner 6 2 6		#13
	corner 5 4 5		#14
	corner 1 19 1		#15
	corner 1 4 1		#16
	corner 4 19 4		#17
	corner 3 13 3		#18
	corner 2 3 2		#19
	corner 6 11 6		#20
	corner 7 1 7		#21
	corner 8 5 8		#22
	corner 5 18 5		#23
	#lod	#uncomment these lines for lods following the first one
		#lengthPerPixel 0	
	#end	#lod
	lod
		lengthPerPixel 0	#the distance from which the object appears (default 0)
		matref one	#material name
			quads 0 1 2 3 
		end
		
		matref two
		quads 4 5 6 7
		end
		
		matref three
			quads 8 9 10 11
		end
		
		matref four
			quads 12 13 14 15 
		end
		
		matref five
			quads 16 17 18 19 
		end
		
		matref six
		quads 20 21 22 23 
		end	#mat
		
	end	#lod
	lod
		lengthPerPixel 1	#the distance from which the object ceases to be seen (default 1)
	end	#lod
end	#drawInfo
end	#mesh
###### end copy for multiple lods here
enddef	#object definition
group object
scale 1 1 1
shift 0 0 10
end







#the same thing, without drawinfo

define sample
mesh
  name cube1
  #8 vertices, 6 faces
  vertex 40.00000000 -160.00000000 20.00000000
  vertex 40.00000000 -160.00000000 80.00000000
  vertex 120.00000000 -160.00000000 80.00000000
  vertex 120.00000000 -160.00000000 20.00000000
  vertex 40.00000000 -80.00000000 20.00000000
  vertex 40.00000000 -80.00000000 80.00000000
  vertex 120.00000000 -80.00000000 80.00000000
  vertex 120.00000000 -80.00000000 20.00000000
  normal -0.57735027 -0.57735027 -0.57735027
  normal -0.57735027 -0.57735027 0.57735027
  normal 0.57735027 -0.57735027 0.57735027
  normal 0.57735027 -0.57735027 -0.57735027
  normal -0.57735027 0.57735027 -0.57735027
  normal -0.57735027 0.57735027 0.57735027
  normal 0.57735027 0.57735027 0.57735027
  normal 0.57735027 0.57735027 -0.57735027
  texcoord -1.6466667e-3 0.99485500
  texcoord -8.6666667e-4 0.99442889
  texcoord -5.9222222e-4 0.99609722
  texcoord 0 0
  texcoord 0 5.5511151e-17
  texcoord 0 3.3306691e-16
  texcoord 0 1.00000000
  texcoord 0 1.00000000
  texcoord 1.1102230e-16 0
  texcoord 5.4888889e-4 0.99844444
  texcoord 0.99835333 0.99485500
  texcoord 0.99913333 0.99442889
  texcoord 0.99940778 0.99609722
  texcoord 1.00000000 1.1102230e-16
  texcoord 1.00000000 1.00000000
  texcoord 1.00000000 2.2204460e-16
  texcoord 1.00000000 1.00000000
  texcoord 1.00000000 -5.5511151e-17
  texcoord 1.00000000 0
  texcoord 1.00054889 0.99844444
  matref one
  face
    vertices 2 6 5 1
    normals 2 6 5 1
    texcoords 15 14 6 8
  endface
  matref two
  face
    vertices 0 4 7 3
    normals 0 4 7 3
    texcoords 13 16 7 5
  endface
  matref three
  face
    vertices 3 7 6 2
    normals 3 7 6 2
    texcoords 3 18 19 9
  endface
  matref four
  face
    vertices 1 5 4 0
    normals 1 5 4 0
    texcoords 11 1 3 18
  endface
  matref five
  face
    vertices 0 3 2 1
    normals 0 3 2 1
    texcoords 3 18 12 2
  endface
  matref six
  face
    vertices 5 6 7 4
    normals 5 6 7 4
    texcoords 10 0 4 17
  endface
end
enddef

group sample
shift 100 100 40
end