Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fc1943s committed Jan 8, 2025
1 parent c0d8f43 commit 272fcbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions apps/spiral/temp/blender/build.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
param(
$fast,
$ScriptDir = $PSScriptRoot
)
Set-Location $ScriptDir
$ErrorActionPreference = "Stop"

. ../../../../scripts/core.ps1
. ../../../../lib/spiral/lib.ps1


blender -b --python build.py
4 changes: 2 additions & 2 deletions apps/spiral/temp/blender/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

# 5) Set rendering options (Cycles, resolution)
bpy.context.scene.render.engine = 'CYCLES'
bpy.context.scene.render.resolution_x = 2048
bpy.context.scene.render.resolution_y = 2048
bpy.context.scene.render.resolution_x = 1024
bpy.context.scene.render.resolution_y = 1024

# Render and save
bpy.context.scene.render.filepath = os.path.join(".", f"spiral_blender.png")
Expand Down

0 comments on commit 272fcbf

Please sign in to comment.