Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add samples #1

Open
neoxeo opened this issue Dec 18, 2024 · 0 comments
Open

Add samples #1

neoxeo opened this issue Dec 18, 2024 · 0 comments

Comments

@neoxeo
Copy link

neoxeo commented Dec 18, 2024

Hi,

Thanks a lot for your great job !!!

Can you add some samples to show how to use Vultaik with 3D library like AssimpNetter (https://github.com/Saalvage/AssimpNetter)
AssimpNetter is fantastic but I havn't find a really good choice to show 3D models. I have tested OpenTK, Silk.Net, SharpDX but your tool seems to have a lot of intersting things.

If you need samples 3D Gltf objects, you can find here : https://github.com/KhronosGroup/glTF-Sample-Models/tree/main/2.0

using System;
using Assimp;
using Vultaik;

class Program
{

static void Main(string[] args)
{
    // Load the GLTF file
    var importer = new AssimpContext();
    Scene scene = importer.ImportFile(@"YOUR_3D_MODEL_PATH", PostProcessPreset.TargetRealTimeMaximumQuality); 

    // Check if the scene was loaded successfully
    if (scene == null)
    {
        Console.WriteLine("Failed to load the GLTF file.");
        return;
    }

    DisplayScene(scene);

}


static void DisplayScene(Scene scn)
{
    // Display the scene with Vultaik
}

}

Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant