GithubHelp home page GithubHelp logo

embedded-gfx's Introduction

Embedded-gfx

crates.io actions

This is an opengl-like library to draw 3D graphics in an embedded system, built around embedded-graphics.

Features

  • full mvp pipeline with perspective projection
  • point cloud rendering
  • wireframe rendering
  • solid color triangle rendering
  • simple per-triangle lighting
  • mesh transformation
  • mesh loading from stl files

Todo

  • z-buffer
  • per-fragment interpolation
  • proper pipeline for vertex / fragment shading
  • texture mapping ?

Example

You can find a working example in the Rust on M5Stack Cardputer project

https://github.com/Kezii/Rust-M5Stack-Cardputer

output3.mp4

embedded-gfx's People

Contributors

kezii avatar

Stargazers

砸松果 avatar lumi-max avatar Pierre Kisters avatar Scott Mabin avatar Andrea Cavalli avatar

Watchers

 avatar

embedded-gfx's Issues

File not found "Camera"

Thanks for this awesome project!

I just got myself a Cardputer, and your repos are a great source of information. I'm trying to compile this library, but I get the following errors:

error[E0583]: file not found for module `camera`
  --> C:\Users\nick\.cargo\git\checkouts\embedded-gfx-bdb354daebf0fac1\fb41183\src\lib.rs:11:1
   |
11 | pub mod camera;
   | ^^^^^^^^^^^^^^^
   |
   = help: to create the module `camera`, create file "C:\Users\nick\.cargo\git\checkouts\embedded-gfx-bdb354daebf0fac1\fb41183\src\camera.rs" or "C:\Users\nick\.cargo\git\checkouts\embedded-gfx-bdb354daebf0fac1\fb41183\src\camera\mod.rs"
   = note: if there is a `mod camera` elsewhere in the crate already, import it with `use crate::...` instead

error[E0432]: unresolved import `camera::Camera`
 --> C:\Users\nick\.cargo\git\checkouts\embedded-gfx-bdb354daebf0fac1\fb41183\src\lib.rs:1:5
  |
1 | use camera::Camera;
  |     ^^^^^^^^^^^^^^ no `Camera` in `camera`

It seems that the problem is this commit. I'm gonna try depending on an earlier commit for now, thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.