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

Reverse engineer 3D model data #2

Open
Calinou opened this issue Sep 19, 2021 · 0 comments
Open

Reverse engineer 3D model data #2

Calinou opened this issue Sep 19, 2021 · 0 comments
Labels
help wanted Extra attention is needed mvp Required for a working game

Comments

@Calinou
Copy link
Owner

Calinou commented Sep 19, 2021

MDK uses 3D model data for many purposes:

  • Enemies
  • The player during the flying intro and outro sequences (but not during the rest)
  • Pick-up items
  • Sniper projectiles

This data should then be used to generate a Mesh resource using one of Godot's procedural geometry generation classes. The Mesh resource can then be displayed using a MeshInstance node. The texture can then be displayed by adding a SpatialMaterial to this MeshInstance node.

Model animation will need to be displayed somehow. MDK likely uses vertex animations instead of skeletal animation, but I cannot confirm this for sure yet. If vertex animation is used, it can be displayed either by using ImmediateGeometry (which is slow) or by using a vertex shader (which is difficult). If skeletal animation is used, it can be displayed using Godot's usual skeleton node setup which can be created and manipulated at run-time.

@Calinou Calinou added mvp Required for a working game help wanted Extra attention is needed labels Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed mvp Required for a working game
Projects
None yet
Development

No branches or pull requests

1 participant