Jump to content

Recommended Posts

Posted

I decided to place some trees/objects on my SWUS terrain, and I'm having an issue with them floating on the northern half of the map.

This is a single object, placed on a single tile (sand1).  There is no HeightMap/HeightMapScale associated with this tile in the SWUS_data.INI.

 

In the southern half they sit right on the ground.  In the northern half, they float.

Anyone have any ideas?  I was about to start making .TOD's for the whole map, but not if the objects are floating.

Thanks

img01126.JPG

img01125.JPG

Posted (edited)

Nice to see that you're still working on that terrain, it's awesome!

Here, try the following _data.ini statements for solid and alpha object texture shaders. Notice the ZBufferOffset.

[SolidObjectTextureMaterial]
EffectShaderName=terSolidObject.fx
DepthBufferCheck=TRUE
DepthBufferWrite=TRUE
RenderedInOrder=FALSE
AlphaTestEnabled=FALSE
CullMode=CLOCKWISE
LightEnabled=TRUE
SpecularEnabled=FALSE
EmissiveEnabled=FALSE
FogEnabled=TRUE
AmbientColor=1.000000,1.000000,1.000000,1.000000
DiffuseColor=1.000000,1.000000,1.000000,1.000000
ZBufferOffset=0.000000
BlendOp=BLEND_SRC_ALPHA
NumTextureStages=1
TextureStage[01].TextureName=
TextureStage[01].MipMap=TRUE
TextureStage[01].FilterEnabled=TRUE
TextureStage[01].StageColorOp=TEXTURE_MODULATE_DIFFUSE
TextureStage[01].StageAlphaOp=NO_OP

[AlphaObjectTextureMaterial]
EffectShaderName=terAlphaObject.fx
DepthBufferCheck=TRUE
DepthBufferWrite=FALSE
RenderedInOrder=TRUE
AlphaTestEnabled=TRUE
CullMode=NO_CULL
LightEnabled=TRUE
SpecularEnabled=FALSE
EmissiveEnabled=FALSE
FogEnabled=TRUE
AmbientColor=1.000000,1.000000,1.000000,1.000000
DiffuseColor=1.000000,1.000000,1.000000,1.000000
ZBufferOffset=0.000000
BlendOp=BLEND_SRC_ALPHA
NumTextureStages=1
TextureStage[01].TextureName=
TextureStage[01].MipMap=TRUE
TextureStage[01].FilterEnabled=TRUE
TextureStage[01].StageColorOp=TEXTURE_MODULATE_DIFFUSE
TextureStage[01].StageAlphaOp=TEXTURE

However, it's odd that it happens on half tile. I think the issue may lie elsewhere...

Edited by Menrva
  • Like 1
Posted (edited)
2 hours ago, russouk2004 said:

wasnt this plant problem SWUS?

Nope, that's my TexasASC terrain. Never bothered to fix it. It's just a wrong .TGA assigned to the terrain's tile TOD.

SWUS currently does not have TODs. JSF_Aggie's terrain already looks great, and with TODs additions will look even better!

Edited by Menrva
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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..