106 Commits

Author SHA1 Message Date
Aaron Suen
029e765a42 Remove backup file 2022-01-22 13:23:22 -05:00
Aaron Suen
c63a188f32 Tighten up frame blend a bit.
Make transitions between animations a little
more crisp.
2022-01-22 13:21:17 -05:00
MisterE123
911eea52eb fix mine and wave animation regression and fix intantaneous rotation of spine bone between animations that made player reverse direction while swtiching beween walk-mine and other animations 2022-01-22 13:16:31 -05:00
MisterE123
d9eafc4a90 fix mine and wave animation regression and fix intantaneous rotation of spine bone between animations that made player reverse direction while swtiching beween walk-mine and other animations 2022-01-22 13:09:44 -05:00
MisterE123
e342add407 fix swim anims on player model 2022-01-22 12:47:19 -05:00
Aaron Suen
d8c4e5bd94 Change head pitch limigs and offsets
- Move the player head up to show neck again.
- Limit down-looking to not collide with bandolier.
- Slide head forward/back while rotating to keep it
  centered atop the neck and appear connected.
2022-01-22 10:47:53 -05:00
Aaron Suen
9464f8d534 Enable frame blending and head pitch
- Pitch player head up/down based on look dir
- Set frame_blend to 0.15, causing 150ms of tweening
  from one animation to another, so player bone
  movement is smooth.
- Enabling frame_blend breaks some parts of the
  anims, but oddly, enabling head pitch control actually
  fixes these...
- Head pitch does not follow lookdir 100%, there is
  some implied use of vertical eye movement balanced
  in, so the player does not look like they're breaking
  their neck at extreme angles.
- Support anims specifying a head pitch offset, e.g.
  for the swimming anims which require the head to
  pitch backward to face forward.
2022-01-22 09:29:09 -05:00
Aaron Suen
c95dd5dd29 Fix bandolier in stand, wave, mine anims
MT seems to have a problem with bones that are not animated
and have exactly 0 rotation, i.e. interpreting this as 180 degrees
(supposedly this is a workaround for some other quirk).  Give
the chest and bandolier bones tiny non-zero rotation adjustments
to trick MT into putting them as close as possible to zero without
triggering this bug.
2022-01-22 08:46:56 -05:00
Aaron Suen
2e2810f8f1 Fix reversed hand UV map 2022-01-22 07:40:02 -05:00
Aaron Suen
a0aff0060c Player model animation updates by MisterE
- Bones reparented
- Most animations rebuilt
- Known issue: bandolier reversed on stand, stand+mine anims
2022-01-22 06:37:38 -05:00
Aaron Suen
34a2562964 Polyfill for player:get_velocity, clean up other hooks
This gets rid of the 5.4+ "deprecated get_player_velocity" warning
and modernizes the code to use get_velocity() everywhere, while
still remaining compatible with 5.3 for now (tested).  The polyfill
had to be on joinplayer because the nc_player_pickup auto-one-time
method of using after() won't reliably patch the player before some
other globalstep tries to read player velocity.

When MT 5.5 is released and 5.3 support ends, the polyfill just
needs to be removed to clean it up.

Also tidied up and consistentized the logging for other hooks.
2021-12-03 08:09:57 -05:00
Aaron Suen
b73d1d1290 Pre-clean-transparent filter on all textures
Some users may use filtering but not have the "clean transparent"
filter enabled in the Minetest engine config.  Bake this filter
into all images to (1) avoid the consequences of this (i.e. black
halos), and (2) possibly speed up startup time (the filter will
converge immediately).
2021-09-23 07:36:21 -04:00
Aaron Suen
d18da1fb59 Disable 3rd person mining anim for disabled slots 2021-08-14 09:51:48 -04:00
Aaron Suen
e2751cb2c3 Player skin leather tone and colors 2021-08-12 07:36:01 -04:00
Aaron Suen
d5233b5f19 Visible bandolier on player skin 2021-08-09 08:24:41 -04:00
Aaron Suen
352fd58339 Revert "Optimize and reorder player skin layers"
This reverts commit 5bb89ebae9af630922af81f895737ce4682ef183.
2021-07-25 14:55:24 -04:00
Aaron Suen
f240bf5990 Revert "Fix singleplayer skin"
This reverts commit c326d24d1b438e4de93c6fa8e2b565ace7cae3ea.
2021-07-25 14:54:47 -04:00
Aaron Suen
9f7598b375 Revert "Remove redundant singleplayer check"
This reverts commit c865746d7fde470a205320f6c79f75b992c67fcc.
2021-07-25 14:54:45 -04:00
Aaron Suen
c865746d7f Remove redundant singleplayer check 2021-07-25 09:59:05 -04:00
Aaron Suen
c326d24d1b Fix singleplayer skin
Handle single player as a special case and use the
default, un-colorized skin.  This should also make
it easier for people to change the SP skin without
having to interact with the colorization system.
2021-07-25 09:58:01 -04:00
Aaron Suen
5bb89ebae9 Optimize and reorder player skin layers
- Put base skin on top so custom skins can more
  easily override colored regions.
- Eliminate redundant texture areas.
- General image optimizations.
2021-07-24 21:48:58 -04:00
Aaron Suen
9a85ddcac9 Remove use of player meta in skins
- This was never known to be used.
- Player meta is only available for online players, so
  this would prevent looking up skins for offline
  players.
- This API arguably needs more overhauling to work
  with offline player properly though (e.g. pass
  player name instead of player object).
2021-07-04 11:31:58 -04:00
Aaron Suen
852f351213 Fix options nil crash 2021-07-03 10:51:50 -04:00
Aaron Suen
448480066e Expand base skins API, player colors in screenshot 2021-07-03 10:35:03 -04:00
Aaron Suen
95f0fb0ee9 Heaviest image compression option 2021-03-09 08:33:58 -05:00
Aaron Suen
410ebd5d8d Recompression using ECT
https://github.com/fhanau/Efficient-Compression-Tool
2021-03-09 08:16:23 -05:00
Aaron Suen
c10e80ef87 Set name in mod.conf as demanded by 5.5+ 2021-03-01 20:10:27 -05:00
Aaron Suen
96cbdc3f25 Fix missed color patch 2021-02-28 21:30:46 -05:00
Aaron Suen
f3febbb6c1 Cache player color textures
The hashing and trig funcs may be a little
expensive, and it's pretty easy to cache the
results.
2021-02-28 14:26:13 -05:00
Aaron Suen
9e9474d25f Wash out colors and rebalance with SP skin 2021-02-28 14:20:18 -05:00
Aaron Suen
8a79633465 Brighten colors to compensate for multiply filter 2021-02-28 14:14:46 -05:00
Aaron Suen
2270f84336 Unique per-player default skin
Colorize player clothes based on a hash of player
name.  This should make it easier to distinguish
players from each other even when you can't see
their names, by remembering clothing colors.

Unfortunately there's no good way currently to
prevent some ugly color combinations, which may
risk incentivizing players to mess with their name
until they get a combination they like, creating a
bunch of junk accounts.  Making colors never
clash (i.e. always matching or complementary
hues) would reduce the variation in colorations,
causing more player color collisions.

Finding a way to ensure colors are "pretty" but
still having enough variation to give each player
name a unique color scheme would be ideal.  Also
there's room for more variations, e.g. adding some
stripes, patterns, emblems, etc. that can be
colorized separately, ideally something visible
from every angle.
2021-02-28 14:09:29 -05:00
Aaron Suen
d712ad3668 Stone brick hints 2020-09-10 23:21:36 -04:00
Aaron Suen
efa2446e42 Add hints for player mods 2020-09-10 22:28:25 -04:00
Aaron Suen
81ccebddc8 Revert player backface culling
Just realized that this breaks certain custom skins,
like WintersKnight's prosthetic arm.  The
performance improvement from culling a handful of
polygons is really nothing compared to the loss of
unique use of transparency in texture art.
2020-07-07 22:47:27 -04:00
LoneWolfHT
762c72315a Fix player model normals 2020-07-06 21:20:12 -07:00
Aaron Suen
8074e0a639 Enable backface culling for players 2020-07-05 17:52:14 -04:00
Aaron Suen
553d67c538 Apply extra "hold" to controls for anim
This effectively "debounces" the controls for
waving and mining anims, so players who
are just doing quick punches like for pummel
will still animate visibly for other players
instead of just a "flickering" of the action.
2020-07-05 09:56:52 -04:00
Aaron Suen
5379c14935 Fix some player visibility bugs 2020-06-23 00:44:54 -04:00
Aaron Suen
b44ad836a3 Fix skin bug, add shirt cuffs 2020-06-23 00:21:17 -04:00
Aaron Suen
cb009e7201 Merge branch 'playerstep' into dev 2020-06-22 23:49:55 -04:00
Aaron Suen
466805da48 Enroll skybox, fix some bugs 2020-06-22 23:17:01 -04:00
Aaron Suen
5648331c9f Replace all perplayer with playerstep 2020-06-22 22:47:33 -04:00
Aaron Suen
4559f92694 Newest player skin by WintersKnight94 2020-06-22 09:59:52 -04:00
Aaron Suen
f514990ea4 Merge more issues from discord. 2020-06-20 10:45:44 -04:00
Aaron Suen
30cb1d2908 Another player skin update by WK 2020-06-19 14:34:00 -04:00
Aaron Suen
8c09305e2c Fix player skin and overlays 2020-06-19 13:46:08 -04:00
Aaron Suen
950dd195ea Revert swimming eye_height changes
This is severely jarring when actually trying
to mine or build in or near water.  We will
just need to find a better solution.
2020-06-18 20:20:58 -04:00
Aaron Suen
fece086b12 New player skin by WintersKnight
Showing off the new layers :-)
2020-06-18 20:15:57 -04:00
LoneWolfHT
058a30d30b Improve wave anim 2020-06-17 21:45:21 -07:00