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

GLTF for game templates. #52802

Merged
merged 1 commit into from
Oct 4, 2021
Merged

Conversation

fire
Copy link
Member

@fire fire commented Sep 18, 2021

Add a GLTFDocument extension list and an extension for converting mesh instance 3d to the editor mesh node.

Use GLTF module when the editor tools are disabled.

GLTF should work in a game template.

For godotengine/godot-proposals#3305 and also for godotengine/godot-proposals#3273

@Calinou Calinou added this to the 4.0 milestone Sep 18, 2021
@fire fire changed the title Convert GLTF Document to use EditorSceneImporterMeshNode3D. Convert GLTF Document to use EditorSceneImporterMeshNode3D in an extension. Sep 18, 2021
@fire fire force-pushed the gltf-extensions branch 2 times, most recently from ded31fc to fbab48d Compare September 18, 2021 02:32
@fire fire force-pushed the gltf-extensions branch 8 times, most recently from 155f8ba to 3ca60c9 Compare September 18, 2021 05:12
@fire
Copy link
Member Author

fire commented Sep 18, 2021

Blend shapes should work now.

@fire fire force-pushed the gltf-extensions branch 6 times, most recently from f910743 to 437934f Compare September 18, 2021 09:08
@fire fire force-pushed the gltf-extensions branch 3 times, most recently from ce33d12 to b286a10 Compare September 18, 2021 17:09
@fire
Copy link
Member Author

fire commented Sep 18, 2021

  • Need some help debugging why the blendshapes disappear.

@fire fire marked this pull request as ready for review September 21, 2021 15:56
@fire fire requested review from a team as code owners September 21, 2021 15:56
@fire fire dismissed lyuma’s stale review September 21, 2021 16:34

Resolved all issues.

@fire

This comment has been minimized.

@fire fire force-pushed the gltf-extensions branch 5 times, most recently from af83243 to 806bfb8 Compare October 1, 2021 03:33
@fire fire marked this pull request as draft October 1, 2021 23:44
@fire fire force-pushed the gltf-extensions branch 2 times, most recently from ba75f44 to a831fa3 Compare October 3, 2021 17:45
@fire fire marked this pull request as ready for review October 3, 2021 17:58
servers/rendering_server.cpp Outdated Show resolved Hide resolved
Convert GLTF Document to use ImporterMeshInstance3D.

Add a GLTFDocument extension list and an extension for converting the importer mesh instance 3d to mesh instance 3d.

Use GLTF module when the editor tools are disabled.

Modified the render server to be less restrictive on matching blend arrays and have more logging.

Misc bugs with multimesh.

Always index the meshes.
@akien-mga akien-mga merged commit 2a09e11 into godotengine:master Oct 4, 2021
@akien-mga
Copy link
Member

Thanks!

@lyuma
Copy link
Contributor

lyuma commented Oct 4, 2021

Hi, I'm a bit curious why GLTFDocumentExtensionConvertImporterMesh is disabled when not ::Engine::get_singleton()->is_editor_hint()

I don't see any reason why that extension needs to behave differently in the editor vs not.

@reduz
Copy link
Member

reduz commented Oct 4, 2021

@lyuma there are a few things I would change in GLTFDocument and one of them may be getting rid of the GLTF* classes and make them internal structs accessible by index, but I wanted to at least get this merged so it does not block other areas

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

Successfully merging this pull request may close these issues.

5 participants