Author Topic: Custom Skybox Issues  (Read 90 times)

0 Members and 1 Guest are viewing this topic.

Offline Travelsonic

  • *****
  • Posts: 743
  • We're gonna need a new obstacle course...
  • Respect: +78
Custom Skybox Issues
« on: August 28, 2012, 02:25:47 PM »
0
So I am working on a map that uses custom 2D skyboxes.  Simple.

Well... not so.

When I compile the map, I get the following error:

material "skybox/mhzskyftrt" not found.
Can't load skybox file skybox/mhzskyft to build the default cubemap!
Can't load skybox file skybox/mhzskyft to build the default cubemap!

Problem is, there is no material called "mhzskyftrt" - just mhzskyft, mhzskybk, mhzskrt, mhzskylf, mhzskyup, and mhzskydn, all with vmt files that match what I read in tutorials on doing custom skyboxes regarding what they should have.

Ugh, what the fuck?


« Last Edit: August 28, 2012, 02:31:27 PM by Travelsonic »
lim ( Δ :trollface: -> 0 ) (:trollface: + Δ :trollface:)² + :trollface: = :trollface:

Offline Alkaline

  • *****
  • Windows User
    View More Badges!

  • Posts: 699
  • Gender: Male
  • Respect: +430
Re: Custom Skybox Issues
« Reply #1 on: August 28, 2012, 05:53:02 PM »
0
So does the skybox work? That error spits out all the time and you can ignore it.

It's just when you create your map, materials using an env_cubemap for it's $envmap parameter will appear shiny. You have to build cubemaps manually after each time you compile your map:

mat_specular 0
buildcubmaps
mat_specular 0
buildcubemaps
mat_specular 1
A Man named William Reed's last living testament says that he is going to read his own will.

Will Reed's will will read "Will Reed will read Will Reed's will"

Offline Mehis

  • ****
  • Posts: 400
  • Gender: Male
  • lolbai
  • Respect: +88
Re: Custom Skybox Issues
« Reply #2 on: August 29, 2012, 08:50:36 AM »
0
material "skybox/mhzskyftrt" not found.

Looks like naming issue.
Have you looked inside the .VMT files that they have the names written correctly?

skynamebk (Back)
skynamert (Right)

Should look something like this:

"UnlitGeneric"
{
"$basetexture" "skybox/skynamert"
"$nofog" "1"
"$ignorez" "1"
}

Also, if your skybox has sub-folder like skybox/folder/, you have to add the folders to Hammer skybox option too, example:

materials/skybox/folder/skyname

In Hammer folder/skyname
« Last Edit: August 29, 2012, 08:53:16 AM by Mehis »

Offline Travelsonic

  • *****
  • Posts: 743
  • We're gonna need a new obstacle course...
  • Respect: +78
Re: Custom Skybox Issues
« Reply #3 on: August 29, 2012, 09:07:12 AM »
0
Looks like naming issue.
Have you looked inside the .VMT files that they have the names written correctly?

skynamebk (Back)
skynamert (Right)

Should look something like this:

"UnlitGeneric"
{
"$basetexture" "skybox/skynamert"
"$nofog" "1"
"$ignorez" "1"
}

Also, if your skybox has sub-folder like skybox/folder/, you have to add the folders to Hammer skybox option too, example:

materials/skybox/folder/skyname

In Hammer folder/skyname

Yup, as I said in the OP, there is no file with the name the error threw - not referenced in the VMTs, nor are any other files named that.  The VMTs match what you posted there too.



« Last Edit: August 29, 2012, 09:09:30 AM by Travelsonic »
lim ( Δ :trollface: -> 0 ) (:trollface: + Δ :trollface:)² + :trollface: = :trollface:

Offline Travelsonic

  • *****
  • Posts: 743
  • We're gonna need a new obstacle course...
  • Respect: +78
Re: Custom Skybox Issues
« Reply #4 on: August 31, 2012, 09:01:37 AM »
0
bumpaddendum:  And hammer is having trouble finding them too - I put the textures in cstrike/materials/skybox too.
lim ( Δ :trollface: -> 0 ) (:trollface: + Δ :trollface:)² + :trollface: = :trollface: