lewa-j / Unity-Source-Tools

Plugin to import resources from the Source engine in Unity3D.
GNU General Public License v2.0
109 stars 23 forks source link

No textures loading, only grey grid #40

Open browhattheheck1 opened 4 years ago

browhattheheck1 commented 4 years ago

I'm trying to get in portal maps, and I've extracted everything out of the portal_pak_dir.vpk, but it won't see the textures and spawns in the map with a grey dev material. I have no clue what to do, any help would be appreciated

browhattheheck1 commented 4 years ago

Quick update, its now finding the portal wall texture, but only the portal wall texture. In the warnings it seems to be looking for the wrong texture file names

antim0118 commented 4 years ago

Are you sure you have these textures in your Assets folder? You also need to unpack bsp files.

antim0118 commented 4 years ago

It console says that it misses something like "texture_374_200_284" then you need to unpack bsp files (using pakrat or similar software)

Fronkln commented 4 years ago

I was working on filtering the unwanted numbers on the texture names, might commit in the future.

antim0118 commented 4 years ago

Fronkln, its not unwanted numbers, they reference to cubemaps (as i can remember) that are currently not supported by this importer.

Fronkln commented 4 years ago

Ooh, that's interesting, i made a cubemap importer a while ago but didnt know some materials depended on em

lewa-j commented 4 years ago

Inside bsp pak lump there is some materials with patch type. They can include original materials but replace cubemap. Support for them already implemented here https://github.com/lewa-j/Unity-Source-Tools/blob/master/Assets/Code/Read/VMTLoader.cs#L151 What's missing in auto extraction of bsp pak. So you have to do it manualy. And for portal you need hl2 content too.