ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
658 stars 76 forks source link

[HL2] Buildcubemaps command still is broken #6726

Open Reddbr34 opened 1 day ago

Reddbr34 commented 1 day ago

Instead of not building cubemaps at all like before the update, this time they generate faulty cubemaps, they either are so bright showing some sort of distortion or simply appear as missing texture. image image

misyltoad commented 1 day ago

Works on the maps I have tested with. Any more reproduction steps?

Reddbr34 commented 1 day ago

Works on the maps I have tested with. Any more reproduction steps?

Tried the buildcubemaps command on the map but there were no reflections, then I attempted the old method of deleting the cubemaps from the bsp, and trying again. But then no reflections. Then when my addon was updated, three friends had issues with the cubemaps, two had the distored cubemap, and another had the missing texture cubemap. I had to downgrade my version to build the cubemaps, and then update it again to update the addon.

misyltoad commented 1 day ago

You can't buildcubemaps on a map uploaded to the workshop as the BSP is inside a VPK fwiw.

Reddbr34 commented 1 day ago

You can't buildcubemaps on a map uploaded to the workshop as the BSP is inside a VPK fwiw.

I wasn't building from the workshop. It was on the bsp inside my maps folder.

Reddbr34 commented 20 hours ago

I keep getting this in the console when trying to build cubemaps vtex failed to compile cubemap! Unable to remove f:\steamlibrary f\steamapps\common\half-life 2\hl2\materials\maps\ptbme_01\c-1626_4809_-96.vtf!

megakarlach commented 13 hours ago

I have this issue aswell, in my case here, I built a map for HL2, the game ended up trying to access the wrong "episodic\maps" directory (aka EP1), which ended up causing the game failing to save the built cubemaps.

The workaround is to launch the game with -game hl2, and built cubemap this way.

Also if you are building maps for EP1 and EP2 (or if the maps are located in "episodic/maps" or "ep2/maps", do the same but using -game episodic and -game ep2 (or launch EP1/EP2 on Steam > Tools) respectively, then built cubemaps here.

Reddbr34 commented 5 hours ago

I have this issue aswell, in my case here, I built a map for HL2, the game ended up trying to access the wrong "episodic\maps" directory (aka EP1), which ended up causing the game failing to save the built cubemaps.

The workaround is to launch the game with -game hl2, and built cubemap this way.

Also if you are building maps for EP1 and EP2 (or if the maps are located in "episodic/maps" or "ep2/maps", do the same but using -game episodic and -game ep2 (or launch EP1/EP2 on Steam > Tools) respectively, then built cubemaps here.

This worked for me, I hope this get looked into. Building cubemaps still is a hassle just as the old method.