Reinventing 3d animations
Imagine your engine has no native animations support and you'd like to animate stuff while keeping the things as simple as possible. I think most modern games use skinned skeletons approach which is versatile but quite complex to implement, so that's probably not what you'd want to do.
For Octohill after some trials I've decided to do something simpler, since all the models in the game are low poly and bones don't really bring a lot of value there. Now, for every animated model I do the following:
- Save base mesh as OBJ model
- For every animation frame, save current vertex positions (like OBJ sequences but with faces/normals/uvs etc omitted)
- Load one single mesh to GPU
- In rendering thread, calculate new vertex positions (by interpolating between frames) of this mesh and update them in GPU
- Render this single mesh for every object that uses the model
This is somewhat similar to the good old morph targets, with multiple frames and instancing on top. While it may seem very simple it actually has very little overhead and allows me to smoothly animate tens of thousands of objects with thousands polygons each, without adding the complexity of the bones and skinning process:
The work is still in progress, but you can expect people, vehicles and trees to be properly animated with the next major update!
Get Octohill Ski Tycoon
Octohill Ski Tycoon
Ski resort planning and management sim
Status | In development |
Author | deuxb |
Genre | Strategy, Simulation, Sports |
Tags | 3D, Atmospheric, Casual, City Builder, Cozy, Singleplayer, ski, Tycoon |
Languages | German, English, Spanish; Castilian, French, Japanese, Russian, Chinese (Simplified) |
Accessibility | Configurable controls, Interactive tutorial |
More posts
- Discord, bugfixes and visual effects11 days ago
- Localization and dark mode update26 days ago
- 0.5 major update is out44 days ago
- Join the public playtest65 days ago
- Steam release announcement! (And major update is out)76 days ago
- AI Pathfinding Overhaul83 days ago
- Prettification update is live!Oct 06, 2024
- Octohill public release and trailer!Sep 14, 2024
Leave a comment
Log in with itch.io to leave a comment.