Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/archive/global.php(40) : eval()'d code on line 2
Something hidden is screwing up my skybox [Archive] - TF2Maps.net Forums

PDA

View Full Version : Something hidden is screwing up my skybox


forthex
09-01-2008, 06:13 AM
Recently, when working on my map, I noticed this error:


Creating default LDR cubemaps for env_cubemap using skybox materials:
skybox/sky_hydro_01*.vmt
! Run buildcubemaps in the engine to get the correct cube maps.
Creating default HDR cubemaps for env_cubemap using skybox materials:
skybox/sky_hyrdo_01*.vmt
! Run buildcubemaps in the engine to get the correct cube maps.


I ran buildcubemaps in tf2's console and low and behold, I get this:


] buildcubemaps
Current mod isn't in a subdirectory of "game"!
*** Error: Skybox vtf files for sky_hydro_01 weren't compiled with the same size texture and/or same flags!
Can't load skybox file sky_hydro_01 to build the default cubemap!



I did a search and read that some of the TF2 skybox textures are misshaped or don't line up or something and can cause this error without any real effect on the map. Fine. So I found an earlier copy I saved, that I clearly remember had no errors, and loaded it up, the same problem occurs; I get a skybox error and an in game buildcubemap error, with any skybox.

So I make a test map to see if it's all across the board. I make a 640x640x256 concrete textured brush, make it hollow at 2 thickness. Then I make a 768x768x384 brush with the skybox, hollowed out at 2 units thick. I place an info_player_teamspawn and an env_cubemap and compile the map. I get the "run buildcubemaps in engine" error, run the map, run buildcubemaps and it works.

I'm really stuck, and I don't want to start over. Any help would be appreciate it! Oh, and I'm not using any model textures.

nossie
09-01-2008, 07:57 AM
im pretty sure u can ignore that error.. its valves vault they forgot to build cubemaps for the skybox (i think) i only skimmed it as my dad is yelling at me to go to bed best to get another answer tho

forthex
09-01-2008, 11:20 AM
but, isn't is a problem that I still can't build by own cube maps using the buildcubemaps console command? Or am I reading it wrong, and it's just telling me that it can't find a default cube map, and it just makes it's own anyway?

MrAlBobo
09-01-2008, 12:44 PM
the skybox error means basically nothing...
and about the cubemaps error, it may seem obvious...but have you placed env_cubemaps in your map?
If you do have cubemaps, ive sometimes seen the buildcubemaps command give me that error while tf2 is running in a window at a lower resolution. So...try raising your screen resolution when you buildcubemaps

forthex
09-01-2008, 10:23 PM
I run tf2 at a 1280x1024 resolution, in full screen, and I can't go any higher b/c of my monitor. And I have env_cubemaps in my map. However, I haven't added any light sources (or even lighting props/models). Would that be a problem?

l3eeron
09-01-2008, 10:30 PM
you need to buildcubemaps correctly.....


- create server started with you your map

- go into console and type


buildcubemaps

- Disconnect from the server (not quit)

- restart map, go into console and type

map mapname

- buildcubemaps again like before

- turn cheats on

sv_cheats 1

reload the cubemap data:

mat_reloadallmaterials


- Disconnect again

- restart map again.... add files with pakrat and release

teddyruxpin
09-01-2008, 11:24 PM
First make sure you skybox file name ends with _hdr. IE sky_hydro_01_hdr. Then build the map with '--both' set as a flag or select 'HDR' along with the 'Normal' setting for VVIS and VRAD. Once the map is built load it up by 'Creating a Server' and then select your map

In your dev console do the following while the game is running.

sv_cheats 1
mat_specular 0 (turn off reflections)
mat_hdr_level 0 (to go to LDR)
buildcubemaps
map mapname (to reload map)

sv_cheats 1
mat_hdr_level 2 (to go back to HDR)
mat_specular 1 ( turn on reflections)
buildcubemaps
map mapname (to reload map)

Done. I had the same issue until I used the -both flag and then also build the cubemaps for both LDR and HDR modes.

http://developer.valvesoftware.com/wiki/Cubemaps

-Teddy

MrStump
09-02-2008, 05:17 AM
I recently used the lumberyard sky in a map. It has no default cubemap, meaning that if you did not place any env_cubemap entities on your map, you will be looking at a lot of checkered reflections. When you follow the whole "buildcubemap" console moves that were already described (I use the mat_specular way), it builds cubemaps, so a default cubemap is not required. In other words, ignore that error. And every time you compile your map, you will have to buildcubemaps again. You don't HAVE to do it until you are nearing a release and looking for problems, because the map will run fine without you doing it.

And if you haven't added any lights, Hammer will auto-light everything... horribly. But everything will still work. It will just look like poop. =)