Bentheburrito / sacastats

A stat site for Connery's SaCa outfit members. Built with Elixir and Phoenix
MIT License
2 stars 0 forks source link

Dynamic model Rendering #80

Closed dm0896665 closed 2 years ago

dm0896665 commented 2 years ago

This one is a bit bigger in disk space, but I got it as far down as I could with reusing different assets and such. 87 different 3D objects came out to 376 MB on disk space which I don't think is too bad, but let me know what you think.

One of the biggest parts was Male/Female armors. There are five for each faction with one for each sex for all factions except NSO and only one MAX armor for each faction except NSO as they don't have theirs available for download that I could find.

Each weapon also ended up being pretty big as well due to it being technically three objects in one (the gun, sight, and mag) I was able to get away without having a mag on VS with it not looking too bad, but on the rest, it just looked really weird without the mag.

I had to pull in a new data variable for the character, but I don't think it's too bad. It basically just says what the last class the character was using otherwise going off of the profile_id seemed almost random and very confusing.

This will close #47

dm0896665 commented 2 years ago

Yeah so having a load model or not I figured would be a setting that the user could change, but I was thinking settings would be a 1.0.0 thing.

And yes, how I have blender and model.js it is really easy to add/ create custom gear. The downsides to this is file size (depending on if you want custom armors for every class, sex, and faction) and a way for the user to add customization would take a bit of work. I was planning on also adding this for 1.0.0.

Also the page can load before the model and i was thinking about adding a small circle for model loading in case it does take a bit. (I know it would depend on rigs/ internet speeds, but I could only get there to be a missing character if I spammed refresh a lot)