Talk:Env cubemap

From Valve Developer Community
Jump to: navigation, search

TY to the guy who finished up the entity options for me. was about 4AM in the morning so i figured i needed to go to sleep.

Default

says 0 - default what is the default value?

I think at the moment every game defaults to 128x128. --TomEdwards 01:31, 5 Jan 2007 (PST)

BSP Size Variation

I tried to compile and buildcubemap (in both LDR and HDR) a map with 11 cubemaps configured with the different sizes above the default one, and here are the results so far (the bsp size is 2.4 MB by default) :

  • 64x64 (means 256x256) - BSP: 5.3 MB (0.26 MB per cubemap)
  • 128x128 (means 512x512) - BSP: 15.2 MB (1.16 MB per cubemap)
  • 256x256 (means 1024x1024) - BSP: 58.6 MB (5.11 MB per cubemap)

It almost follows the "double the size, quadruple the weight" rule. The 1024x1024 is really beautiful, but multiplying the weight by 23 is a bit exaggerated for good reflections.

Each cubemap texture contains six different images. Use a zip application to look inside the BSP files. --TomEdwards 12:44, 21 Sep 2008 (PDT)
Yes, I know that. But doubling the resolution of the cubemap is supposed to quadrule its weight. And that's not really the case, it's a bit more greedy. I made this test to try to estimate the size of a BSP without having to compile it each time in full quality with each different resolution of cubemaps. --NykO18 05:06, 22 Sep 2008 (PDT)
Thanks for that test mate, saved me a hell of alot of time :D.
EDIT: Oh and the size depends on the amount of color information in the screenshot taken, just like pressing F5 --Jenkins08 01:39, 28 Oct 2008 (PDT)

HDR cubemaps created even though map doesn't use HDR?

I noticed my map generated HDR cubemaps even though the map is not using HDR. Can I remove those with pakrat, or will that mess anything up? --Pandaboy 02:09, 6 December 2011 (PST)

cubemap size 10 (512x512)

To the guy editing the page saying value 10 = 2048, you're wrong.

To build cubemaps your game resolution needs to be 4x bigger than cubemap size.

Refer to this image as proof

YVlMOC3.png

Wait, but in every game i try, it says the cubemap resolution is 2048x2048. My resolution is not 4x bigger, maybe that's why. Its says something about 4x, but just that '4x'. (valve is still shit for not saying correctly what it needs to be done) --NvC DmN CH (talk) 19:57, 25 January 2019 (UTC)
Yes, for some reason when you build cubemaps, source requires that your screen res is at least four times the res of the cubemap. I don't know why... seems pretty dumb. Loudslappingsounds (talk) 01:41, 26 January 2019 (UTC)
What does it mean by four times bigger, the total area or each dimension? FloraC (talk) 10:50, 19 July 2019 (UTC)
It means each dimension according to the tutorial. FloraC (talk) 13:38, 28 July 2019 (UTC)