Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Modding Tutorials & Reference

Notices

Reply
 
Thread Tools
Old Mar 21, 2006, 05:29 PM   #21
nautil
Warlord
 
nautil's Avatar
 
Join Date: Feb 2006
Location: israel,ashdod
Posts: 121
Great tutotial ! thank you.
Just say please why is it necessary to modify (unitname)FX files either ? i did all my airplanes only by modifying main nif file, and it seems all worked ok.
And one more question, i just finished modeling Chinook helicopter, the one with two rotors, and as usual was hoping to attach it to gunship animation. But something weird happens, although in NIF viewer after i change position of propellers everything looks ok , in game this proppellers appear where it originally was , as if nothing affected its position... Hace you encountered such thing before ? maybe you know how to solve this problem? Thank you very much in advance
__________________
hate abstruse sentences and quotations often used as signatures of whose attempting to appear smarter simplicity is the key

My models:

Models in development:
Aircraft: SR-71 Blackbird, PE 8 ?( russian bomber) , Tu-160, B-52 ? , Comanch (helicopter), Black Hawk (helicopter), He 162, Me 262, Gotha Go 244, U2,MiG 9, MiG 19 , MiG 23 , MiG 29, MiG 31 , F-22 Raptor, F-18 Hornet, F-15 Eagle , LaGG-3 , Yak-1 , P-40 , Macchi 202 , Albatros, Fokker DR1 Various WWII aircrafts.
Land Vehicles: , Hummer ? , BTR , BMP , T-80 , Катюша and many more...

Last edited by nautil; Mar 21, 2006 at 05:58 PM.
nautil is offline   Reply With Quote
Old Mar 21, 2006, 05:55 PM   #22
Rabbit, White
aka 2late2die
 
Rabbit, White's Avatar
 
Join Date: Dec 2005
Location: Toronto
Posts: 1,836
Quote:
Originally Posted by nautil
Great tutotial ! thank you.
Just say please why is it necessary to modify (unitname)FX files either ? i did all my airplanes only by modifying main nif file, and it seems all worked ok.
It's probably not strictly necessary but the way I see it, there must be a good reason for these FX files so if I'm modifying an existing unit then I should stick with the structure/hierarchy as well (just like I prefer to keep the same names for the files even though they can be renamed when saved).

I think the FX files have something to do with team colors. I haven't checked it but do your units have team color working? (mind you not like I could make it work even with the FX files but then again I haven't looked too deeply into that ).
__________________
The presence of those seeking the truth is infinitely to be preferred to those who think they've found it.
-- From Monstrous Regiment by Terry Pratchett


My Units Library thread - Last updated on July 15, 2006 - How to add units, a guide.

TUTORIALS > Exporting models from 3DS MAX into Civ IV > NIF Viewer Tutorial - Part 1 > Part 2 > Part 3
MISC. GRAPHICS > Spells Promotions > Tech Icons > WH40K Tech Icons > Great Generals' Portraits > GuildWars based buttons > New Wonders
Rabbit, White is offline   Reply With Quote
Old Mar 21, 2006, 10:35 PM   #23
nautil
Warlord
 
nautil's Avatar
 
Join Date: Feb 2006
Location: israel,ashdod
Posts: 121
Quote:
Originally Posted by nautil
Great tutotial ! thank you.
And one more question, i just finished modeling Chinook helicopter, the one with two rotors, and as usual was hoping to attach it to gunship animation. But something weird happens, although in NIF viewer after i change position of propellers everything looks ok , in game this proppellers appear where it originally were , as if nothing affected its position... Hace you encountered such thing before ? maybe you know how to solve this problem? Thank you very much in advance
i'm sorry, but you appearenlymissed one of my question, so i'll repeat it ( see quote)
__________________
hate abstruse sentences and quotations often used as signatures of whose attempting to appear smarter simplicity is the key

My models:

Models in development:
Aircraft: SR-71 Blackbird, PE 8 ?( russian bomber) , Tu-160, B-52 ? , Comanch (helicopter), Black Hawk (helicopter), He 162, Me 262, Gotha Go 244, U2,MiG 9, MiG 19 , MiG 23 , MiG 29, MiG 31 , F-22 Raptor, F-18 Hornet, F-15 Eagle , LaGG-3 , Yak-1 , P-40 , Macchi 202 , Albatros, Fokker DR1 Various WWII aircrafts.
Land Vehicles: , Hummer ? , BTR , BMP , T-80 , Катюша and many more...
nautil is offline   Reply With Quote
Old Mar 22, 2006, 07:55 AM   #24
Rabbit, White
aka 2late2die
 
Rabbit, White's Avatar
 
Join Date: Dec 2005
Location: Toronto
Posts: 1,836
Oh no no, don't go all sneaky on me - you originally posted the question at 7:29 and I answered at 7:55, and then you added the second question at 7:58 (after I answered the first) so technically I didn't miss it.

Anyway, to answer the second question, no I never encountered a case where I moved something in NIF file but it didn't appear in the right position in the game. To be fair though, the only experience I have working with rotors from vanilla units is for the p-51 I did a while back, you've much more experience with that.

The only thing I can think of is that it's possible that the animation that controls the rotor tells it to "go to these coordinates and rotate there", and no matter where you put it originally it will always go there. However, you did make these work with the other helicopter didn't you? And you made it work with the planes, so I don't know why this case should be any different.

Heck, maybe it's something as simple as forgetting to copy the updated file or just calling the wrong one in the xml, that happens sometimes.
__________________
The presence of those seeking the truth is infinitely to be preferred to those who think they've found it.
-- From Monstrous Regiment by Terry Pratchett


My Units Library thread - Last updated on July 15, 2006 - How to add units, a guide.

TUTORIALS > Exporting models from 3DS MAX into Civ IV > NIF Viewer Tutorial - Part 1 > Part 2 > Part 3
MISC. GRAPHICS > Spells Promotions > Tech Icons > WH40K Tech Icons > Great Generals' Portraits > GuildWars based buttons > New Wonders
Rabbit, White is offline   Reply With Quote
Old Mar 22, 2006, 09:16 AM   #25
woodelf
Bard
 
woodelf's Avatar
 
Join Date: Jun 2003
Location: Gallery
Posts: 15,001
Quote:
Originally Posted by seZereth
Do it, baby. and to woodelf, now you have your chance to attach your moonhelmet and oxygenpack to any unit by yourself !

Give it a go! START THE REVOLUTION
I finally come across this.

This is on my to-do list of learning. There are so many possibilities of adding/subtracting meshes that this has to be learned. Thanks for the Tutorial Rabbit.
woodelf is offline   Reply With Quote
Old Mar 22, 2006, 02:57 PM   #26
seZereth
FfH´s art monk(ey)
 
seZereth's Avatar
 
Join Date: Feb 2006
Location: Bayreuth
Posts: 3,900
Images: 1
i found out, that when i did the dwarf and attached the helmet (not on unit) only to the swordsman.nif file, then it wouldnt appear in game (only with the _fx.nif !)

Btw, that Rotation is more complex than these matrices... it doeas wierd things to animation,...
__________________

The Art monk(ey)`s Laboratory: my Unit Library not updated for a longer time now, but: ...teaser of my work in progress
Fall from Heaven II still on my crusade to replace every unit with unique art...
"People might get tired of crack or heroine. Not of FFH2." - Xenokite
Aftermath mod... survive the nightmare
Mad Max Fury Road ... post apocalytic warfare.
The new Warhammer Fantasy Battles mod finally here, come and test with us.. teaser pic
seZereth is offline   Reply With Quote
Old Mar 22, 2006, 03:45 PM   #27
Rabbit, White
aka 2late2die
 
Rabbit, White's Avatar
 
Join Date: Dec 2005
Location: Toronto
Posts: 1,836
Well there you go. I guess it's just a matter of checking what works - if the unit works with only the default nif file then great, but sometimes the _fx one is also needed.

As far as rotating anything that's animated, yeah that's tricky and usually just messes up the model. First of all bones often have restrictions and dependencies, what's more often times when you rotate a bone system, each bone rotates independently on its axis, essentially breaking up the structure.
__________________
The presence of those seeking the truth is infinitely to be preferred to those who think they've found it.
-- From Monstrous Regiment by Terry Pratchett


My Units Library thread - Last updated on July 15, 2006 - How to add units, a guide.

TUTORIALS > Exporting models from 3DS MAX into Civ IV > NIF Viewer Tutorial - Part 1 > Part 2 > Part 3
MISC. GRAPHICS > Spells Promotions > Tech Icons > WH40K Tech Icons > Great Generals' Portraits > GuildWars based buttons > New Wonders
Rabbit, White is offline   Reply With Quote
Old Mar 22, 2006, 07:09 PM   #28
Sleeping_Dragon
Chieftain
 
Join Date: Mar 2006
Posts: 24
This is great and I understand every thing but....Where are all the .nif files.
Sleeping_Dragon is offline   Reply With Quote
Old Mar 22, 2006, 09:02 PM   #29
J_Period
gone :(
 
J_Period's Avatar
 
Join Date: Feb 2006
Location: Denver, CO, USA
Posts: 385
Quote:
Originally Posted by Sleeping_Dragon
This is great and I understand every thing but....Where are all the .nif files.
Have you unpacked your art files? They're in there
J_Period is offline   Reply With Quote
Old Mar 23, 2006, 01:06 PM   #30
Sleeping_Dragon
Chieftain
 
Join Date: Mar 2006
Posts: 24
Oh! I forgot to do that! Thanks. I feel stupid.
Sleeping_Dragon is offline   Reply With Quote
Old Mar 25, 2006, 08:55 AM   #31
Sevo
Leaf on the Wind
 
Sevo's Avatar
 
Join Date: Nov 2005
Location: Chicago, IL
Posts: 511
Rabbit...Awesome work. You realize this will work on leaderheads, too, right? This combined with the fact that leaderhead anim files can be swapped...

My next mod release is going to utilize that little fact...oh yes...oh yes...mwahahahahahahaha.

sorry.
Sevo is offline   Reply With Quote
Old Mar 25, 2006, 08:57 AM   #32
Rabbit, White
aka 2late2die
 
Rabbit, White's Avatar
 
Join Date: Dec 2005
Location: Toronto
Posts: 1,836
Quote:
Originally Posted by Sevo
Rabbit...Awesome work. You realize this will work on leaderheads, too, right? This combined with the fact that leaderhead anim files can be swapped...

My next mod release is going to utilize that little fact...oh yes...oh yes...mwahahahahahahaha.

sorry.
Heh, I haven't actually thought of that. I guess that means you'll be able to add hats and beards and what not to them. Can't wait to see what you'll come up with.
__________________
The presence of those seeking the truth is infinitely to be preferred to those who think they've found it.
-- From Monstrous Regiment by Terry Pratchett


My Units Library thread - Last updated on July 15, 2006 - How to add units, a guide.

TUTORIALS > Exporting models from 3DS MAX into Civ IV > NIF Viewer Tutorial - Part 1 > Part 2 > Part 3
MISC. GRAPHICS > Spells Promotions > Tech Icons > WH40K Tech Icons > Great Generals' Portraits > GuildWars based buttons > New Wonders
Rabbit, White is offline   Reply With Quote
Old Mar 27, 2006, 09:22 AM   #33
Ploeperpengel
academic precarity
 
Ploeperpengel's Avatar
 
Join Date: Feb 2006
Location: Berlin
Posts: 4,748
And you say it's a small thing scaling ninodes

think C.Rohlands spearman already looks more orcish




any idea how to make him lean more forward without destroying all proportions of his back in the viewer?
__________________
Fall from Heaven II (Forum) (Website)
Ploeperpengel is offline   Reply With Quote
Old Mar 27, 2006, 09:47 AM   #34
Sevo
Leaf on the Wind
 
Sevo's Avatar
 
Join Date: Nov 2005
Location: Chicago, IL
Posts: 511
Quote:
Originally Posted by Ploeperpengel
And you say it's a small thing scaling ninodes
Holy smokes! Never occured to me...but such a simple thing to do...

Unfortunately, the swapping of shapes across leaderheads hasn't worked yet...keeps crashing the editor. But I've still managed to create some pretty amazing new leaderhead looks...
Sevo is offline   Reply With Quote
Old Mar 27, 2006, 09:53 AM   #35
Rabbit, White
aka 2late2die
 
Rabbit, White's Avatar
 
Join Date: Dec 2005
Location: Toronto
Posts: 1,836
Nice

As for leaning forward - you could try turning the upper torso a bit down (it's either spine or spine1 node). The problem here is you'll have to do deal with small angles - first you'll need to figure out around which axis you need to rotate it, and then use the proper matrix for that axis and calculate the proper matrix entries using sine and cosine. It's tricky to say the least, so good luck with that.
__________________
The presence of those seeking the truth is infinitely to be preferred to those who think they've found it.
-- From Monstrous Regiment by Terry Pratchett


My Units Library thread - Last updated on July 15, 2006 - How to add units, a guide.

TUTORIALS > Exporting models from 3DS MAX into Civ IV > NIF Viewer Tutorial - Part 1 > Part 2 > Part 3
MISC. GRAPHICS > Spells Promotions > Tech Icons > WH40K Tech Icons > Great Generals' Portraits > GuildWars based buttons > New Wonders
Rabbit, White is offline   Reply With Quote
Old Mar 28, 2006, 10:37 AM   #36
caramac
Chieftain
 
caramac's Avatar
 
Join Date: Mar 2006
Location: Scotland
Posts: 29
Hi, great tutorial. It really was simple to understand.

However, I was wandering if there was any way you could actually 'draw' on the textures with paint or some other program. I really would like to be able to change the skirt on the swordsman to be tartan to go with my Scottish Civ mod currently under construction.

I got the idea of this maybe being possible after thinking about the 'Sims Creator' that came with Sims 1 as the skins are laid out flat and you could draw on them.

I know this probably isn't possible with the units from Civ 4 but any ideas on anything similar would be very helpful.
caramac is offline   Reply With Quote
Old Mar 28, 2006, 03:18 PM   #37
Ploeperpengel
academic precarity
 
Ploeperpengel's Avatar
 
Join Date: Feb 2006
Location: Berlin
Posts: 4,748
Do you have an idea why the head is still in quite a normal position in the game after I moved it in front of the breast of the model in the viewer in both nif and fx? I get a lovely hunch for an orc in the viewer but doesnt show
__________________
Fall from Heaven II (Forum) (Website)
Ploeperpengel is offline   Reply With Quote
Old Mar 28, 2006, 05:25 PM   #38
Rabbit, White
aka 2late2die
 
Rabbit, White's Avatar
 
Join Date: Dec 2005
Location: Toronto
Posts: 1,836
Quote:
Originally Posted by caramac
Hi, great tutorial. It really was simple to understand.

However, I was wandering if there was any way you could actually 'draw' on the textures with paint or some other program. I really would like to be able to change the skirt on the swordsman to be tartan to go with my Scottish Civ mod currently under construction.

I got the idea of this maybe being possible after thinking about the 'Sims Creator' that came with Sims 1 as the skins are laid out flat and you could draw on them.

I know this probably isn't possible with the units from Civ 4 but any ideas on anything similar would be very helpful.
Well the skins of the characters are laid out flat in the the texture files (for swordsman that would be swordsman_128.dds). The trick however is to figure out which part of the image goes on which part of the unit. It's easier with human units, for example it's immediately obvious where the sword is drawn, and the skirt, and the face of course. For any part you're not sure about just add some sort of a clear marker (i prefer an arrow) that clearly stands out from the rest of the image (this is of course working with a copy of the original texture ), and in game take a look where it appears. Once you know what goes where it's easy to reskin units.

Quote:
Originally Posted by Ploeperpengel
Do you have an idea why the head is still in quite a normal position in the game after I moved it in front of the breast of the model in the viewer in both nif and fx? I get a lovely hunch for an orc in the viewer but doesnt show
I think I encountered something like this before. My best guess is that when you're trying to mess around with positions and orientations of bones, some (or most likely all) of them are getting overridden by the animations. Essentially the animation sets (in the process of playing through) the absolute position/orientation of objects, or in this case vertices of the model which are skinned to the bones. So regardless of where you positioned the bone, it will always appear in the same position in the game.

Attached objects, such as swords and shields, are controlled relatively to the dummy object or bone they are attached to, that's why we can adjust their position/orientation to better fit to the model.

The way to go around this limitation is to create your own head (or use one created by someone else). Rescale the head node to something like 0.0001, attach the new head and scale it up to 1000 to compensate for the 0.0001 scale. Position and orient it according to your needs (the orientation will be hell btw ) and that should do it. This works because you're attaching the head like a sword as oppose to skinning it to the bones (like the original head).
__________________
The presence of those seeking the truth is infinitely to be preferred to those who think they've found it.
-- From Monstrous Regiment by Terry Pratchett


My Units Library thread - Last updated on July 15, 2006 - How to add units, a guide.

TUTORIALS > Exporting models from 3DS MAX into Civ IV > NIF Viewer Tutorial - Part 1 > Part 2 > Part 3
MISC. GRAPHICS > Spells Promotions > Tech Icons > WH40K Tech Icons > Great Generals' Portraits > GuildWars based buttons > New Wonders
Rabbit, White is offline   Reply With Quote
Old Mar 28, 2006, 05:57 PM   #39
Ploeperpengel
academic precarity
 
Ploeperpengel's Avatar
 
Join Date: Feb 2006
Location: Berlin
Posts: 4,748
Will this head have animation? I suppose not right?
__________________
Fall from Heaven II (Forum) (Website)
Ploeperpengel is offline   Reply With Quote
Old Mar 28, 2006, 05:58 PM   #40
Sevo
Leaf on the Wind
 
Sevo's Avatar
 
Join Date: Nov 2005
Location: Chicago, IL
Posts: 511
Rabbit et. al, I just did this one and had to share. This leaderhead is for a collaborative civpack a few of us will be releasing very shortly. Following the hints and tips in this thread, I took a spear from a Spearman and transferred it to Julius Caeasar's nif file. Once there, I placed it under his torso node so it would inherit all of the animation from that node, and I positioned it were you see it, on his back there. Then I reskinned him, and voila'! An Iroquois Chief. The really, really cool thing that you can't tell from this still is that the spear actually moves with his body when he moves, so it absolutely looks like it's attached to his back! I've done some cool stuff resizing inodes now on other leaderheads, too--it gives them a distinct feel.

Thanks to everyone in the thread for ideas on this one! (I hope I've tempted some of you to download the upcoming civpack as well! Keep your eyes peeled...)

Sevo is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Modding Tutorials & Reference > [TUTORIAL] [TUT] Using NIF Viewer to edit units (long)

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[TUTORIAL] [TUT] NIF Viewer Tutorial - Part 2 Rabbit, White Civ4 - Modding Tutorials & Reference 12 Jan 31, 2009 10:28 PM
Nif Viewer Glitch....HELP!!! GarretSidzaka Civ4 - Creation & Customization 14 Jun 13, 2008 04:01 PM
Nif Viewer error Paasky Civ4 - Creation & Customization 16 Apr 03, 2007 09:43 AM
[TUTORIAL] [TUT] NIF Viewer Tutorial - Part 3 Rabbit, White Civ4 - Modding Tutorials & Reference 34 Mar 15, 2007 12:58 AM
Nif Viewer Problem C.Roland Civ4 - Creation & Customization 10 Sep 29, 2006 03:53 PM


Advertisement

All times are GMT -6. The time now is 12:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR