Skip to content

Commit

Permalink
Medical GUI - Remake body outline textures (#9503)
Browse files Browse the repository at this point in the history
Co-authored-by: jonpas <[email protected]>
  • Loading branch information
amsteadrayle and jonpas authored Oct 17, 2023
1 parent ed1ef14 commit 6e8a27c
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
Binary file modified addons/medical_gui/data/body_image/arm_left_s.paa
Binary file not shown.
Binary file modified addons/medical_gui/data/body_image/arm_right_s.paa
Binary file not shown.
Binary file modified addons/medical_gui/data/body_image/head_s.paa
Binary file not shown.
Binary file modified addons/medical_gui/data/body_image/leg_left_s.paa
Binary file not shown.
Binary file modified addons/medical_gui/data/body_image/leg_right_s.paa
Binary file not shown.
Binary file modified addons/medical_gui/data/body_image/torso_s.paa
Binary file not shown.
31 changes: 31 additions & 0 deletions extras/scripts/medical_dummy_outline.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@echo off
setlocal enabledelayedexpansion

@REM Loop over all arguments
for %%x in (%*) do (
SET final_img=%%~nx_s%%~xx
SET scratch=%%~nx_scratch%%~xx

copy /Y "%%~x" "!final_img!"
copy /Y "%%~x" "!scratch!"

@REM Scale up now and scale back down at the end to smooth everything out
@REM Dilate a little to get the edge offset
magick mogrify -filter spline -resize 200%% ^
-morphology Dilate Octagon:3 ^
!scratch!
@REM Dilate a lot to get the edge thickness
magick mogrify -filter spline -resize 200%% ^
-morphology Dilate Octagon:8 ^
!final_img!

@REM Subtract to get just the edge
magick composite !scratch! !final_img! -compose difference !final_img!

@REM Original picture has alpha values up to 77. Now scale it up to full 255
magick mogrify -channel A -level 1%%,30%% +channel ^
-filter Lagrange -resize 50%% ^
!final_img!

del !scratch!
)

0 comments on commit 6e8a27c

Please sign in to comment.