Problem building cubemaps [SOLVED]

Avatar
canari
70 Posts
Posted Apr 23, 2012
Hi everyone,

For a reason i still don't catch, after running my map in hammer (Expert mode, full compile both), cubemaps are not built (for exemple, lightbridges aren't reflected on glass vactubes).
I've read carefully the advices in these topics :
http://forums.thinking.withportals.com/mapping-help/improper-slime-water-reflections-t5487-15.html
http://forums.thinking.withportals.com/mapping-help/buildcubemaps-crashes-game-t4828-30.html
but it doesn't seem to work for me...

Anyway, after that, when i start Portal 2 with my map, and then in the console i put the command "buildcubemaps", that works, i mean when i reload my map, the reflects are shown on the tube.

The map is almost ready to be shared with everyone here, and my question is :
Is there an alternative way to build cubemaps once the map is compiled, in order that those built cubemaps are "saved" in the BSP file, and when i share it, people don't have to write "buildcubemaps" in their console to have it work correctly ?
Hope it is understandable (i'm a french mapper, trying to do my best with english)...

Thanks !

Advertisement
Registered users don’t see ads! Register now!
Avatar
iWork925
1,080 Posts
Posted Apr 23, 2012
Replied 3 minutes later
Cubemaps are saved with the map. Just 'buildcubemaps' when you are 100% finished with the map. DONT CHNAGE THE MAP NAME, and share. Its that easy.

P.S: Im not even american and I find your avatar offensive.

Avatar
canari
70 Posts
Posted Apr 23, 2012
Replied 3 minutes later

iWork925 wrote:
P.S: Im not even american and I find your avatar offensive.

Oups, that was not intended, in my mind it was "if only we were in portal, maybe we could have saved lots of people", but you must be right it can be misunderstood, so i delete my avatar before having trouble...

Avatar
canari
70 Posts
Posted Apr 23, 2012
Replied 8 minutes later

iWork925 wrote:
Cubemaps are saved with the map. Just 'buildcubemaps' when you are 100% finished with the map. DONT CHNAGE THE MAP NAME, and share. Its that easy.

In fact i've already tested this :
I ran my map on Hammer
In Portal 2, i put the command "buildcubemaps" (mat_hdr_level 2 ; buildcubemaps ; mat_hdr_level 1 ; buildcubemaps ; mat_hdr_level 0 ; buildcubemaps)
I close Portal 2
Then i copied the BSP file on my second computer with portal 2 installed (like if i shared it)
I play the map on this second computer but the reflects don't appear by themselves...

Any idea ?
PS : thanks for this quick answer !!!

Avatar
Robdon
204 Posts
Posted Apr 23, 2012
Replied 1 hour later
Are you copying the correct bsp file?

When you use buildcubemaps, its changing the one in C:\Program Files (x86)\Steam\SteamApps\common\portal 2\portal2_dlc1

So you have to copy that one, and not from anywhere else.

Rob.

Advertisement
Registered users don’t see ads! Register now!
Avatar
canari
70 Posts
Posted Apr 23, 2012
Replied 40 minutes later

Robdon wrote:
Are you copying the correct bsp file?

When you use buildcubemaps, its changing the one in C:\Program Files (x86)\Steam\SteamApps\common\portal 2\portal2_dlc1

So you have to copy that one, and not from anywhere else.

Rob.

:thumbup:
That's it !
That was my first mistake, copying the BSP from Portal2/maps/
The second mistake was that on my second computer (the one i test with), the game's configuration was on "Low resolution"...

Thanks very much Rob, and iWork925.