Closed Pepper-Man closed 1 year ago
Missing materials cause broken uvs since the uvs are dependant on the materials' resolutions. Seems that your configuration is not correct since materials are missing. The configuration can be difficult for 0.x so I would recommend you try the latest beta version which doesn't require any manual configuration anymore.
ahh understood, will try that and report back very new to source modding, I really just need to find a way to get as close to 1:1 source geometry/UVs in blender so that I can port it to another engine
okay so, progress!
I now have textures in blender, however, why does the map geometry (brushes?) not import? This seems to be mostly just props and a few other items. I have everything checked when importing, and the addon seems to detect everything in my Portal install just fine
Try checking console log for any errors and send the logs here.
[Plumber] [WARN] could not discover a game: error deserializing `H:\Steam\steamapps\appmanifest_204120.acf`: missing field `AppState` at line 1, column 1
[Plumber] [WARN] could not discover a game: error deserializing `H:\Steam\steamapps\appmanifest_21130.acf`: missing field `AppState` at line 1, column 1
[Plumber] [WARN] could not discover a game: error deserializing `H:\Steam\steamapps\appmanifest_22380.acf`: unexpected eof at line 23, column 14
[Plumber] [WARN] could not discover a game: io error reading `H:\Steam\steamapps\appmanifest_238320.acf`: stream did not contain valid UTF-8
[Plumber] [WARN] could not discover a game: error deserializing `H:\Steam\steamapps\appmanifest_471710.acf`: missing field `AppState` at line 1, column 1
[Plumber] [WARN] opening filesystem: directory `G:\Steam\steamapps\common\Portal\portal/custom` not found
[Plumber] [WARN] opening filesystem: vpk file `G:\Steam\steamapps\common\Portal\portal/portal_sound_vo_english.vpk` not found
[Plumber] [WARN] opening filesystem: directory `G:\Steam\steamapps\common\Portal\portal/custom` not found
[Plumber] [WARN] opening filesystem: vpk file `G:\Steam\steamapps\common\Portal\portal/portal_sound_vo_english.vpk` not found
[Plumber] [WARN] opening filesystem: directory `G:\Steam\steamapps\common\Portal\portal/custom` not found
[Plumber] [WARN] opening filesystem: vpk file `G:\Steam\steamapps\common\Portal\portal/portal_sound_vo_english.vpk` not found
[Plumber] [INFO] opening file system of game `Portal`...
[Plumber] [WARN] opening filesystem: directory `G:\Steam\steamapps\common\Portal\portal/custom` not found
[Plumber] [WARN] opening filesystem: vpk file `G:\Steam\steamapps\common\Portal\portal/portal_sound_vo_english.vpk` not found
[Plumber] [INFO] file system opened in 0.04 s
[Plumber] [INFO] vmf embedded files path detected as `G:\Steam\steamapps\common\Portal\portal\maps\decompiled\testchmb_a_00_d`
[Plumber] [INFO] importing vmf `G:\Steam\steamapps\common\Portal\portal\maps\decompiled\testchmb_a_00_d.vmf`...
[Plumber] [INFO] vmf imported in 0.92 s
Tried this myself and seems like using "original/split faces" option causes issues. I'm not having any issues with the default "brushes and planes" option. Could be that the other options create vmfs that don't work with my current import algorithm. I could look into if it would be possible to support the other options too sometime, but this would be a very low priority issue since I haven't heard of anyone else having any issues with using the default options of bspsource.
Haha was just about to write, I figured that it is that option thats breaking things. I was using it because that option + the old version of your addon caused a lot of issues with the imported geometry (I need the geo to follow sealed world rules as closely as possible). However this version seems to work perfectly with "brushes and planes", so problem solved!
Thanks for the assistance :)
Describe the bug UVs for Portal 1 maps import in a very broken state, being way too large (100-500x too big), and misaligned between surfaces
To Reproduce Steps to reproduce the behavior:
Expected behavior UVs should match what is seen in-engine
Related files testchmb_a_00_d.zip
Logs
Screenshots Example of issue (textures are applied here, but UV scaling is so large it can barely be seen)![image](https://user-images.githubusercontent.com/44683246/193463509-c93d1c3f-de86-484d-aead-21e17af01f7d.png)
UVs for one face (you cant even see the small "normal" UV space at the origin in the image):![image](https://user-images.githubusercontent.com/44683246/193463546-fc2a10bb-beba-4935-95e1-84d5c507c5fe.png)
UVs scaled down by 0.005:![image](https://user-images.githubusercontent.com/44683246/193463598-0b587cb7-f4d7-4186-8fdc-77c366030306.png)
Example of misaligned UVs:
![image](https://user-images.githubusercontent.com/44683246/193463627-3879de1e-b76f-4b2c-8e1b-fe597d75e1d8.png)
Details: