Issue with unit graphics

Leoreth

Blue Period
Moderator
Joined
Aug 23, 2009
Messages
37,054
Location
東京藝術大学
I'm having issues with the graphics for a particular unit. Sometimes you can see infinitely long dark rays come out of the model, looking like this:

Spoiler :
Civ4ScreenShot0397.JPG


I haven't been able to reliably reproduce this, in other situations the model looks fine. I've attached the unit art files, and this is the unit art definition I'm using:
Code:
       <UnitArtInfo>
           <Type>ART_DEF_UNIT_ENGLISH_MAN_OF_WAR</Type>
           <Button>Art/Units/Man-of-War/Button_ManOfWar.dds</Button>
           <fScale>0.21</fScale>
           <fInterfaceScale>0.8</fInterfaceScale>
           <bActAsLand>0</bActAsLand>
           <bActAsAir>0</bActAsAir>
           <NIF>Art/Units/Man-of-War/Man_O_War.nif</NIF>
           <KFM>Art/Units/Man-of-War/Man_O_War.kfm</KFM>
           <SHADERNIF>Art/Units/Man-of-War/Man_O_War.nif</SHADERNIF>
           <ShadowDef>
               <ShadowNIF>Art/Units/01_UnitShadows/FrigateShadow.nif</ShadowNIF>
               <ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
               <fShadowScale>1.1</fShadowScale>
           </ShadowDef>
           <iDamageStates>4</iDamageStates>
           <TrailDefinition>
               <Texture>Art/Shared/water_ship_wake.dds</Texture>
               <fWidth>1</fWidth>
               <fLength>180.0</fLength>
               <fTaper>1</fTaper>
               <fFadeStartTime>.2</fFadeStartTime>
               <fFadeFalloff>0.35</fFadeFalloff>
           </TrailDefinition>
           <fBattleDistance>0.35</fBattleDistance>
           <fRangedDeathTime>0.31</fRangedDeathTime>
           <bSmoothMove>1</bSmoothMove>
           <fAngleInterpRate>720.0</fAngleInterpRate>
           <fBankRate>.3</fBankRate>
           <fExchangeAngle>25.0</fExchangeAngle>
           <bActAsRanged>0</bActAsRanged>
           <TrainSound>AS2D_UNIT_BUILD_UNIQUE_UNIT</TrainSound>
           <AudioRunSounds>
               <AudioRunTypeLoop>LOOPSTEP_OCEAN1</AudioRunTypeLoop>
               <AudioRunTypeEnd>ENDSTEP_OCEAN1</AudioRunTypeEnd>
           </AudioRunSounds>
           <SelectionSound>AS3D_UN_OCEAN_END1</SelectionSound>
           <ActionSound>AS3D_UN_OCEAN_END1</ActionSound>
       </UnitArtInfo>
Can someone look into the model and see if there's anything wrong with it?
 

Attachments

  • Man-of-War.zip
    212.4 KB · Views: 96
Oh, that's very possible, I got the model from History Rewritten originally but both the files and the defines are identical to there so I assume it has the same problem.

Do you (or anyone else) know how to deal with this sort of problem in graphics from Colonization?
 
It is from Col indeed, and we use a similar one in RI as well. The thing with Civ4Col is that all of its units use shaders by default, unlike regular Civ 4 which has both non-shadered and shadered models. Try this and see if it works better for you. Note that there are now two nif files, for the two artdefines entries you should use. The "effect" you see comes from a wrong format of skin partition, as they are different for shadered and non-shadered models in Civ 4.
 

Attachments

  • Man-of-War.zip
    260.4 KB · Views: 145
Great, thanks! I'll give it a try soon.
 
Okay, looks like it works. Thanks again for your help.
 
Top Bottom