Forgive me if this is the wrong place, but I've failed to find any answers from our friends at Google. Basically I have a custom material that isn't responding correctly to the environment map's lighting:
[IMG]http://i.imgur.com/Kd0xesi.jpg[/IMG]
As you can see it's just bright. I'd edit my Valve Material File for the texture, but i'm unsure what to put in it.
Any help would be greatly appreciated. Thanks!
Make sure the material is set to LightmappedGeneric and not unlitgeneric.
[QUOTE=Firegod522;47991448]Make sure the material is set to LightmappedGeneric and not unlitgeneric.[/QUOTE]
Thanks for your response, Firegod522, I'll show you what my file looks like:
[QUOTE]
"LightmappedGeneric"
{
"$basetexture" "gm_rainapartment/hardwood"
"$surfaceprop" "wood"
}[/QUOTE]
Still got the same issue :(
[QUOTE=Staff Eagle;47991668]Thanks for your response, Firegod522, I'll show you what my file looks like:
Still got the same issue :([/QUOTE]
Can you import the same image again in VTF edit and take a screenshot of all of the settings?
If that isn't an issue, if you can't see the material in hammer, it will be unlit during the compile.
[QUOTE=GaleTheHusky;47991734]Can you import the same image again in VTF edit and take a screenshot of all of the settings?
If that isn't an issue, if you can't see the material in hammer, it will be unlit during the compile.[/QUOTE]
[IMG]http://i.imgur.com/Hce6DJb.jpg[/IMG]
Make sure that the material is reachable by your map compilers. VRAD may not create lightmaps for surfaces with unknown material.
Replace your gameinfo.txt with my custom one. It should fix the fullbright materials
[CODE]
"GameInfo"
{
game "Garry's Mod"
title ""
title2 ""
type multiplayer_only
"developer" "Facepunch Studios"
"developer_url" "http://www.garrysmod.com/"
"manual" "http://wiki.garrysmod.com/"
FileSystem
{
SteamAppId 4000
ToolsAppId 211
SearchPaths
{
// None of this matters really
game+mod garrysmod/addons/*
game+mod garrysmod/garrysmod.vpk
game |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpk
platform |all_source_engine_paths|platform/platform_misc.vpk
game+mod_write+default_write_path |gameinfo_path|.
game+game_write garrysmod
gamebin garrysmod/bin
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
game+download garrysmod/download
}
}
}
[/CODE]
[QUOTE=SimplePlanz69;47993898]Replace your gameinfo.txt with my custom one. It should fix the fullbright materials
[CODE]
"GameInfo"
{
game "Garry's Mod"
title ""
title2 ""
type multiplayer_only
"developer" "Facepunch Studios"
"developer_url" "http://www.garrysmod.com/"
"manual" "http://wiki.garrysmod.com/"
FileSystem
{
SteamAppId 4000
ToolsAppId 211
SearchPaths
{
// None of this matters really
game+mod garrysmod/addons/*
game+mod garrysmod/garrysmod.vpk
game |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpk
platform |all_source_engine_paths|platform/platform_misc.vpk
game+mod_write+default_write_path |gameinfo_path|.
game+game_write garrysmod
gamebin garrysmod/bin
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
game+download garrysmod/download
}
}
}
[/CODE][/QUOTE]
Thanks for the response, I've modified my game file and also the material's file, we are now up to here:
[QUOTE]
"VertexLitGeneric"
{
"$basetexture" "gm_rainapartment/hardwood"
"$surfaceprop" "concrete"
}
[/QUOTE]
and it gives us this:
[IMG]http://i.imgur.com/zaWeYLV.jpg[/IMG]
Forgive the huge resolution. Now I've replaced the floor with some random texture just to show how it responds to the spot, the floor is now dark, which is great, however now it wont respond to light at all. Unusual!
[QUOTE=Staff Eagle;47991668]Thanks for your response, Firegod522, I'll show you what my file looks like:
[quote]"LightmappedGeneric"
{
"$basetexture" "gm_rainapartment/hardwood"
"$surfaceprop" "wood"
}[/quote]
Still got the same issue :([/QUOTE]
Once your material is like this, recompile the map. The issue is there are no lightmaps baked on that surface ,due to it not being lightmappedgeneric in the first place. Recompiling the map with this vmt will fix your issue.
[QUOTE=Stiffy360;47999822]Once your material is like this, recompile the map. The issue is there are no lightmaps baked on that surface ,due to it not being lightmappedgeneric in the first place. Recompiling the map with this vmt will fix your issue.[/QUOTE]
My file has been updated to this:
[QUOTE]
"VertexLitGeneric"
{
"$basetexture" "gm_rainapartment/hardwood"
"$surfaceprop" "concrete"
}
[/QUOTE]
and alas, after many times of Run/Compiling, it's not responding to light. Perhaps I have an issue with a hammer setting or VMT Settings? Or am I running my maps wrong?
Which hammer are you using? it may be reading the wrong material from a different directory
I've had this problem in the past myself, and I was unable to get it fixed.
If someone knows how to fix it; please let us know!
You've shown twice now that you use VertexLitGeneric. VertexLitGeneric is for models, not map textures. Use LightMappedGeneric.
You should also show us a few screenshots of the 2D views in hammer
[QUOTE=SimplePlanz69;47993898]Replace your gameinfo.txt with my custom one. It should fix the fullbright materials
[CODE]
"GameInfo"
{
game "Garry's Mod"
title ""
title2 ""
type multiplayer_only
"developer" "Facepunch Studios"
"developer_url" "http://www.garrysmod.com/"
"manual" "http://wiki.garrysmod.com/"
FileSystem
{
SteamAppId 4000
ToolsAppId 211
SearchPaths
{
// None of this matters really
game+mod garrysmod/addons/*
game+mod garrysmod/garrysmod.vpk
game |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpk
platform |all_source_engine_paths|platform/platform_misc.vpk
game+mod_write+default_write_path |gameinfo_path|.
game+game_write garrysmod
gamebin garrysmod/bin
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
game+download garrysmod/download
}
}
}
[/CODE][/QUOTE]
Is there a version of this for the CSS gameinfo?
I'm not sure what all to change.
[QUOTE=Donkie;48004883]You've shown twice now that you use VertexLitGeneric. VertexLitGeneric is for models, not map textures. Use LightMappedGeneric.
You should also show us a few screenshots of the 2D views in hammer[/QUOTE]
My apologies, I have used LightMappedGeneric, however that gives us the issue I first posted about (first screenshot). I'll change it back though.
[editline]21st June 2015[/editline]
[QUOTE=Stiffy360;48000600]Which hammer are you using? it may be reading the wrong material from a different directory[/QUOTE]
I'm using 4.1 (Build 6411) and my settings are exactly of those in this video:
[url]https://www.youtube.com/watch?v=wUCn28eP2WA[/url]
[editline]21st June 2015[/editline]
Sorry for the delay everyone, school is currently holding me down as we are entering exams.
Sorry, you need to Log In to post a reply to this thread.