Modifing compiled bsp`s
Page 1 of 1
Modifing compiled bsp`s
I`ve often wondered if its possible to add new brush based entities to compiled maps, it would be very difficult or impossible to edit the main world bsp but if each brush based model is a separate BSP could I take part of a compiled map and insert its parts like verts, clipnodes & edges into a compiled map?
http://hlbsp.sourceforge.net/index.php?content=bspdef
So this is my new side project, to see if I can insert a new aaatrigger brush in to a compiled map and document the attempt here.
http://hlbsp.sourceforge.net/index.php?content=bspdef
So this is my new side project, to see if I can insert a new aaatrigger brush in to a compiled map and document the attempt here.
Re: Modifing compiled bsp`s
After sleeping on this I was thinking that it might be possible to add non-soild faces to the main bsp, this way they would not be editable to anyone without knowledge of the inside of the Half-life bsp, at the same time it might also be possible to stop faces from being rendered but I cant think of any good uses for that.
I think the first step is to install unity and poke around in the PVS
I think the first step is to install unity and poke around in the PVS
Re: Modifing compiled bsp`s
I got a little side tracked with an old project to make a light-map importer / exporter so that you could either edit the shadows in my program or export them to a paint package, but thing that bothered me was that in half-life you can switch lights on and off so this is done either in code or most likely during compile.
So to figure out how it `s done I made two identical maps one has two lights the other just one.
I compiled and loaded the headers up only to find the number of bytes in the lightmaps are exactly the same, the difference in the number of entity chars is expected as these are just plain text that can be edited with bspedit.
weird, I don't think lights are done in game like the torch and gunfire effects or I could just add them to any compiled map to change the lighting, but to make sure I removed both lights with bspedit and fired up the maps in dod and as seen below there was no visible change to the lighting Sad So the lighting is done during compile.
Ok I`m running out of ideas, is the lighting only done when you give the light a name so it can be switched off?
This makes sense making a new lightmap for every light that hits a face could make the bsp very large.
so back to hammer and add a switch to one of the lights.
compile and load up the headers and I now have 294 bytes in the new map twice as many as in the other Very Happy I`ll have to look further but I guess you add both lightmaps together to get both lights and subtract the second to remove it, there must be some more info in the face to tell the engine the number of lights and perhaps a light name or ID
So to figure out how it `s done I made two identical maps one has two lights the other just one.
I compiled and loaded the headers up only to find the number of bytes in the lightmaps are exactly the same, the difference in the number of entity chars is expected as these are just plain text that can be edited with bspedit.
weird, I don't think lights are done in game like the torch and gunfire effects or I could just add them to any compiled map to change the lighting, but to make sure I removed both lights with bspedit and fired up the maps in dod and as seen below there was no visible change to the lighting Sad So the lighting is done during compile.
Ok I`m running out of ideas, is the lighting only done when you give the light a name so it can be switched off?
This makes sense making a new lightmap for every light that hits a face could make the bsp very large.
so back to hammer and add a switch to one of the lights.
compile and load up the headers and I now have 294 bytes in the new map twice as many as in the other Very Happy I`ll have to look further but I guess you add both lightmaps together to get both lights and subtract the second to remove it, there must be some more info in the face to tell the engine the number of lights and perhaps a light name or ID
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Thu Nov 07, 2019 8:15 pm by Admin
» Get 6 months free pluralsight
Sun Mar 11, 2018 10:43 am by Admin
» hammer Game Configurations File
Sun Aug 27, 2017 10:54 am by Admin
» WIP Hammermate
Mon Jul 24, 2017 8:25 pm by Admin
» BSP anti decompiling goldsrc maps
Mon May 15, 2017 8:59 pm by Admin
» yard map a1
Mon May 01, 2017 6:30 pm by Admin
» How a skybox can effect your map
Mon Jan 16, 2017 8:52 pm by Admin
» Setup guide for Half-life
Sat Dec 31, 2016 2:19 pm by Admin
» WIP dod_genesis
Sun Sep 25, 2016 12:05 pm by Admin