shensunbo Blog

「离开世界之前 一切都是过程」

blender 常用操作

修改物体本地坐标系原点 进入编辑模式,选中要作为新的原点的点 对齐游标,按 Shift + S → Cursor to Selected 返回物体模式,设置原点:右键 → Set Origin → Origin to 3D Cursor 测量 按住ctrl吸附到点或者边 按住xyz固定坐标轴 给物体增加控制节点 创建一个空物体(empty),移动到合适的...

gtest basic

Matcher 使用 Contains 判断是否包含某个或者满足某种条件的元素 判断 EXPECT_THAT 验证某个值(或对象)是否满足指定的匹配器(Matcher)条件: EXPECT_THAT(actual, matcher)

git 常用操作

stash delete range of stash for i in {24..4}; do git stash drop stash@{$i}; done 临时切换到一个提交节点验证 1 2 3 4 5 git checkout 9f2e90c28f4581270708d112a15ba8795e7ad23c ... git swit...

gerrit

clone git clone –depth 1 –branch master … push normal push git push origin HEAD:refs/for/master push to previous patchset git commit –amend git push origin...

opencv build

build linux version build_ti_linux.sh 1 2 3 4 5 6 7 8 9 10 11 #!/bin/bash source /opt/ospas120-2023.10/environment-setup-aarch64-oe-linux rm -rf build_ti_linux mkdir build_ti_linux cd build_ti_li...

renderer 常见问题

纹理 注意在着色器中区分纹理是单通道还是多通道, 对于ao,specular,Metallic, Roughness 这些贴图,一般是单通道的,如果把单通道纹理当做多通道纹理使用,显示出来的结果会偏红色 可以在linux上使用file命令查看:8-bit grayscale,8-bit colormap(?3通道), 8-bit/color RGB, 8-bit/...

opengl basic

basic pipeline VAO 和 VBO VBO 在GPU中存贮顶点数据等 VAO 描述VBO的属性,如何访问VBO中的数据 EBO 索引缓冲对象 存储 VBO 中顶点的索引, 减少了内存占用和数据传输量 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...

assimp

下载 对于x86版本,可以直接下载release的版本 使用问题 aiProcess_PreTransformVertices flag cause meshes to merge, need manually perform coordinate transformation aiProcess_ValidateDataStructure will automatica...

bazel learn

bazel 基本规则 BUILD 文件: 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 43 44 45 46 47 48 49 // 编译依赖项 cc_library( name = "test"...

将qnx编译方式由qcc修改为gcc

qnx.nto.toolchain.cmake, 在这个文件中 1 2 3 set(CMAKE_C_COMPILER ${QNX_HOST}/usr/bin/qcc) set(CMAKE_CXX_COMPILER ${QNX_HOST}/usr/bin/q++) set(CMAKE_ASM_COMPILER ${QNX_HOST}/usr/bin/qcc) c...