Skip to content

Add an OpenGL-Assimp model loading demo #621

@Perksey

Description

@Perksey

Summary

#619 pointed out that we currently have zero resources demonstrating our Assimp bindings, and because Assimp is usually used with C++ there aren't many resources for the C API which we bind to as is.

We should make a demo model loader using Silk.NET.OpenGL and Silk.NET.Assimp.

In my eyes, this looks like:

  • An ImGui interface allowing you to paste in a file path and load a 3D model (look at examples/CSharp/OpenGL Demos/ImGui and ImGui documentation on how to do this)
  • When the "Load" button is pressed, call into Silk.NET.Assimp and load the model into OpenGL
    • Loads vertices & indices, and can render meshes (triangulation can be done by Assimp)
    • Maybe loads textures if time permits?
  • Use a Camera similar to the ones demonstrated in examples/CSharp/OpenGL Tutorials to explore the model
    • However, we'll need a button which will unload the model, put the mouse cursor back into normal mode, and bring the ImGui UI back up again so we can load another model

Resources to Get You Started

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions