From 3ca7c2ac5ae93552e92f55166bc2a8ca5ef29fe4 Mon Sep 17 00:00:00 2001 From: Ma Nan Date: Tue, 29 Oct 2024 15:14:31 +0800 Subject: [PATCH] feat: improve eevee render --- bioxelnodes/assets/Nodes/BioxelNodes_latest.blend | 4 ++-- bioxelnodes/blender_manifest.toml | 2 +- bioxelnodes/constants.py | 2 +- bioxelnodes/operators/io.py | 1 + bioxelnodes/operators/misc.py | 8 ++++---- pyproject.toml | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend b/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend index 789cd9e..bda89c5 100644 --- a/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend +++ b/bioxelnodes/assets/Nodes/BioxelNodes_latest.blend @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b414fcab2662c6bc12abecd318421e5389a9871579d0f98c1954c1d26b54ed17 -size 9232450 +oid sha256:79dc46259b1a3f248fc647fc1f73e5a8591e53c0af3b830e5360ddff981372cf +size 9275918 diff --git a/bioxelnodes/blender_manifest.toml b/bioxelnodes/blender_manifest.toml index 83b10f8..11e1a17 100644 --- a/bioxelnodes/blender_manifest.toml +++ b/bioxelnodes/blender_manifest.toml @@ -1,7 +1,7 @@ schema_version = "1.0.0" id = "bioxelnodes" -version = "1.0.4" +version = "1.0.5" name = "Bioxel Nodes" tagline = "For scientific volumetric data visualization in Blender" maintainer = "Ma Nan " diff --git a/bioxelnodes/constants.py b/bioxelnodes/constants.py index 0075dee..7d63d18 100644 --- a/bioxelnodes/constants.py +++ b/bioxelnodes/constants.py @@ -1,6 +1,6 @@ from pathlib import Path -VERSIONS = [{"label": "Latest", "node_version": (1, 0, 4)}, +VERSIONS = [{"label": "Latest", "node_version": (1, 0, 5)}, {"label": "v0.3.x", "node_version": (0, 3, 3)}, {"label": "v0.2.x", "node_version": (0, 2, 9)}] diff --git a/bioxelnodes/operators/io.py b/bioxelnodes/operators/io.py index 1d9e6e4..76ff2ce 100644 --- a/bioxelnodes/operators/io.py +++ b/bioxelnodes/operators/io.py @@ -854,6 +854,7 @@ def modal(self, context, event): bpy.ops.bioxelnodes.render_setting_preset('EXEC_DEFAULT', preset="balance") bpy.context.scene.render.engine = 'CYCLES' + bpy.ops.bioxelnodes.slice_viewer('EXEC_DEFAULT') self.report({"INFO"}, "Successfully Imported") return {'FINISHED'} diff --git a/bioxelnodes/operators/misc.py b/bioxelnodes/operators/misc.py index 1558d8a..037683b 100644 --- a/bioxelnodes/operators/misc.py +++ b/bioxelnodes/operators/misc.py @@ -146,7 +146,7 @@ class RenderSettingPreset(bpy.types.Operator): def execute(self, context): if self.preset == "performance": # EEVEE - bpy.context.scene.eevee.use_taa_reprojection = False + # bpy.context.scene.eevee.use_taa_reprojection = False bpy.context.scene.eevee.volumetric_tile_size = '2' bpy.context.scene.eevee.volumetric_shadow_samples = 32 bpy.context.scene.eevee.volumetric_samples = 64 @@ -162,7 +162,7 @@ def execute(self, context): elif self.preset == "balance": # EEVEE - bpy.context.scene.eevee.use_taa_reprojection = False + # bpy.context.scene.eevee.use_taa_reprojection = False bpy.context.scene.eevee.volumetric_tile_size = '2' bpy.context.scene.eevee.volumetric_shadow_samples = 64 bpy.context.scene.eevee.volumetric_samples = 128 @@ -178,7 +178,7 @@ def execute(self, context): elif self.preset == "quality": # EEVEE - bpy.context.scene.eevee.use_taa_reprojection = False + # bpy.context.scene.eevee.use_taa_reprojection = False bpy.context.scene.eevee.volumetric_tile_size = '2' bpy.context.scene.eevee.volumetric_shadow_samples = 128 bpy.context.scene.eevee.volumetric_samples = 256 @@ -202,7 +202,7 @@ class SliceViewer(bpy.types.Operator): bl_icon = "FILE_VOLUME" def execute(self, context): - bpy.context.scene.eevee.use_taa_reprojection = False + # bpy.context.scene.eevee.use_taa_reprojection = False bpy.context.scene.eevee.volumetric_tile_size = '2' bpy.context.scene.eevee.volumetric_shadow_samples = 128 bpy.context.scene.eevee.volumetric_samples = 128 diff --git a/pyproject.toml b/pyproject.toml index 1e38f9d..2a99d8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bioxelnodes" -version = "1.0.4" +version = "1.0.5" description = "" authors = ["Ma Nan "] license = "MIT"