
Editing .nifs in Blender
| View previous topic :: View next topic |
| Author |
Message |
NASSAU

Seaman 
Posts: 215 


4819 Gold -

|
Posted: Sat Mar 24, 2007 4:20 pm Post subject: |
|
|
http://docs.python.org/tut/
Here is everything you wanted to know about python and weren't afraid to ask.
Written by Guido Van Rossum,the creator of Python!
Cheers! NASSAU! _________________ Hooked up and hard over! |
|
| Back to top |
|
 |
Gmatt

Swabbie 
Posts: 61 

 
403 Gold -

|
Posted: Sat Mar 24, 2007 6:44 pm Post subject: |
|
|
Thank you.
I will read them sometime soon as eight now my little bro wants this PC, and and I want to get enough crew on my 6 SotL to go sack some xites.  |
|
| Back to top |
|
 |
Sir W. Raleigh

Seaman 
Posts: 151 

 
4225 Gold -

|
Posted: Mon Jan 07, 2008 12:23 pm Post subject: |
|
|
Okay, I've got one who's sailed off into the sunset (tossing a msg in a bottle to NASSAU jik anyway ) and a couple others who're either too busy, not interested or unwilling to share their secrets so I'm goin' public with this thing again ...
NASSAU, Gmatt, Royfox, and/or ANYONE else who's had ANY SUCCESS AT ALL with import/export of nif to/from Blender, please please PLEASE post here or pm me the following information:
1. Release and version of Blender and/or NifSkope or whatever you used
2. Release and version of Blender and/or NifSkope scripts and Pyffi
3. Any peculiarities, error messages or difficulties encountered and how you solved them.
At present, using current releases, I can no longer import nif geometries at all ... the process faults out with a msg "NiMaterialProperty has no attribute "parent" " during the "complete bone tree" process. I don't recall this happening when I first started messing with these things but I can't remember which release(s) I was using then.
According to the folks at Niftools, disabling bone realignment during skeleton import should preserve links to animation files, and this option is available in later releases of Blender scripts though I don't know yet how helpful it will be. I can import skeleton only with no problem using any of the available options, the fault occurs when I try to import and parent the geometry. I suspect that something is being wrongly identified as a bone that shouldn't be but I've no way yet to determine anything for sure.
At any rate, if you model/animation types out there can help me get a handle on what's going wrong, I'll tackle a possible python solution from this end.
At this time it seems unlikely to me that any complete exchange of another model for the player character will be possible. The player model has a large number of attributes not used on other models, in addition to the differing skeletons (multiple textures and shaders, to name a couple) .
That said, I do think it's entirely within reach to modify the existing model(s), though it may prove to be more work than it's worth. I seem to be the only one still clinging to hope on that score, at least.
Any info anyone can provide is much appreciated. |
|
| Back to top |
|
 |
loki59

Rigger 
Posts: 1067 


24252 Gold -

|
Posted: Mon Jan 07, 2008 1:04 pm Post subject: |
|
|
You can find a lot of info here, http://forums.civfanatics.com/archive/index.php/f-177.html
on import/export of nif to/from Blender. There is a stand alone NIF viewer add on for 3DSMax that can be used to to do some editing as well. http://forums.civfanatics.com/showthread.php?t=163585
You can send Gmatt a PM here and he will answer your questions, as well as at the Civfanatics site where his name is GeneralMatt, he is involved in making many units for CivIV and BTS. You can try sending a PM to Nassau here but he no longer plays SMP! or does anymore work on attempting to mod it. I haven't heard anything from royfox in quite a while but you could try to PM him here also. |
|
| Back to top |
|
 |
Sir W. Raleigh

Seaman 
Posts: 151 

 
4225 Gold -

|
Posted: Mon Jan 07, 2008 1:36 pm Post subject: |
|
|
Thanks Loki, I appreciate the reply.
I've pretty much done all that you suggested, with the exception of the civ4 reference which i'll q.v. earliest. So far I've not got any response from those avenues, which explains the element of desperation in my previous post.
So far I've not found anything that provides the Pirates-specific information I need and I'm just hoping someone some days or weeks from now will check in here and see that someone is still working on this. I'm a patient sort ... |
|
| Back to top |
|
 |
Gmatt

Swabbie 
Posts: 61 

 
403 Gold -

|
Posted: Tue Jan 08, 2008 4:17 am Post subject: |
|
|
Hey, nice to see some interest.
There actually seems to be unlimited possibilities even with the free 3ds Max cutdown version Gmax, with enough work I bet you could change anything.
I relied to your PM. |
|
| Back to top |
|
 |
NassausGhost

Powder Monkey 
Posts: 1 


101 Gold -

|
Posted: Mon Jan 14, 2008 11:26 am Post subject: |
|
|
I got a message straight away from Loki, for Matt and I, however I was not able to respond.
I was busy fighting a virus given to me by the one person that I know that uses Internet Explorer.my attorney..nice.
I'd love to tell you it ended well , but it did not, I in fact ended up wiping my hard drive.
I suppose I should warn you, that though I had uninstalled SMP, prior to this event, all my work was archived on this drive.
While I try to keep copies on most of my current work, I had decided to use the space for something else, so nothing has survived.
Having said that , I will have to agree with Matt, though Blender's involvement in the gamebryo format, has stagnated, Autodesk has opened up some very new and finally, very real possibilities .
Now before this gets away from me , let me be clear what I mean.
Never before was there a chance at solving the animation\ uniform riddle, which has been the bane of total conversion enthusiasts. Now it is my belief that this is no longer so.
Why?, because crucial files had to be imported into a three d program and exported reliably, which blender could not do.
3ds\gmax , does export nif files properly so there is some headway there.
Now...*DISCLAIMER*, am I prepared to back this up? NO!
Please understand, this game no longer interests me, as Loki,and Matt will tell you, I'm much to busy to post on my own site , let alone take on yet another project.
I am Currently,..working on a 'total conversion' mod of a popular game, which will mirror our own little 'storyline\site RPG', in addition to building the actual site , then there's real life ...
Okay, so I'm not into this, that's why I left, just can't keep up,but...
I also remember what is was like being told no it can't be done, I had to try to find out for myself.
Having said all this ,I do believe someone with a little drive and know how can in fact be the first to complete this challenge.
To that end here is the path ahead of you.
Let's say you want to be the Dutch Captain of the Guard , you must already know that close to sixty percent of these files can be re-named ,easily enough.
Even with the armor and fencing shirt upgrades, you should have no problem with 'cloning' the file you want and rename it accordingly.
Now theres the so called reverse files. where the skeleton is facing the wrong way.
If you read the royfox thread you'll see that I corrected that problem, by re-writing (not renaming) the skeleton file to the corresponding animation codes.( see where I turned the span capt of the guard around at the mission)
I did the same thing to accomplish ' Pirate Cavalry' if you look under land combat there is a thread about why we can't have horses,which I had about 95% changed .
But, with gmax you will not have to do this.
Instead these files ,the gov rewards nif, the one where he find's his sister,
the one at the treasure box scene, and the mission., you can load the model\nif into gmax or 3dsmax directly.
Pull the skeleton it's using ,and replace it with the correct ones.
In other words if it's BiP 01 , then rewrite it to ( think it's ) BP01.
Theres about four or five skeletons, and all characters share one of the first three, though only the main character has the last skeleton, which he only uses in the last four files.
BTW..Memory,others will be quick to point out , 43 yr old memories are not as sharp as they use to be ( I refer to my last historical contribution to heated discourse.. ) so I will not attempt to say the names of files I can't remember , that will just generate a wild goose chase for you.
Instead I'll just say that if you attempt to rewrite or attach the Nif models to different skeletons, remember this , the Civ 4 engine and the SMP engine are not written too the same animation codes.
Yes the files sound the same nif to kf, to kfm but, SMP there is another one ( I can't remember the name),
but this file sets the 'mode' of animation and must be changed accordingly in certain files .
Also, KF and KFM are easily rewritten in either a decent text\editor that supports this format ( Editpad pro ,for example) or in nif ,with the plugin for blender scripts.But this is SMP
If you use civ 4 as a learning tool ,you will see it evolved quite a bit and the fourth file is gone, with animation sequence codes written into the supporting kfm, in 'hard code'.
| Quote: | | According to the folks at Niftools, disabling bone realignment during skeleton import should preserve links to animation files, and this option is available in later releases of Blender scripts though I don't know yet how helpful it will be. I can import skeleton only with no problem using any of the available options, the fault occurs when I try to import and parent the geometry. I suspect that something is being wrongly identified as a bone that shouldn't be but I've no way yet to determine anything for sure. | Sir Walter Raleigh
So there it is btw,.... you are correct the files animation is different
So you will not learn much by studying the animation codes of the civ engine.
Instead nifscope ,autodesk,and editpad, should be all you need. If you have understood everything I just said then you have everything you need.
Prior to being able to change certain files ,you would have had to resort to code which is a big no-no, but now , you should be able to take the skeleton, the main character uses in the dance sequence, and where he meets the governor, and the first tavern entrance scene,and 'wrap' a new model around him in gmax,
note you could in fact almost do it completely in nifscope before, however it fails at larger files.
Then that just leaves the shipyard ,and the merchant a.In these two , you must export the moneybag as an object file onto your desk, then import it into the new scene.( note newer versions of nifscope support multiple instances making direct import possible).
Thats it , a lot , I mean a LOT of legwork, and trial and error testing ,but my personal view is if you really want this it can happen.
I do not know if any of this helped, but if you need more information, just holler at me friend Loki, he can see ghosts....
Cheers!
...hey look , the Daring Dane's back a Doctor and married! ..Christian I know where Henry lives......bwa ha ha
PS Sir Walter Raleigh, I should tell you also Matt suggested we invite you to come over with us. My site is currently closed to non-members of our 'Mod Team', however we can always use a good mind , so if you're interested pm Loki for details, He'll set you up a password to log on. |
|
| Back to top |
|
 |
Sir W. Raleigh

Seaman 
Posts: 151 

 
4225 Gold -

|
Posted: Wed Jan 16, 2008 11:25 am Post subject: |
|
|
Well, thank you for that, Sir Willem.
It's regrettable that you've no surviving examples of your earlier work but I see that couldn't be helped.
Being able to compare earlier-version exports to current results may have been useful.
You're right that much has changed since you worked w/ smp, but unless I'm mistaken there are still some issues wrt editing smp nifs in any editor. This wouldn't surprise me, considering that the import/export scripts all come from the same source (Niftools/Sourceforge), but I'm not sure I'm actually doing everything the way I should be. At any rate, no import/export plugin I've yet found faithfully reproduces smp nif structure in Blender or Gmax.
Early on I decided that altering existing models would be far preferable to attempting substitutions or additions, and your expanded description of the work required for the latter reinforces that decision.
The more I look into this the more I'm amazed at how much detail was put into the game and barely utilized, and that only makes me more eager to figure out how to get at it.
Stay tuned ... |
|
| Back to top |
|
 |
Jon Lu Ta

Seaman 
Posts: 149 

 
3465 Gold -

|
Posted: Sun Feb 03, 2008 9:43 am Post subject: |
|
|
I am keeping an eye on this thread. I am most likely way out in the left field on this subject.
But is not the answer to the question at sourgeforce about the numbers relating to where on the page and size of the image?
I point to the parrot mod and the parrot appears in the pedia by using these numbers.
I am looking at doing something simple, before reconstructing characters.
Like it should be easy to make the ponytail longer on the player character head. Right? |
|
| Back to top |
|
 |
Gmatt

Swabbie 
Posts: 61 

 
403 Gold -

|
Posted: Tue Feb 05, 2008 8:38 pm Post subject: |
|
|
Extremely easy to do that, yes. Just import into Blender, or better yet Gmax, stretch the vertices and export out. As long as you just move vertices around, the weight painting (what designates what vertices move with what bones basically) will not be messed up. |
|
| Back to top |
|
 |
Jon Lu Ta

Seaman 
Posts: 149 

 
3465 Gold -

|
Posted: Sat Feb 09, 2008 9:44 am Post subject: |
|
|
| Gmatt wrote: | | Extremely easy to do that, yes. Just import into Blender, or better yet Gmax, stretch the vertices and export out. As long as you just move vertices around, the weight painting (what designates what vertices move with what bones basically) will not be messed up. |
We may be a forsaken bunch, compared to the modding help at Civ4,. I will learn it and figure this out. Since I am familiar with Civ4 also. I can open most files with the tools for civ4. Determination is a value us pirates have. This info here is worth gold, looks like Ill have go plunder Vera Cruz and learn this. Thanks and Ill update ASAP. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|