上岸的鱼

心中有光,便可使整个世界升起太阳

在UE4(Unreal Engine 4)中,一维动画混合空间(1D Animation Blend Space)是一种特殊类型的动画资产,它允许你在一个单一参数的基础上进行动画混合。这个参数可以是角色的速度、角色的面向角度等。使用一维动画混合空间,你可以创建一个平滑的动画过渡,这个过渡是基于你选择的参数的变化而变化的。

例如,假设你有一个角色,你想让这个角色在静止、慢跑、快跑之间进行平滑过渡。你可以创建一个基于速度的一维动画混合空间,将速度设置为混合参数。在混合空间的轴上,你可以放置静止、慢跑、快跑的动画。然后,当你的角色的速度改变时,UE4会自动混合这些动画,创建一个平滑的动画过渡。

阅读全文 »

代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

@echo off
set source_folder=%OneDrive%\文档\Obsidian\1-blog
set destination_folder=%OneDrive%\文档\blog\source\_posts

echo Source folder: "%source_folder%"
echo Destination folder: "%destination_folder%"

echo Creating a ZIP archive of the source folder...
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set datetime=%%I
set datetime=%datetime:~0,8%-%datetime:~8,6%
set archive_name=%source_folder%_%datetime%.zip

powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; $src_folder = [System.IO.Path]::GetFullPath('%source_folder%'); $dst_zip = [System.IO.Path]::GetFullPath('%archive_name%'); [IO.Compression.ZipFile]::CreateFromDirectory($src_folder, $dst_zip); }"
echo ZIP archive created: %archive_name%

echo Deleting files in destination folder...

for /r "%destination_folder%" %%f in (*.*) do (
del "%%f"
)

echo Copying files...

for /r "%source_folder%" %%f in (*.*) do (
echo F | xcopy /d /y "%%f" "%destination_folder%"
)

echo Copying completed.
pause

echo Running Hexo commands...
cd %OneDrive%\文档\blog\

call hexo clean
call hexo generate
call hexo deploy

echo Hexo commands completed.
pause


UE引擎经常会出现关闭图形界面后,还有后台进程占用项目内文件的情况。这种情况会导致SVN更新失败。

所以需要先杀掉引擎的进程,然后再更新。

现在有AI帮助写批处理方便多了!!!

阅读全文 »

rm -r running_page/
cd /root/桌面/
git clone https://github.com/yihong0618/running_page.git --depth=1
cd /root/桌面/running_page/
python3 scripts/garmin_sync.py garmin@garmin.com password --only-run --is-cn
python3 scripts/gen_svg.py --from-db --title “Runking run” --type github --athlete “Runking” --special-distance 40 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github.svg --use-localtime --min-distance 1
python3 scripts/gen_svg.py --from-db --title “Runking run” --type grid --athlete “Runking” --output assets/grid.svg --min-distance 20.0 --special-color yellow --special-color2 red --special-distance 20 --special-distance2 40 --use-localtime
python3 scripts/gen_svg.py --from-db --type circular --use-localtime
yarn develop --host 0.0.0.0 --port 8000


一条环形的线,无法首尾相连形成闭环
一条线最前面的点或最后面的点可以与另外一条的最前或最后的点相连

0%