FredTheDino / SMEK

A quake clone, written for educational purpouses
2 stars 0 forks source link

Fix animations #129

Open sornas opened 4 years ago

sornas commented 4 years ago

Rendering animations isn't as robust as we want it to be. The supported formats are limited and we can't really import everything we want to in a meaningful way.

When rendering an animation lighting normals don't work, since we can't average the normals, we need tangent and bi-tangent spaces to be transformed for the normal to work properly.

FredTheDino commented 3 years ago

My current idea for this is to pull in https://github.com/assimp/assimp and use that loading. Unfortunately the python library (https://pypi.org/project/pyassimp/) doesn't really seam to work for me, haven't looked into it that much but we might have to rewrite part of the asset pipeline in C++...