Aller au contenu

Photo

Making Helm


  • Veuillez vous connecter pour répondre
23 réponses à ce sujet

#1
Antras

Antras
  • Members
  • 5 messages

To make model's i use Blender 2.69 and  Blender Import/Export Plugin (2.6.4). All model's except Helmet's work.

Problem is i don't know how to hide Hair, so this look like :
3yov7.jpg


What i must to do in Blender to hide helm?


(sorry for bad English)

 



#2
Happycrow

Happycrow
  • Members
  • 612 messages

Helmets don't substitute for heads like some other parts do - you'd need to raise the crown of the helmet so that it sits higher than the hair, thus concealing it.

 

Don't think you can do anything for ponytails.



#3
Eguintir Eligard

Eguintir Eligard
  • Members
  • 1 832 messages
There's a helmet hair delete flag I just don't know it

#4
-Semper-

-Semper-
  • Members
  • 2 256 messages

Helmets don't substitute for heads like some other parts do - you'd need to raise the crown of the helmet so that it sits higher than the hair, thus concealing it.

 

as eguintir said. the hair is a separate mesh and will be disabled at runtime through a flag, if the helm is equipped. rjshae should know how the blender exporter handles this part.

 

 

MDBHelmHairHidingBehavior

HHHB_NONE_HIDDEN

HHHB_HAIR_HIDDEN,

HHHB_PARTIAL_HAIR,

HHHB_HEAD_HIDDEN



#5
rjshae

rjshae
  • Members
  • 4 478 messages

as eguintir said. the hair is a separate mesh and will be disabled at runtime through a flag, if the helm is equipped. rjshae should know how the blender exporter handles this part.

 

On import to Blender, the HELM packet becomes a little pyramid-shaped object. One of the surfaces of this pyramid has a texture type that is set based on the MDBHelmHairHidingBehavior type. If you change the texture type for that surface, it is captured on export. In this sense it works much like the WALK mesh.

 

(Sorry that it's not easier to use, but I wanted to get back to modelling rather than spending the rest of my life mastering the Blender scripting interface. :) )



#6
Antras

Antras
  • Members
  • 5 messages

Ok, i Have as you say.

I have pyramid looks like :

n3w09j.jpg

now, try to export this to MDB :

2nqbio7.jpg

And.. don't work. I have only one error in toolset:

2wmh0ea.jpg

 

They just work only when i don't have MDBHelmHairHidingBehavior type in blender, but then i have hair in helm.



#7
rjshae

rjshae
  • Members
  • 4 478 messages

I'm not sure; I'll have to experiment with it.



#8
rjshae

rjshae
  • Members
  • 4 478 messages

@Antras: Okay, I think I've found the problem and have a fix. Could you try the scripts at the link below?

 

nwn2_mdb_2.6.4.1.7z

 

I tested an export then re-import of a helm using these modified scripts; it imported the modified model properly and preserved the value of the helm hair hiding behavior flag. Please let me know if it works for you. Thanks.


  • Antras aime ceci

#9
Antras

Antras
  • Members
  • 5 messages

Good Job! :D They work now! Thanks :)



#10
deserk

deserk
  • Members
  • 63 messages

That's awesome work there. Any chance of releasing it? NWN2 could desperately use more custom armours



#11
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Hello.

It's me.

I was wandering if after all those months you could help me...

I went over everything.

You say the script's supposed to fix

But it ain't done much for me...

 

hello.jpg



#12
jestemwlodek

jestemwlodek
  • Members
  • 94 messages
System.Exception: Type stored with packet is not the same as the type in the packet table
   w OEIShared.IO.MDB.MDBPacket.Load(BinaryReader cReader, MDBFileLoadFlags eFlags)
   w OEIShared.IO.MDB.MDBNamedPacket.Load(BinaryReader cReader, MDBFileLoadFlags eFlags)
   w OEIShared.IO.MDB.MDBSkinPacket.Load(BinaryReader cReader, MDBFileLoadFlags eFlags)
   w OEIShared.IO.MDB.MDBFile.ᐁ(FourCC , BinaryReader , MDBFileLoadFlags )
   w OEIShared.IO.MDB.MDBFile.Open(Stream cStream, MDBFileLoadFlags eFlags, FourCC[] cPacketTypesToLoad)
   w OEIShared.IO.MDB.MDBFile.Open(OEIResRef cResRef, MDBFileLoadFlags eFlags, FourCC[] cPacketTypesToLoad)
   w OEIShared.IO.MDB.MDBFile..ctor(OEIResRef cResRef, MDBFileLoadFlags eFlags, FourCC[] cPacketTypesToLoad)
   w NWN2Toolset.NWN2.NetDisplay.NWN2NetDisplayManager.ᐁ(NWN2CreatureInstance , NetDisplayModel , Boolean )
   w NWN2Toolset.NWN2.NetDisplay.NWN2NetDisplayManager.ᐁ(NWN2CreatureInstance , NetDisplayModel )
   w NWN2Toolset.NWN2.NetDisplay.NWN2NetDisplayManager.UpdateAppearanceForInstance(INWN2Instance cInstance)
   w NWN2Toolset.NWN2.NetDisplay.NWN2NetDisplayManager.HandleAppearanceChange(INWN2Template cTemplate, AppearanceChangeType eType)
   w NWN2Toolset.NWN2.Data.Templates.AppearanceChangedHandler.Invoke(INWN2Template cTemplate, AppearanceChangeType eType)
   w NWN2Toolset.NWN2.Data.Templates.NWN2CreatureTemplate.EndAppearanceUpdate()
   w NWN2Toolset.NWN2.UI.PropertyTabs.NWN2ArmorSetAppearanceTab.ᐉ()
   w NWN2Toolset.NWN2.UI.PropertyTabs.NWN2ArmorSetAppearanceTab.ᐁ(INWN2ArmorPiece , Byte , Boolean )
   w NWN2Toolset.NWN2.UI.PropertyTabs.NWN2ArmorSetAppearanceTab.ᐊ(Object , EventArgs )
   w System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   w System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   w System.Windows.Forms.ComboBox.WndProc(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


#13
rjshae

rjshae
  • Members
  • 4 478 messages

Just to make sure, you were using the latest of the mdb import/export scripts? What did you have the Helm Hair Hiding Behavior flag set to? Did it re-import okay?



#14
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Just to make sure, you were using the latest of the mdb import/export scripts? What did you have the Helm Hair Hiding Behavior flag set to? Did it re-import okay?

 I got the scripts from your link above. i set it to hair_hidden. I got an error on re-import :/



#15
rjshae

rjshae
  • Members
  • 4 478 messages

 I got the scripts from your link above. i set it to hair_hidden. I got an error on re-import :/

 

I'm not sure why those wouldn't work now. Perhaps you could try the latest?



#16
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

I don't want to sound like an idiot, but... how do I update the script? Do I have to reinstall the plug-in somehow?



#17
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Cause I just swapped the files and it doesn't really work - it beheads my characters and doesn't show the helmet model... Also it changed the flag on re-import.



#18
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Wait - nvm I got it to work XD


  • rjshae aime ceci

#19
4760

4760
  • Members
  • 1 204 messages
Out of curiosity: what did you do to get rid of the errors?

#20
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

Nothing really - the beheaded model is something I deliberately did some time ago and forgot about it. As for the flag - I imported the one I wanted from some other model, didn't change the flag nor the name of the pyramid object and just exported the whole thing. Done.



#21
rjshae

rjshae
  • Members
  • 4 478 messages

Okay, so you didn't load the update? Or you did and it still didn't work? I'm just trying to reconcile this with the fact that it worked for Antras and myself. Is it possible the import/export scripts are in a different version of the Blender install directory than the one you're using?



#22
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

I did load the update - the scripts are in the latest version (Y)



#23
rjshae

rjshae
  • Members
  • 4 478 messages

Sorry, I just don't know why it's not working for you. I'll try a few more tests when I have some free time.



#24
jestemwlodek

jestemwlodek
  • Members
  • 94 messages

But I said "nvm I got it to work XD" - I'm creating hairless helmets like a mudaphucka!