Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

black squares and ghosts without textures in DX9

Featured Replies

In order to eliminate momentary ugly black squares over airports lighting  I found this
___________________________________________________

"go to the ShadersHLSL folder in your ROOT Flight Simulator X directory, and locate a folder called Common, inside that folder you will find a file called Common.fhx (make a backup of that file so you keep the original) and change the following line:
CODE
dword State_TextureWrap : STATE_TEXTUREWRAP = D3DTADDRESS_WRAP;
to look like this:
CODE
dword State_TextureWrap : STATE_TEXTUREWRAP = 0;
after doing the change, you need to DELETE the shader cache located in C:\Users\YOURUSERNAME\AppData\Local\Microsoft\FSX
__________________________________________________

it works  very well except now all my FS9 planes show as ghosts without textures applied.
Is there a way of combining those two and making a texture visible as well as fixing the ugly black squares?
I am loving your fixer and using it successfully to increase the speed of DX9
TH
Mike

Sim,PC, monitor,prescription glasses, chair.

  • Commercial Member

Hi Mike,

 

My tool is solely for DX10 - I am afraid I don't see how it can influence DX9 in any way.

 

I have no idea what the "fix" you are using is meant to do. Insofar as I can see (there are threads about filled with misleading statements about it) it changes the value of a static variable from 1 to 0.

 

That variable is then used in MaterialDecl.fxh to define how the texture samples handle u,v (texture coordinates) outside the range 0-1

 

The value 1 corresponds to wrap which means that the texture is tiled

 

O is not a valid value - I have no idea what happens - perhaps the texture isn't sampled.

 

If so any objects that have u,v coords in range 1-2 will disappear when the fix is applied. Which is presumably your problem.

 

I would undo the fix and try to alter other fsx.cfg values that might tune texture display. FFTF for example.

 

Steve

  • Author

Steve- thank you for your reply and for the technical explanation but I am not on this level

This post is not necessary about DX10 since I am not using it

I am thinking,you are knowledgeable tinkerer like many of us are, and you will be interested to improve our simulator .


I am not very technical but when I do this fix, that ugly black squares of airport lights that appear for a fraction of a second are not there

it makes for lot better experience

I have pretty decent system and even on that I get a ugly black squares for a moment before airport lighting system appears

 

I thought getting rid of those black squares would be a vast improvement

Sim,PC, monitor,prescription glasses, chair.

that fix works in DX9, where besides getting rid of black squares it also makes some textures invisible (for instance, WOAI planes appear white).

From my experimenting, it has no effect whatsoever when using DX10.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.