Jump to content

Recommended Posts

Posted

I created a custom skybox for insurgency which leaks everytime. I tried all sorts of exporting methods.

 

my VMT looks like

 

"UnlitGeneric"
{
    "$basetexture" "skybox/vegas_01bk"
    "$nofog" 1
    "$nomip" 1
    $ignorez 1
}

 

Other custom skyboxes work on my map. but the ones I create from scratch just show up as a black leak. I get no errors in compiling or ingame console.

I spent 8 hours today trying to fix this to no avail. I tried all sorts of different resolutions, compression methods, clamp on or off, mipmaps on or off.

I tried different file names and VMT configs and it would not work.

 

Please someone, tell me what I did wrong or how I can create working skybox textures from scratch with GIMP.
 

Posted

Your vmt seems to be correct. (You don't even need "$nofog" 1, "$nomip" 1 and $ignorez 1 to make it work afaik)

The images you want to import should all have the same resolution. 1024x1024 should be fine.

They should be simple files like tga or even bmp. No alpha channel needed.

Open vtf edit and open your image via "file -> import". The vtf options can be the default settings.

Don't forget to flag Clamp S, Clamp T, No Mipmap, (No Level Of Detail (?))

Your 6 vmt files will be vegas_01bk.vmt, vegas_01dn.vmt, vegas_01ft.vmt, vegas_01lf.vmt, vegas_01rt.vmt and vegas_01up.vmt. The vtfs the same with .vtf ending.

Be sure to save all the files in the correct folder and set the correct skyname in Hammer editor (vegas_01)

 

Maybe post your settings in vtf edit, if it still doesn't work.

Posted

The images you want to import should all have the same resolution. 1024x1024 should be fine.

 

Actually, you can make all of your vtf's (except for the upper one) 1024*512 or 512*256, as the bottom part will probably never be visible and this will lower filesize a bit. The bottom one can be 16*16 or something like that, since you will never see it anyway.

Posted

 

The images you want to import should all have the same resolution. 1024x1024 should be fine.

 

Actually, you can make all of your vtf's (except for the upper one) 1024*512 or 512*256, as the bottom part will probably never be visible and this will lower filesize a bit. The bottom one can be 16*16 or something like that, since you will never see it anyway.

 

 

Nice to know. :)

Well, I stuck by Valve's recommendation here.

Already thought about what you said, because these parts of the skybox are never visible as you said, but unfortunately didn't try it yet.

Posted

Well, I gave it a try immediately. :)

(1024*512 resolution except the upper (1024*1024) and bottom (16*16) textures)

 

Found out, that you will have to add

$basetexturetransform "center 0 0 scale 1 2 rotate 0 translate 0 0"

to the vmt (of ft, bk, lf and rt), if you don't want the images to be stretched vertically.

  • 2 weeks later...
Posted (edited)

just to make sure I have my directory correct can someone please verify for me?

C:Program Files (x86)Steamsteamappscommoninsurgency2insurgencymaterialsSkyboxvegas_01fr.vtf

same for vmt

 

and do I have to recompile after each vtf or vmt edit?

Edited by Tool

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Mapcore Supporters

    aphexjh       Badroenis       celery⭐      EGO DEATH ⭐      Freaky_Banana      FMPONE ⭐      Harry Godden      JimWood ⭐      JSadones      poLemin      Vaya

    Funds go towards hosting and license costs, Discord server boosts, and more. If you'd like to donate, check out our Patreon announcement.

×
×
  • Create New...