Jump to content
Sign in to follow this  
JSF_Aggie

Floating .TOD Object Problem

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

That was it.  My ZBufferOffset under AlphaObject was 2.0.  I set it to 0.0 and the tumbleweeds are ground clamped everywhere.

Appreciate it.

  • Like 1

Share this post


Link to post
Share on other sites

were they near Area 51, by any chance???

I mean, just asking .....

 

 

  • Haha 2

Share this post


Link to post
Share on other sites
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

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