rust3ds / citro3d-rs

Rust bindings and safe wrappers for citro3d
https://rust3ds.github.io/citro3d-rs
14 stars 11 forks source link

Example that renders a more complex model #20

Open vivlim opened 1 year ago

vivlim commented 1 year ago

Hi, a couple years ago I was tinkering with citro3d-rs and got to the point of being able to load a model from an .obj file (using obj-rs) and display it with stereoscopic 3d.

I think it'd be pretty nice to have as an example, and I could potentially spend some time reimplementing it on modern citro3d-rs if you're interested. I'm not sure if having a example that uses obj-rs would be too heavyweight though. I also had a variant that just renders a cube at one point.

I also pushed my code to https://github.com/vivlim/citro3d-rs-2021 in case it'd be useful, the readme also links to a video of it running on hardware. The code is a mess in part because I was learning as I went, and then burned out.

Meziu commented 1 year ago

Thanks for the references! The main reason why we haven't made examples for citro3d-rs is that the library is still in an unstable early stage. ctru::services::gfx::Gfx is still getting a lot of changes (such as ctru-rs/#116) and the ecosystem as a whole is not yet in a "releasable" stage, which pushes GPU rendering further down the priority list.

I hope I can work on this personally in the following months. We are always open to contributions, though! 😄

AzureMarker commented 1 year ago

Wow that video is really cool!