X-Plane / XPlane2Blender

Scenery & Aircraft export addon for Blender and X-Plane
GNU General Public License v3.0
190 stars 67 forks source link

Textures not showing up in xplane 11 WED #703

Open DANNY757 opened 1 year ago

DANNY757 commented 1 year ago

Hello I am having trouble getting my texture for a building to show up in WED. I was able to successfully make a street sign for x plane and that texture showed up. However I tried making a building using the osm street map addon but the textures are not showing up. My texture is 2048 x 2048 so it is in a power of 2. When I do export to an obj file, I can open it in note pad and see the textures are in fact there which is weird that it doesn't show up when I open WED. I am really not sure what I am doing wrong. Thanks for any kind of help. Danny

todirbg commented 1 year ago

Hi, what do you mean exactly by "Textures not showing up"?

  1. The textured object is visible in x-plane(WED) but it is gray in color.
  2. The object(or parts of it) is invisible in x-plane(WED).

If it is 1 then there can be some error in the file path to the texture. You say the texture line is there in the obj, but what is the path to it? Or is the texture in the same folder as the obj? If it is 2 then check your normals. The normals should be pointing out or else the object becomes invisible in sim. There is another catch to that - if the scale of the object in blender is a negative number than the normals look right in blender, but are reversed in x-plane. Apply the scale and then check the normals.

DANNY757 commented 1 year ago

Hi, thanks for the response. Yes it's more like #1 where the object its self shows up but the texture has a gray, black,purple,white pixelated weird look to it. The texture file is in the same folder with the obj file.

todirbg commented 1 year ago

Sounds like a uv map issue. In blender select Object Data Properties( the green triangle(ish) icon in properties tab) and expand UV Maps. Check if you have more than one uv map and which one is selected.

DANNY757 commented 1 year ago

So I selected the green triangle and went into the UVMaps. It just says UVMap with a camera icon next to it nothing else.

todirbg commented 1 year ago

Strange issue. I can't really think of anything else. If possible share a blend file or screenshots of how is the object and export set up. Especially uv maps view, shaders, properties tabs and materials. And screenshots of how it looks in WED and X-Plane can be helpful too.

DANNY757 commented 1 year ago

Hi ok here is a zip file with the .blend file, .obj file and the screenshot from WED. CARGO BUILDING.zip

todirbg commented 1 year ago

It does not like the names of the textures. Replace spaces with underline or otherwise rename them so there are no spaces and it will work.

DANNY757 commented 1 year ago

Aaaah ok I'll give that a go. Thanks

DANNY757 commented 1 year ago

Hi yes that worked perfect. Thank you so much!

DANNY757 commented 1 year ago

Ok I went to the green triangle,clicked UV maps, and it just says UVMap. Should I name that what my texture name is?

On Tue, Aug 9, 2022 at 9:36 AM Todor Radonov @.***> wrote:

Sounds like a uv map issue. In blender select Object Data Properties( the green triangle(ish) icon in properties tab) and expand UV Maps. Check if you have more than one uv map and which one is selected.

— Reply to this email directly, view it on GitHub https://github.com/X-Plane/XPlane2Blender/issues/703#issuecomment-1209392344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2DP4MYCQTNX4TZPBR6723VYJNFPANCNFSM56AGFL4A . You are receiving this because you authored the thread.Message ID: @.***>

todirbg commented 1 year ago

No it is just uv map name for blender use.