From dd43ede92e2f563d4d7e3b60eac315db56d64d30 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Fri, 4 Mar 2022 18:14:44 -0500 Subject: [PATCH 1/2] Remove Opacity Fader from flaregen Takes out opacity fader, which has been causing problems for end user. --- korman/operators/op_mesh.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/korman/operators/op_mesh.py b/korman/operators/op_mesh.py index 5a5a98e..f693ab9 100644 --- a/korman/operators/op_mesh.py +++ b/korman/operators/op_mesh.py @@ -122,13 +122,6 @@ class PlasmaAddFlareOperator(PlasmaMeshOperator, bpy.types.Operator): # Parent Plane to Empty flare_plane.parent = flare_root - # Enable Opacity Fader - bpy.ops.object.plasma_modifier_add(types="fademod") - flare_plane.plasma_modifiers.fademod.fader_type = "FadeOpacity" - flare_plane.plasma_modifiers.fademod.fade_in_time = 0.25 - flare_plane.plasma_modifiers.fademod.fade_out_time = 0.25 - flare_plane.plasma_modifiers.fademod.bounds_center = True - def find_create_material(self): # If the selected flare material exists, use it auto_mat = bpy.data.materials.get(self.flare_material_name, None) From e4115138dbdf89cec966091d27d13d71519b3686 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Mon, 7 Mar 2022 17:06:21 -0500 Subject: [PATCH 2/2] Adjust material/texture settings Removes the Skip Depth Test (per Jrius) while also implementing updated emissive functions. --- korman/operators/op_mesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korman/operators/op_mesh.py b/korman/operators/op_mesh.py index f693ab9..6d00d71 100644 --- a/korman/operators/op_mesh.py +++ b/korman/operators/op_mesh.py @@ -129,7 +129,7 @@ class PlasmaAddFlareOperator(PlasmaMeshOperator, bpy.types.Operator): if auto_mat is None: # Generate a new flare material and texture auto_mat = bpy.data.materials.new(name=FLARE_MATERIAL_BASE_NAME) - auto_mat.use_shadeless = True + auto_mat.emit = 1.0 auto_mat.use_shadows = False auto_mat.use_cast_shadows = False self.flare_material_name = auto_mat.name @@ -137,12 +137,12 @@ class PlasmaAddFlareOperator(PlasmaMeshOperator, bpy.types.Operator): auto_tex = bpy.data.textures.new(name=FLARE_MATERIAL_BASE_NAME, type="IMAGE") auto_tex.use_alpha = True auto_tex.plasma_layer.skip_depth_write = True - auto_tex.plasma_layer.skip_depth_test = True auto_tex.plasma_layer.z_bias = True new_slot = auto_mat.texture_slots.add() new_slot.texture = auto_tex new_slot.blend_type = "ADD" + new_slot.use_map_emit = True return auto_mat