wfowler1 / Unity3D-BSP-Importer

A lightweight plugin for importing BSP maps into Unity3D as meshes.
Other
112 stars 17 forks source link

Texture errors #29

Open Winter732 opened 5 months ago

Winter732 commented 5 months ago

Hello I have an issue with BSPimporter almost the same as the “File could not be loaded” issue opened by “amuDev” but I was unable to resolve it.I'm on the unity 2021.3 version and the map does not load. here are my errors issue1

And my parameters issue2

Obviously the files exist, that's why I don't understand should I convert all my vtf files to tga with vtf2tga as in the other case?

Also the materials that convert look like this it's not normal issue4 issue3

Have I misunderstood how to use BSPimporter or is this a bug? I'm new to github and I'm not used to using this type of script, That's why I couldn't solve the issue, I think.

wfowler1 commented 5 months ago

Unfortunately only PNG, JPG or TGA files are supported at the moment. Unity only supports loading PNGs and JPGs on-the-fly, and TGA files needed an extra library. Also the MAT files from Source aren't used currently, this will only look for an image with the name. I don't know how to add support for VTFs without adding a lot of bloat and running into code licensing issues.

I've been considering adding some support for reading MAT files, since they're just text. It would help me set up the Unity materials with a proper shader rather than using the standard for everything. Things to consider.

Winter732 commented 4 months ago

ok, so I'll have to change my VTF files to TGA. Can you give me the name of the extra library so that Unity and BSPimporter can work with TGA files?

wfowler1 commented 4 months ago

It's built-in. Once you've converted the files you should be good to go.

Winter732 commented 4 months ago

I still have the issue I converted all my vtf files to tga but still the same issue the materials are black and yellow as in the pictures. i don't understand, do i need to install something extra for the tga files?

Winter732 commented 3 months ago

UP. Even converting the tga to png still doesn't work. I don't understand, is it the BSP's fault?

Winter732 commented 3 months ago

It seems that the program can't find a texture after checking that it exists, which means that the program doesn't know the real name of the file. For your information, during conversion it was not modified. how to give it the right name? issue5 issue6 issue7 It does exist and can be found in the file used for "Import texture file".