summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-06-15 04:40:33 +0200
committerTreeki <treeki@gmail.com>2011-06-15 04:40:33 +0200
commitd6011147ab248b0290982c6ddebada8221209255 (patch)
treef332458da452b4b89af2bd4552d502404e5514cc
parente32b8bf8fff4d0507c34221146a1371ad47a3df5 (diff)
downloadkamek-d6011147ab248b0290982c6ddebada8221209255.tar.gz
kamek-d6011147ab248b0290982c6ddebada8221209255.zip
trimmed some cruft out of make_map_model.rb
-rwxr-xr-xmake_map_model.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/make_map_model.rb b/make_map_model.rb
index 388c4ac..fa00619 100755
--- a/make_map_model.rb
+++ b/make_map_model.rb
@@ -18,15 +18,6 @@ ObjImporter.ImportModel(path, reader, brres, "WorldBase", ObjImporter::LightmapT
model = models["WorldBase"]
-alpha_tex = Texture.new
-alpha_bitmap = System::Drawing::Bitmap.new("#{path}/images/alphaBlender.png")
-alpha_tex.images = System::Array[System::Drawing::Bitmap].new([alpha_bitmap])
-alpha_tex.format = TextureFormat.RGB5A3
-brres.get_texture_group.add 'alphaBlender', alpha_tex
-
-# yay
-#model.shapes["World2_PathsPlumbing__World2_PathsPlumbing"].clr_data[0].raw_data = System::Array[Byte].new([255, 255, 255, 128])
-
# move paths into DrawXlu
opa = model.bytecode["DrawOpa"]
if model.bytecode.contains_key("DrawXlu")
@@ -68,20 +59,6 @@ model.materials.each do |kvp|
pix.load_b_p_reg 0x42000000
pix.end
mat.pix_d_l = pix.get_buffer
-
- tc = DisplayListWriter.new
- [0xE2,0xE3,0xE4,0xE5,0xE6,0xE7].each_slice(2) do |first, second|
- tc.load_b_p_reg first << 24
- 3.times { tc.load_b_p_reg second << 24 }
- end
- tc.add_padding 4
- (0xE0..0xE5).each {|bit| tc.load_b_p_reg (bit << 24) | 0x800000}
- tc.load_b_p_reg 0xE688F000
- tc.load_b_p_reg 0xE7800000
- tc.pad_to_size 0x80
- tc.end
- mat.tev_color_d_l = tc.get_buffer
-
end
final_data = BrresWriter.write_file(brres)