Skip to content

RIPTIDE-z/Games101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Games101_ASS

  • This is a record of my personal assignments while taking the GAMES101 course

  • Platform

    • Windows+vsc/VS(MSVC编译)+ Cmake +Ninja
  • Environment

    1. EigenMinGWMSVC编译的OpenCV 库(视你编译源代码所使用的编译器而定),个人做法是将库文件路径配置为windows系统环境变量,在顶层CMakelists.txt中指定并在子文件夹使用

  1. 作业5按给出的CMakelists可能报错 ld.exe: cannot find -lubsan: No such file or directory
  • ubsan(Undefined Behavior Sanitizer,未定义行为检测工具)是 GCC/Clang 提供的一种 运行时检测工具,用于在程序运行时捕获 未定义行为(UB, Undefined Behavior)
  • MinGW-w64里的GCC并不带有ubsan
  • 去掉-fsanitize=undefined可正常运行
# target_compile_options(RayTracing PUBLIC -Wall -Wextra -pedantic -Wshadow -Wreturn-type)
# target_compile_options(RayTracing PUBLIC -Wall -Wextra -pedantic -Wshadow -Wreturn-type -fsanitize=undefined)
# target_compile_features(RayTracing PUBLIC cxx_std_17)
# target_link_libraries(RayTracing PUBLIC -fsanitize=undefined)
  1. 作业8需要的RandR库不支持windows,必须在linux系统完成
  • Notice

    1. Eigen库在调试时的可视化需要eigen.natvis文件支持,详细参考Eigen_Note

ASS0

  • 实际上头文件只需要包含<Eigen/Dense>Core是被包含在Dense里的
  • extra.cpp 演示额外的Eigen操作,包括求逆,求转置,叉积,归一化向量

ASS1


ASS2

About

Personal assignments while studying games101

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published