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

Not able to export a scene #41

Open
Pilzinsel64 opened this issue Jun 2, 2018 · 0 comments
Open

Not able to export a scene #41

Pilzinsel64 opened this issue Jun 2, 2018 · 0 comments

Comments

@Pilzinsel64
Copy link

I am using Assimp Libs v4.1.0, but I also tried v3.3.1 and 3.3.2.

I can't export a scene. I also tried to import an scene and export it withut tuching it.
But It doesn't work.

Here a code that I have tested and failed:

            Dim mdl As Scene = Nothing
            Dim ac As New AssimpContext
            Dim channelIndicies As New Dictionary(Of Material, Integer)

            ac.SetConfig(New Configs.NormalSmoothingAngleConfig(66.0F))
            mdl = ac.ImportFile(fileName, PostProcessPreset.TargetRealTimeMaximumQuality Or PostProcessSteps.Triangulate)

            Dim formatID As String = ""
            Dim myExt As String = Path.GetExtension(fileName).ToLower.Substring(1)
            For Each efd As ExportFormatDescription In ac.GetSupportedExportFormats
                If myExt = efd.FileExtension Then
                    formatID = efd.FormatId
                    Exit For
                End If
            Next

            ac.ExportFile(mdl, fileName, formatID, PostProcessPreset.TargetRealTimeMaximumQuality)

What I do wrong? Or is that a bug?

Please help me!

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