sevin Posted June 6, 2015 Report Posted June 6, 2015 Hi guys,I just bought CS:GO yesterday and have been poking around the SDK to get my footing as I log my first few hours. After decompiling all of the maps included at this time, I have a few questions.The first is: how is the dynamic lighting done? I remember reading it's an entity that works in conjunction with the light_environment, called env_cascade_lighting. Cross-checking with the VDC seems to support this is the entity that does that. But inspecting my decompiled maps seems to reveal that most use light_directional or nothing at all. I've only found one map so far (de_lake) that uses env_cascade_lighting. And Dust2 apparently has neither of these entities even though it still has dynamic lighting. In any case, the entities angles never match the light_environment's angles. Can someone shed some light on this?The next question I have concerns rain: which system do I use? de_aztec apparently uses a huge func_precipitation brush entity set to particle rain as its type. When I try this, nothing happens. It's blank. The "rain" and "particle rainstorm" systems work but they don't look nearly as good as Aztec's. Also, the rain apparently causes splashes in standing water. Is this caused directly by the particle rain detecting its surface and applying the effect or is there something more to that?Lastly for now, I'm confused on how alternate game modes are setup, like arms race and demolition. I assumed there'd be a master entity just telling the game first and foremost that the map was an arms race or demolition map like how koth and arena is done in TF2, but I can't find anything like that. I also see a lot of info_armsrace_terrorist/counterterrorist entities scattered around arms race and demolition maps. Is there a reason for this? As far as I can tell, you still spawn in at the info_player_terrorist/counterterrorist entities as usual.I will probably come up with some more questions as I continue to snoop around since the CS:GO SDK is quite different than all the other Source games before it. Thanks in advance!sevin Quote
DrywallDreams Posted June 6, 2015 Report Posted June 6, 2015 (edited) light_env also enables cascaded shadow maps (dynamic shadows) automatically based on their parameters.Aztec might use additional particle effects, I'm pretty sure particle rainstorm is what it uses, without being able to look at the moment. If it is actually particle rain, try copy/pasting the brushes from Aztec and see if that works. IIRC rain does make splashes on water automatically.Gamemodes are determined based on a console command. IIRC the console command to control it is "mp_gamemode (0-4)". When uploading to the Workshop, you can choose what gamemodes your map supports. info_armsrace_* are used to differentiate regular spawns from Arms Race for the retrofitted Demolition maps, the server needs to be running arms race to use them though. Demolition just uses the normal info_player_* spawns. Edited June 6, 2015 by DrywallDreams sevin 1 Quote
sevin Posted June 6, 2015 Author Report Posted June 6, 2015 Thanks for the info, Drywall. So I don't actually need env_cascade_lighting at all? Light_environment entities automatically do it in CS:GO? So to clarify the spawnpoints: I'd put those extra ones in if I wanted the map to double as an arms race map? Quote
DrywallDreams Posted June 6, 2015 Report Posted June 6, 2015 (edited) Yes and yes. I wouldn't advise just throwing in Arms Race spawns into a regular de map or something though, wouldn't end up being the most fun to play. Edited June 6, 2015 by DrywallDreams Quote
leplubodeslapin Posted June 6, 2015 Report Posted June 6, 2015 Actually the entity env_cascade_lighting is automatically created if not placed manually. It takes the parameters it needs from the light_environment as said before.I remember at the beginning of the CS:GO SDK, it was necessary to compile your map in -final in order to get these shadows (and not in -fast or -normal), maybe it's not the case today. (But still, compile in -final it's better ) Quote
Vaya Posted June 6, 2015 Report Posted June 6, 2015 (edited) you need -final for decent lighting/shadows. if it does 2 lighting passes you have the correct setting (takes a while even on simpler maps)I would recommend doing a -final compile every so often because it can radically change the lighting on your map - it adds reflections to white walls etc Edit - actually...this isn't true, read post below. Edited June 6, 2015 by Vaya Quote
leplubodeslapin Posted June 6, 2015 Report Posted June 6, 2015 (edited) you need -final for decent lighting/shadows. if it does 2 lighting passes you have the correct setting (takes a while even on simpler maps)I would recommend doing a -final compile every so often because it can radically change the lighting on your map - it adds reflections to white walls etcWat ?No the thing that might take 2 lighting pass is one for the HDR version and another one for the LDR (= no HDR).The LDR is useless on CS:GO, since people can't disable the HDR in the video parameters. It will double your compilation time and your map file size for nothing, it's useless.Edit your compilation configuration and change the -both with -hdr.And I think there is also radiosity with normal compilation but it's less accurate. Edited June 6, 2015 by leplubodeslapin Vaya 1 Quote
Vaya Posted June 6, 2015 Report Posted June 6, 2015 haha cheers. Saves me some compile time...Learn something new everyday. leplubodeslapin 1 Quote
leplubodeslapin Posted June 6, 2015 Report Posted June 6, 2015 np you're welcome ^^ Vaya and DooM 2 Quote
sevin Posted June 6, 2015 Author Report Posted June 6, 2015 So if env_cascade_lighting is automatically generated, that explains the maps that don't have that entity in them, but what about the ones with light_directional?Also I looked back at Aztec and it appears the rain is the result of a single func_precipitation spanning the entirety of the map. It is also using particle rain. I assume the "particle" means it has collision detection.Another question: how do people map for this game alone? CS:GO is way more detail-oriented than any other Source game and that translates into a lot more work for the mapper. Also, there is more close-quarters combat in houses than the other Counter-Strike's, and that makes for some really hairy brushwork. How do you guys go about laying out a house? Quote
Recommended Posts
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.