Weapon sheathing

Everything about development and the OpenMW source code.
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Weapon sheathing

Post by akortunov »

Is it possible? Or I should add custom bones to skeleton?
Some thoughts:
1. We can show holstered weapons (as in Gothic).
2. We can show rings.

Any suggestions?
Last edited by akortunov on 29 Sep 2018, 11:44, edited 1 time in total.
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Attaching custom mesh to bodyparts

Post by akortunov »

I'll just leave it here:

Image
Image
Image
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Attaching custom mesh to bodyparts

Post by akortunov »

The basic idea: I use the xbase_anim.nif with some custom bones, to which I attach weapon meshes. With default skeleton the game behaves just like a vanilla game.
Works for any NPC.

Is there a chance to merge it upstream, if I'll fully implement it?
User avatar
Berandas
Posts: 96
Joined: 28 Oct 2012, 11:23
Location: Prague, Czech Republic
Contact:

Re: Attaching custom mesh to bodyparts

Post by Berandas »

There was this project for Morrowind, afaik it was never finished. Though quite a lot of assets were made for it actually.
http://www.gamesas.com/extended-sheathing-t377816.html
User avatar
MiroslavXO
Posts: 107
Joined: 13 Feb 2016, 01:07

Re: Attaching custom mesh to bodyparts

Post by MiroslavXO »

I forgot about vanilla skeleton in Morrowind, but basically for shield/sword assets you should have on each hand joint called shield/weapon, so you can constrain them to the hands. It's better if you have separate joints for assets rather then using character skeleton for that. But I don't think it's still posible to have custom rigs, guess that's not supported yet.
User avatar
akortunov
Posts: 899
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Weapon sheathing

Post by akortunov »

https://github.com/OpenMW/openmw/pull/1615

I updated my "weapon sheathing" branch, so resource format is compatible with weapon sheathing feature from MWSE.

Image
User avatar
Amenophis
Posts: 320
Joined: 30 Oct 2011, 04:34
Location: Fortaleza - Ceará - Brasil

Re: Weapon sheathing

Post by Amenophis »

Congratulations! I think mainlining your branch would make some MWSE players take a look at OpenMW now.
User avatar
Thunderforge
Posts: 503
Joined: 06 Jun 2017, 05:57

Re: Weapon sheathing

Post by Thunderforge »

Can we make weapon sheathing an optional feature from the Advanced panel and merge it into master?
User avatar
lysol
Posts: 1513
Joined: 26 Mar 2013, 01:48
Location: Sweden

Re: Weapon sheathing

Post by lysol »

Is there any way the merging of this right now would make stuff problematic during the post 1.0 dehardcoding? Otherwise, it is a neat thing, especially since it already is compatible with a bunch of mods.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Weapon sheathing

Post by Zini »

I'll have a closer look at it sometimes next week.
Post Reply