Skip to content

MikalDev/babylon-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babylon-model

Babylon animated 3D model rendered at runtime as a sprite in Construct 3.

This is an experiment! PRs and forks very welcome (I am currently more focused on other plugins and projects.)

Known issues

Do not use Worker Mode

Set Project Properties -> Advanced -> Use Worker -> No

Lighting, some objects with PBR materials require high intensity (100), others with non PBR materials require low light intensity (1-5).

Fixed lighting for non PBR materials. Working on PBR texture lighting (the plant example model uses PBR material and requires high light intensity to not be dark)

Mobile performance on Android varies widely

This is likely due to transferring / updating a texture each frame can be slow on Android. A possible mitigation is to make the overall texture smaller (which will mean fewer models supported.) This could be controlled by an initial parameter that applies across all instances.

The intent is to have a 3D model rendered at runtime w/ lighting and camera rotation in a sprite which can be used in a C3 2D or 2.5D (e.g. iso) scene. Once rendered, we can apply the usual C3 effects, z order, position, etc. ACEs.

A simple example would be the look of the older Donkey Kong Country, but instead of pre rendered 3d models changed into sprites, we'll directly use 3D models rendered during runtime, with blended animations, camera and lighting control.

The examples are really rough and the character model is purchased, so do not use it in other projects.

Feature Requests / Bugs

  • Allow multiple instances in original layout to load on start of layout.
  • Check if multiple instances can be loaded in the same tick.
  • Add animation rate / render rate control.
  • X,y,z, rotation of model (instead of only camera)
  • Add control over animation blending mix amount
  • Integrate camera angle and C3 player angle, so player angle can be used directly.
  • Add list of animations in editor (if possible, would need to know the model to be loaded during editor time.)
  • Add control for resolution vs number of models tradeoff
  • DONE Add control of light color (ambient and ground)
  • DONE Add control of light color (specular)

Tech info:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published