Building Cubemaps

  • If you're asking a question make sure to set the thread type to be a question!

Warren Moonbeam

L1: Registered
Mar 12, 2011
24
2
Me and my brother always seem to have a problem with cubemaps on our custom maps. We build them correctly, they work well on our PCs, but then when we pack up the file with Pakrat and zip it, the cubemaps don't work when others download it. Please help.
 

red_flame586

L420: High Member
Apr 19, 2009
437
122
Did you follow something like this, or did you just do the plain "build cubemaps"

Also, you shouldn't need to packrat cubemaps.

EDIT: you did put cubemap entities in the map, cause I heard somewhere that that may cause some problems when trying to build the cubemaps
 

Surtr

L1: Registered
Mar 12, 2011
31
1
Did you follow something like this, or did you just do the plain "build cubemaps"

Also, you shouldn't need to packrat cubemaps.

EDIT: you did put cubemap entities in the map, cause I heard somewhere that that may cause some problems when trying to build the cubemaps


you don't need to put in cubemap entities?
 

Warren Moonbeam

L1: Registered
Mar 12, 2011
24
2
i DID put cubemap entities, thats what the wiki said to do.
Does this cause problems? When I build without them, does it still work?
 

Fruity Snacks

Creator of blackholes & memes. Destroyer of forums
aa
Sep 5, 2010
6,394
5,571
if you follow how wiki builds it it should work.

Basically:
mat_specular 0
buildcubemaps
mat_specular 1
disconnect
sv_cheats 1
mat_reloadallmaterials
map --- your map name here---


When you go to post map, you need to get the .bsp from the tf/maps folder, not your source folder.
(I think the thing i just said is your issue)
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
Note that the cubemap textures are automatically packed in by the game engine when you build them. It directly modifies the BSP file.
 

Warren Moonbeam

L1: Registered
Mar 12, 2011
24
2
Thanks kind sirs!
I was using the file in sourcesdk_content instead of team fortress 2_tf_maps
Fixed it, it should be good, no more looking like a complete noob. :)