dwmkerr / dwmkerr/sharpgl

Loading .obj files with textures does not work?

Open
#200 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
804
Forks
294
Avg merge
3d 23h
Merged PRs (30d)
1

Description

I'm trying to follow your samples but it seems basic functionality is not working.

When you do either `SerializationEngine.Instance.LoadScene(path)` or `new ObjFileFormat().LoadData(path)`, there's a crash. This is because `LoadData()` makes a brand new Scene with no gl context, meaning the Scene's gl context is null. Then when loading textures, it crashes because it calls `Texture.Create()` with a null gl context.

Am I missing something? I feel like everyone in the planet would be making this issue if it was actually broken. There's no way for me to pass in a gl context. Also, I can't downgrade to 2.4.4 (before this crash would've existed) because your Serialization nuget package does not go before 3.1.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.