cgmath-rs
A linear algebra and mathematics library for computer graphics. (by rustgd)
glium
Safe OpenGL wrapper for the Rust language. (by glium)
Our great sponsors
cgmath-rs | glium | |
---|---|---|
4 | 17 | |
1,101 | 3,384 | |
1.9% | 0.9% | |
0.0 | 8.0 | |
over 1 year ago | about 1 month ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cgmath-rs
Posts with mentions or reviews of cgmath-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-02.
-
Hey Rustaceans! Got a question? Ask here! (31/2022)!
Take a look into math libraries, like glam, nalgebra, and cgmath. I've only used these through game engines, though, so I can't offer per-basis reviews/advice.
-
Any plans for built-in support of Vec2/Vec3/Vec4 in Rust?
But I am writing a Vulkan-based game engine and I use https://crates.io/crates/cgmath extensively. It has vector classes, all the math functions I need, and it even supports a version of swizzling if you activate the feature. Maybe this crate can do what you need?
-
I want to change my point of view by key input in glium.
There's also a good crate which you can use to quickly create the required matrices called cgmath: https://crates.io/crates/cgmath
-
Rendering large 3D tilemaps with a single draw call at 3000 FPS
One great thing about Rust is that the library ecosystem is surprisingly mature, especially considering how young the language is (1.0 was released in 2015). C# also has good libraries, but from my experience it's kinda fiddly to use most open source libraries with Unity, at least without modifications. Rust's ecosystem has some excellent libraries that help with game development, such as noise for procedural generation and cgmath for linear algebra.
glium
Posts with mentions or reviews of glium.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-23.
-
I don't understand how dependencies work
I am trying to follow to this tutorial on glium and I can't even get a window to show up because of what I assume to be a lack of comprehension on my end about how dependencies work.
-
Cargo build feature issue: Building winit problem, says no features specified
Which is blocked, waiting for glium to update: https://github.com/glium/glium/pull/2036
-
OpenGL crates: gl vs glow vs glium
https://crates.io/crates/glium (8 months ago - 925 kB)
-
Questions about Glium framework
The book is a great place to look at https://github.com/glium/glium/tree/master/book And glium itself is a bit outdated might be good to look at alternatives like glow
-
[Media] Visualizing scientific data in rust
Hi rustaceans! I glued this prototype together with vtkio and glium. There are more features that are unsupported than supported at this point, but the code is here if you want to check it out: https://github.com/JeffIrwin/skillet
-
[GLIUM] - how to pass structs as uniforms to shaders
https://github.com/glium/glium/issues/941 is the relevant Glium bug/feature request. Long story short, structs as uniforms aren't supported by Glium's current design, it looks like.
-
should i learn glium?
Should i learn glium (https://crates.io/crates/glium)? i have some experience in opengl (C++) and i would like to use the opengl functionality in the Rust ecosystem.
-
How to abstract OpenGL for future use?
I can recommend https://github.com/glium/glium as a good, safe abstraction. There was a time when I wanted to learn shaders and write complex pipelines with several stages, this library allowed me to learn about the important objects and their responsibilities without having to program the very verbose chunks of code to initialize. I learned the following:
-
Where to find resources to learn OpenGL with Rust ?
Glium is a Rust-y OpenGL wrapper, and its repository contains a discussion that should give you an idea whether this is what you want to use, as well as some tutorial.
-
Workaround for counter that goes out of scope
With a gluim window open, I want to count the number of user clicks and retain the number after the window is closed. In order to keep the program running after the window is closed, I had to change event_loop.run to event_loop.run_return and I think that means all variables will be moved into the closure and my counter goes out of scope.
What are some alternatives?
When comparing cgmath-rs and glium you can also consider the following projects:
nalgebra - Linear algebra library for Rust.
glow - GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
glam-rs - A simple and fast linear algebra library for games and graphics
glutin - A low-level library for OpenGL context creation, written in pure Rust.
rust-gmp
gfx - [maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
Ruma - A set of Rust crates for interacting with the Matrix chat network.
wgpu - Cross-platform, safe, pure-rust graphics api.
rust-GSL - A GSL (the GNU Scientific Library) binding for Rust
learn-wgpu - Guide for using gfx-rs's wgpu library.
blas - Wrappers for BLAS (Fortran)
kiss3d - Keep it simple, stupid 3d graphics engine for Rust.