Jump to content

Recommended Posts

Look at

It does not show.....

post-69577-0-72029900-1380599933_thumb.jpg

 

 

The HUD is from SF1,I put it inSF2,so it does not show.And how should I do to make it show?

 

Share this post


Link to post
Share on other sites

Effects in SF2 are shader driven, as opposed to the particle-driven effects in SF1, so they require an effects shader declaration line in the materials statement (such as the following), in the model's avionics.ini file:

 

 
[HUDMaterial]
EffectShaderName=fltHUD.fx
DepthBufferCheck=FALSE
DepthBufferWrite=FALSE
RenderedInOrder=FALSE
AlphaTestEnabled=TRUE
CullMode=NO_CULL
LightEnabled=FALSE
UseLightLevel=FALSE
SpecularEnabled=FALSE
EmissiveEnabled=FALSE
FogEnabled=FALSE
AmbientColor=1.000000,1.000000,1.000000,1.000000
DiffuseColor=1.000000,1.000000,1.000000,1.000000
ZBufferOffset=0
PriorityLevel=1
BlendOp=BLEND_SRC_ALPHA
NumTextureStages=1
TextureStage[01].TextureName=
TextureStage[01].MipMap=FALSE
TextureStage[01].FilterEnabled=TRUE
TextureStage[01].StageColorOp=TEXTURE_MODULATE_DIFFUSE
TextureStage[01].StageAlphaOp=TEXTURE_MODULATE_DIFFUSE

Share this post


Link to post
Share on other sites

Thanks for your help ,but it still does not show


 

Effects in SF2 are shader driven, as opposed to the particle-driven effects in SF1, so they require an effects shader declaration line in the materials statement (such as the following), in the model's avionics.ini file:

 

 
[HUDMaterial]
EffectShaderName=fltHUD.fx
DepthBufferCheck=FALSE
DepthBufferWrite=FALSE
RenderedInOrder=FALSE
AlphaTestEnabled=TRUE
CullMode=NO_CULL
LightEnabled=FALSE
UseLightLevel=FALSE
SpecularEnabled=FALSE
EmissiveEnabled=FALSE
FogEnabled=FALSE
AmbientColor=1.000000,1.000000,1.000000,1.000000
DiffuseColor=1.000000,1.000000,1.000000,1.000000
ZBufferOffset=0
PriorityLevel=1
BlendOp=BLEND_SRC_ALPHA
NumTextureStages=1
TextureStage[01].TextureName=
TextureStage[01].MipMap=FALSE
TextureStage[01].FilterEnabled=TRUE
TextureStage[01].StageColorOp=TEXTURE_MODULATE_DIFFUSE
TextureStage[01].StageAlphaOp=TEXTURE_MODULATE_DIFFUSE

 

Er,it still doesn't show

Share this post


Link to post
Share on other sites

You probably have to add the complete material section  + the reference for it in the HUD section :

 

 

....

 

[HUD]
HUDMaterial=HUDMaterial
....

[HUDMaterial]
EffectShaderName=fltHUD.fx
DepthBufferCheck=FALSE
DepthBufferWrite=FALSE
RenderedInOrder=FALSE
AlphaTestEnabled=TRUE
CullMode=NO_CULL
LightEnabled=FALSE
UseLightLevel=FALSE
SpecularEnabled=FALSE
EmissiveEnabled=FALSE
FogEnabled=FALSE
AmbientColor=1.000000,1.000000,1.000000,1.000000
DiffuseColor=1.000000,1.000000,1.000000,1.000000
ZBufferOffset=0
PriorityLevel=1
BlendOp=BLEND_SRC_ALPHA
NumTextureStages=1
TextureStage[01].TextureName=
TextureStage[01].MipMap=FALSE
TextureStage[01].FilterEnabled=TRUE
TextureStage[01].StageColorOp=TEXTURE_MODULATE_DIFFUSE
TextureStage[01].StageAlphaOp=TEXTURE_MODULATE_DIFFUSE

Share this post


Link to post
Share on other sites

You probably have to add the complete material section  + the reference for it in the HUD section :

 

 

....

 

[HUD]

HUDMaterial=HUDMaterial

....

 

[HUDMaterial]

EffectShaderName=fltHUD.fx

DepthBufferCheck=FALSE

DepthBufferWrite=FALSE

RenderedInOrder=FALSE

AlphaTestEnabled=TRUE

CullMode=NO_CULL

LightEnabled=FALSE

UseLightLevel=FALSE

SpecularEnabled=FALSE

EmissiveEnabled=FALSE

FogEnabled=FALSE

AmbientColor=1.000000,1.000000,1.000000,1.000000

DiffuseColor=1.000000,1.000000,1.000000,1.000000

ZBufferOffset=0

PriorityLevel=1

BlendOp=BLEND_SRC_ALPHA

NumTextureStages=1

TextureStage[01].TextureName=

TextureStage[01].MipMap=FALSE

TextureStage[01].FilterEnabled=TRUE

TextureStage[01].StageColorOp=TEXTURE_MODULATE_DIFFUSE

TextureStage[01].StageAlphaOp=TEXTURE_MODULATE_DIFFUSE

Yeah,So do I...............

Share this post


Link to post
Share on other sites

Still no go ?

It could be that the ini looks for TGA files of a stock aircraft which you do not have, e.g. F-16A Netz from SF2I ...

Share this post


Link to post
Share on other sites

Still no go ?

It could be that the ini looks for TGA files of a stock aircraft which you do not have, e.g. F-16A Netz from SF2I ...

 

I am try again,It be show!And thanks for your help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..