All pastes #495151 Raw Edit

tristrips, again

public text v1 · immutable
·published 2007-05-18 16:23 UTC
rendered paste body
### Drawinfo for spinning pyramids  ###
#
material
#
  name po
#
  alphathresh 0.9
#
  #noradar
#
  noshadow
#
  noculling
#
  nosorting
#
 texture http://images.bzflag.org/smcgee/wallbw.png
#
 #addtexture http://cbg.bzflag.org/images/Pants/planetmofologo.png
#
end
#
 
#
define box
#
  group quadspo
#
    #scale 15 15 -30
#
    spin 45 0 0 1
#
    matref po
#
  end
#
enddef
#
 
#
 
#
define quadspo
#
mesh
#
  name cube1
#
 
#
vertex 25.000000 0.000000 -0.000000
#
vertex 0.000000 -25.000000 0.000000
#
vertex -25.000000 -0.000000 0.000000
#
vertex 0.000000 25.000000 -0.000000
#
vertex 0.000000 0.000000 15.000000
#
 
#
normal 0.867371 0.000000 0.497663
#
normal 0.000000 -0.867371 0.497663
#
normal -0.867371 0.000000 0.497663
#
normal -0.000000 0.867371 0.497663
#
normal 0.000000 0.000000 1.000000
#
 
#
texcoord 0.001469 0.002450 0.000000
#
texcoord 0.002927 0.996503 0.000000
#
texcoord 0.167564 0.851543 0.000000
#
texcoord 0.177459 0.143798 0.000000
#
texcoord 0.531782 0.423244 0.000000
#
texcoord 0.875309 0.861438 0.000000
#
texcoord 0.885204 0.153693 0.000000
#
texcoord 0.995522 0.000993 0.000000
#
texcoord 0.996979 0.995045 0.000000
#
 
#
 
#
 face
#
    vertices 0 4 1
#
    normals 0 4 1
#
    texcoords 2 4 5
#
  endface
#
  face
#
    vertices 1 2 3 0
#
    normals 1 2 3 0
#
    texcoords 8 1 0 7
#
  endface
#
  face
#
    vertices 1 4 2
#
    normals 1 4 2
#
    texcoords 5 4 6
#
  endface
#
  face
#
    vertices 2 4 3
#
    normals 2 4 3
#
    texcoords 6 4 3
#
  endface
#
  face
#
    vertices 3 4 0
#
    normals 3 4 0
#
    texcoords 3 4 2
#
  endface
#
 
#
drawInfo
#
   dlist
#
   #  extents -1 -1 0 1 1 1
#
    #  sphere 0 0 0.5 2.25
#
      angvel 20
#
     corner 0 0 0
#
      corner 1 1 1
#
      corner 2 2 4
#
      corner 3 3 3
#
      corner 4 4 2
#
     
#
      lod  # 0
#
        lengthPerPixel 0
#
        matref -1
#
          dlist
#
          tristrip 4 0 1 2 4 3 0 2# 4 3#4 1 #3 #0 #4 3 0 2 1
#
         
#
          #tristrip 2 3 4 0 1 3 2 4
#
          #tristrip 0 1 3 2 4 1
#
          end  # material -1
#
      end  # lod 0
#
     
#
    end  # drawInfo
#
 
#
 
#
end
#
enddef
#
 
#
group box
#
  matref po
#
  shift  140 -280 0
#
end
#
group box
#
  matref po
#
  shift  -280 140 0
#
end
#
group box
#
  matref po
#
  shift  280 140 0
#
end
#
group box
#
  matref po
#
  shift  -140 -280 0
#
end
#
 
#
 
#
 
#
 
#
material
#
  name po2
#
  alphathresh 0.9
#
  #noradar
#
  noshadow
#
  noculling
#
  nosorting
#
 texture http://images.bzflag.org/smcgee/wallbw.png
#
 #addtexture http://cbg.bzflag.org/images/Pants/planetmofologo.png
#
end
#
 
#
define box2
#
  group quadspo2
#
    #scale 15 15 -30
#
    spin 45 0 0 1
#
    matref po2
#
  end
#
enddef
#
 
#
 
#
define quadspo2
#
mesh
#
  name cube2
#
 
#
vertex 25.000000 0.000000 -0.000000
#
vertex 0.000000 -25.000000 0.000000
#
vertex -25.000000 -0.000000 0.000000
#
vertex 0.000000 25.000000 -0.000000
#
vertex 0.000000 0.000000 15.000000
#
 
#
normal 0.867371 0.000000 0.497663
#
normal 0.000000 -0.867371 0.497663
#
normal -0.867371 0.000000 0.497663
#
normal -0.000000 0.867371 0.497663
#
normal 0.000000 0.000000 1.000000
#
 
#
texcoord 0.001469 0.002450 0.000000
#
texcoord 0.002927 0.996503 0.000000
#
texcoord 0.167564 0.851543 0.000000
#
texcoord 0.177459 0.143798 0.000000
#
texcoord 0.531782 0.423244 0.000000
#
texcoord 0.875309 0.861438 0.000000
#
texcoord 0.885204 0.153693 0.000000
#
texcoord 0.995522 0.000993 0.000000
#
texcoord 0.996979 0.995045 0.000000
#
 
#
 
#
 face
#
    vertices 0 4 1
#
    normals 0 4 1
#
    texcoords 2 4 5
#
  endface
#
  face
#
    vertices 1 2 3 0
#
    normals 1 2 3 0
#
    texcoords 8 1 0 7
#
  endface
#
  face
#
    vertices 1 4 2
#
    normals 1 4 2
#
    texcoords 5 4 6
#
  endface
#
  face
#
    vertices 2 4 3
#
    normals 2 4 3
#
    texcoords 6 4 3
#
  endface
#
  face
#
    vertices 3 4 0
#
    normals 3 4 0
#
    texcoords 3 4 2
#
  endface
#
 
#
drawInfo
#
   dlist
#
   #  extents -1 -1 0 1 1 1
#
    #  sphere 0 0 0.5 2.25
#
      angvel -20
#
     corner 0 0 0
#
      corner 1 1 1
#
      corner 2 2 4
#
      corner 3 3 3
#
      corner 4 4 2
#
     
#
      lod  # 0
#
        lengthPerPixel 0
#
        matref -1
#
          dlist
#
          tristrip 4 0 1 2 4 3 0 2# 4 3#4 1 #3 #0 #4 3 0 2 1
#
         
#
          #tristrip 2 3 4 0 1 3 2 4
#
          #tristrip 0 1 3 2 4 1
#
          end  # material -1
#
      end  # lod 0
#
     
#
    end  # drawInfo
#
 
#
 
#
end
#
enddef
#
 
#
 
#
 
#
group box2
#
  matref po2
#
  shift 280 -140 0
#
end
#
group box2
#
  matref po2
#
  shift  -280 -140 0
#
end
#
group box2
#
  matref po2
#
  shift  -140 280 0
#
end
#
group box2
#
  matref po2
#
  shift  140 280 0
#
end
#
 
#
### END Drawinfo for spinning pyramids  ###