Introduction to graphics programming at NTNU TDT4195. Forked from https://github.com/pbsds/gloom-rs.
  • Rust 91.5%
  • GLSL 3.2%
  • Makefile 2.4%
  • Nix 1.7%
  • Batchfile 0.6%
  • Other 0.6%
Find a file
2024-10-06 01:55:45 +02:00
report Run typos 2024-08-06 10:36:43 +02:00
resources Add additional helpers. 2024-10-02 16:26:31 +02:00
shaders Add phong lighting 2024-10-04 23:53:30 +02:00
src Cleanup and format. 2024-10-06 01:55:45 +02:00
vendor Add scripts to create the code archive for delivery 2021-08-17 15:18:36 +02:00
.gitattributes Add scripts to create the code archive for delivery 2021-08-17 15:18:36 +02:00
.gitignore Cleanup and lots of comments 2022-08-16 17:14:57 +02:00
Cargo.lock Draw lunar surface! 2024-10-02 18:27:33 +02:00
Cargo.toml Draw lunar surface! 2024-10-02 18:27:33 +02:00
create_code_archive_for_blackboard_LINUX.sh Fix the delivery scripts 2021-10-14 16:24:19 +02:00
create_code_archive_for_blackboard_WINDOWS.bat fix windows properly this time 2023-09-12 10:12:09 +02:00
README.md Add note on network-mounted work areas 2024-08-19 10:47:24 +02:00

Gloom-rs

To get started, make sure you have git, cargo and, rustc installed and available.

git clone https://github.com/pbsds/gloom-rs
cd gloom-rs
cargo run

GLM

We use a variant of GLM known as nalgebra-glm, which differs slightly from the standard GLM library.

Report

You're free to write your report any way you'd like, as long as it is delivered as a PDF file.

To spread the gospel, I have included a pandoc report skeleton in the report folder. To use pandoc, make sure you have pandoc installed along with a supported latex engine. Make sure it works before using it to write your report.

Cybele

If you're using the lab computers in Cybele, you will be using a network-mounted home directory which is subject to both low quotas and high latency. To speed up your work we highly reccomend running the following, to put the build directory in RAM rather than on disk:

test -d target/ && rm -rf target/
ln -s /dev/shm target

Code delivery

We want the following files and folders to be delivered in a ZIP file:

  • resources
  • shaders
  • src
  • Cargo.lock
  • Cargo.toml

Important: Do not include the target folder!

To automatically make an archive (source.zip) ready for uploading to blackboard:

  • Make sure any extra assets or resources you might have added are located in the resources folder
  • Then run either:
    • ./create_code_archive_for_blackboard_LINUX.sh
    • create_code_archive_for_blackboard_WINDOWS.bat.

This zip script will explicitly ignore the target folder, and the following two of the files given as a handout for exercise 3 (just to save space):

  • resources/helicopter.obj
  • resources/lunarsurface.obj