sketchfab / unreal-plugin

301 stars 39 forks source link

Texture maps are deleted when I restart my Unreal Engine project (4.27 plugin running UE4.27.1) - Read description. #23

Open tldsign opened 2 years ago

tldsign commented 2 years ago

When I download and import objects from the Sketchfab plugin into my Unreal Engine project, everything works fine. All the textures and materials are in their appropriate folders.

However, when I close and restart my project, all texture maps associated with their materials are deleted leaving my materials with missing texture maps. I have tried saving all assets before closing my project, however the issue still persists. Upon further investigation it seems that the texture maps are being saved as temporary files (Look at file path below). Is there something that I am doing incorrectly or a way I could fix this?

"C:/Users/tl/AppData/Local/UnrealEngine/4.27/SketchfabCache/063de1e307b04e4fab96c328a4a58d36__temp/textures/material_normal.png"

wieger65 commented 2 years ago

hello did you manage to solve the problem?

rahilchughtai commented 2 years ago

Im having the exact same issue

python-Developer903 commented 2 years ago

even i am having same issue! please fix it

martin-rushworth commented 2 years ago

Having the same issue, the manual way around it is after you have imported a model, copy the texture image from the appdata folder next to the uasset file in the projects content folder and then edit the textures filepath, not a real solution but if you are stuck!

tldsign commented 2 years ago

Hi, sorry for the late reply - I took a little break from using the sketchfab plugin for UE4 but it looks like this issue still persists.

Similar to @martin-rushworth's workaround, another method is to just duplicate your imported assets from the glTF file (The mesh model and associated textures) and rename them. Then click save all and it should then save to your UE4 project. Hopefully this issue can be resolved soon.

robleslie commented 2 years ago

I just did a video on this specific issue after spending an enormous amount of time on figuring it out. The texture image files are saved inside of a ZIP folder deep inside of your user account in a hidden folder. You can find the path by hovering and seeing the SOURCE FILE path. So before restarting you need to go to the ZIP folder, extract it, then copy the Texture image files to the same folder as the 3D model itself inside the Unreal Engine Project. If that doesn't make sense hopefully the video explains it better. I hope that works and makes sense.

It's essentially what has been said here but with the details for people like myself that need a video visual guide.

https://www.youtube.com/watch?v=iDKhd4rAkN0