Browse Source

Fix FNI file to not suck

pull/6/head
Adam Johnson 11 years ago
parent
commit
144a1f4824
  1. 2
      korman/exporter/convert.py
  2. 10
      korman/exporter/manager.py

2
korman/exporter/convert.py

@ -155,4 +155,4 @@ class Exporter:
pass
def _export_mesh_blobj(self, so, bo):
so.draw = self.mesh.export_object(bo)
so.draw = self.mesh.export_object(bo)

10
korman/exporter/manager.py

@ -199,14 +199,14 @@ class ExportManager:
# Write out some stuff
fni = bpy.context.scene.world.plasma_fni
stream.writeLine("Graphics.Renderer.Fog.SetClearColor %f %f %f" % tuple(fni.clear_color))
stream.writeLine("Graphics.Renderer.SetClearColor {} {} {}".format(*fni.clear_color))
if fni.fog_method != "none":
stream.writeLine("Graphics.Renderer.Fog.SetDefColor %f %f %f" % tuple(fni.fog_color))
stream.writeLine("Graphics.Renderer.Fog.SetDefColor {} {} {}".format(*fni.fog_color))
if fni.fog_method == "linear":
stream.writeLine("Graphics.Renderer.Fog.SetDefLinear %f %f %f" % (fni.fog_start, fni.fog_end, fni.fog_density))
stream.writeLine("Graphics.Renderer.Fog.SetDefLinear {} {} {}".format(fni.fog_start, fni.fog_end, fni.fog_density))
elif fni.fog_method == "exp2":
stream.writeLine("Graphics.Renderer.Fog.SetDefExp2 %f %f" % (fni.fog_end, fni.fog_density))
stream.writeLine("Graphics.Renderer.Setyon %f" % fni.yon)
stream.writeLine("Graphics.Renderer.Fog.SetDefExp2 {} {}".format(fni.fog_end, fni.fog_density))
stream.writeLine("Graphics.Renderer.SetYon {}".format(fni.yon))
stream.close()
def _write_pages(self, path, ageName):

Loading…
Cancel
Save