+JSF_Aggie Posted March 14, 2020 Posted March 14, 2020 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 Quote
+Menrva Posted March 14, 2020 Posted March 14, 2020 (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 March 14, 2020 by Menrva 1 Quote
+JSF_Aggie Posted March 14, 2020 Author Posted March 14, 2020 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. 1 Quote
Wrench Posted March 15, 2020 Posted March 15, 2020 were they near Area 51, by any chance??? I mean, just asking ..... 2 Quote
+JSF_Aggie Posted March 15, 2020 Author Posted March 15, 2020 I can neither confirm, nor deny. 3 Quote
+russouk2004 Posted March 15, 2020 Posted March 15, 2020 must be...wasnt this plant problem SWUS? Quote
+Menrva Posted March 15, 2020 Posted March 15, 2020 (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 March 15, 2020 by Menrva 1 Quote
Recommended Posts
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.