Post news Report content RSS feed Map System Overhaul

ESF has ditched the standard .bsp based map system from half-life and has replaced it with a more modern system that allows greater poly and texture limits.

Posted by on

As many of you already know we switched the whole map system of the Half Life engine to something else. This update is there to tell you about the basic changes to in game maps.

We are now using VBOs (Vertex Buffer Objects) to boost performance due to loading an increased amount of polygons. Vertex Buffer Object is an OpenGL extension that provides methods for uploading data (vertex, normal vector, color, etc) to the video device for non-immediate-mode rendering.

The most notable change due to this system is that we no longer use standard Half Life BSP files for our maps. While these files are still necessary to get the map recognized by the game itself and added to the map list, we are only using blanks. Meaning the BSP files are all an empty box with no entities at all. Instead of BSP files we are now using model files in the OBJ format.

OBJ files are used to represent 3D geometry data in form of the position of each vertex, the UV position of each texture coordinate vertex, normals, and the faces that make each polygon defined as a list of vertices, texture vertices, and normals as well as material settings. Therese material settings can be used to give certain material properties to in game objects allowing them to be rendered differently. You can set things like defuse colors, specular lighting terms, etc.

Due to these changes we were able to make the quality of the maps a lot better. So instead of being limited by standard Half Life BSP file limits which were round 2000 visible brushes, we now have a max limit of 70,000 polygons which allows us to make terrain a lot smoother and more detailed than standard Half Life ever could.

Old file format

New file format


Using this system also allows us to use other benefits of modeling such as normal maps for an even higher quality of the textures on the maps.




With the maps more detailed and since we lost the restrictions of the old BSP file format we were able to drastically increase the size of the maps themselves. While the old system allowed the maximal size of a box map to be ( 8192 x 8192 x 8192 ) we are now facing an unlimited size in the maps. Meaning that the only limit is how far the player is actually prepared to fly. So you can fly in a direction for 3 hours and you'd still be going forward if you wished to.

Map size comparison

Of course the new format also has its own limitations. Since the entire OBJ model is rendered at once on the graphics card this means that no matter where you are the entire map is being rendered at once. Meaning that even if we can move into one direction for a long time we would reach the end of the map due to the polygon limit. So we decided that the mappers themselves would have to limit the maps by using a box or other shape, in combination with the XSPR files featured in an earlier update to get certain animated texture effects.

Post comment Comments  (0 - 50 of 51)
remeth
remeth

looks cool

Reply Good karma Bad karma+1 vote
Krayziee
Krayziee

The map boundry takes the feeling away when playing, I guess but sure is handy, the animated textures Rock!

Reply Good karma Bad karma+1 vote
Sub-
Sub-

You only see the map boundary up close and considering how big the maps now are, you won't be seeing it much. It's much better then running into invisible walls

Reply Good karma Bad karma+2 votes
omegamaelstrom
omegamaelstrom

kinda like tenkaichi. except more space.

Reply Good karma Bad karma+2 votes
Nebcake
Nebcake

The new map quality was what simiply blew my mind, you guys are doing a superb job.

Reply Good karma Bad karma+2 votes
xilefian
xilefian

Oh my god that made me think entirely backwards about goldsrc...
This is amazing, it's like, amazing! Huge RPG games on GoldSrc could be made using this map format! Or maybe not, I don't know too much about this so I can't really say anything except:
AMAZING!

Reply Good karma Bad karma+1 vote
AxiumDust
AxiumDust

i love you guys...really no **** but each of you guy i love ya for making Half-life a better place...ESF and this naruto game commin out its gonna make you stars big ehffen stars. you rock! btw when you done could you make a Bleach game? lol btw whats the name of the song on the video?

Reply Good karma Bad karma+1 vote
Mastasurf Author
Mastasurf

Thanks! The song is untitled. Literally...

The Ownership Society - Untitled

Reply Good karma+1 vote
SpaceRanger
SpaceRanger

I CANT WAIT! WOOO

Reply Good karma Bad karma+1 vote
UnS33n
UnS33n

YOU GUYS ARE F***ING AMAZING!

Reply Good karma Bad karma+3 votes
ceriux
ceriux

wow amazing =)

Reply Good karma Bad karma+1 vote
Doommarine23
Doommarine23

I hope you guys release this stuff after the mod, it would really help alot of people out with their projects and it seems like really promising stuff that will further the quality of HL mods.

Reply Good karma Bad karma+2 votes
Breadsticks
Breadsticks

How does the new format handle occlusion, to reduce overdraw? Does it use an adapted version of VIS or something entirely new?

Reply Good karma Bad karma+1 vote
Hezus
Hezus

Wow, this Half-Life mod is revolutionary. I'd like to know more about how the new map system works. How are entities defined for example? Do you have a seperate file which handles the events and coordinates of entities? And what program are you using to create these landscapes?

Reply Good karma Bad karma+1 vote
Grega
Grega

Any modeling program that can handle OBJ file exports.

Reply Good karma Bad karma+1 vote
AlekZanDer
AlekZanDer

WOW!This is so amazing...

Reply Good karma Bad karma+2 votes
awesomepossum
awesomepossum

That is pretty nifty, You guys have done an amazing job overhauling the hl1 engine. sounds like you've basically built your own engine on top of it. very impressive

Reply Good karma Bad karma+1 vote
FERlanga
FERlanga

How would this new map system work for other mods? I mean, how would one add brushes for doors to open, stairs to climb or events?

Reply Good karma Bad karma+1 vote
KarrdeKNR
KarrdeKNR

I talked to a few people. I think it should still be possible to add any entity to a map. For example, spawns are entities. Now that being said, I don't know HOW you would do it as I don't have the technical background.

Reply Good karma Bad karma+1 vote
Grega
Grega

Well for point based entities you need the coordinates that you can get from a special command while flying round the map.

Basically that command reveams your current coordinates when you type it into the console. You can get the entity coordinates like that. Then you just place the entities.

Not sure how the brush based entities work since we no longer use brushes though. I do still need to talk to green about some of that stuff ^^

Reply Good karma Bad karma+1 vote
KarrdeKNR
KarrdeKNR

Well, guess that's a definite maybe then :P

Reply Good karma Bad karma+1 vote
sixcentgeorge
sixcentgeorge

is it possible to convert old maps to your new format for map ? and then are maps merge-ables ? if yes could you build the dlls for hl to support the new format ?
that could be wonderful to play without the loading stops ;]

Reply Good karma Bad karma+1 vote
Grega
Grega

If you can find a program taht decompiles the HL BSP files and makes them into a format that 3DS MAX can use then yes you can port them.

OBJ files are one of the most comon modeling program exports. They are frequently used for porting a model from one program to a different one.

As for no loading times. Not a chance. The model needs to be loaded and tahts about 8 MB of data minimum. Loading that takes a while. So even if you did change the code to load up map segments one after another youd still need to reserve that time for loading.

Reply Good karma Bad karma+1 vote
xilefian
xilefian

Now I think about it, wouldn't this make the development time much longer?

Reply Good karma Bad karma+2 votes
Grega
Grega

This system is allready ingame so no ^^

Reply Good karma Bad karma+2 votes
Myloman
Myloman

Each update just keeps getting more and more awesome. Really nice changes and improvements. Keep it up :D

Reply Good karma Bad karma+1 vote
Minuit
Minuit

Crazy, absolutely bloody crazy. You guys are insane and I love it.

Reply Good karma Bad karma+1 vote
emkill
emkill

we just need some sort of ragdolls or player model physics and it will be TEH game

Reply Good karma Bad karma+1 vote
AligBorat
AligBorat

there's a rumor about the specs being higher than Hl2..:/
and the map size..8100+ x 8100+ and on...wouldn't that lagg like shizz?

Reply Good karma Bad karma+1 vote
Sub-
Sub-

It's not a rumor, one of the coders have said that the specs will be higher.

As for 8100 x 8100 lagging, it depends on your system. I get pretty good fps

Reply Good karma Bad karma+1 vote
KarrdeKNR
KarrdeKNR

Like any modern game, though, we have LOD options.

Reply Good karma Bad karma+1 vote
Grega
Grega

Standard HL supports the size 8192x8192x8192

We mearly went past that limit. Besides the size of the map doesnt really make it lag. The number of polygons used in the OBJ model on the other hand does. Thats why we said to limit it at 70k ^^

Reply Good karma Bad karma+1 vote
AligBorat
AligBorat

oh, good to know :)

Reply Good karma Bad karma+1 vote
D3ads
D3ads

Woaaah, I dunno what to say about this.. speechless, first the awesome mapping technique and water effects and now this... man, amazing work I'm awe-struck :O

Reply Good karma Bad karma+1 vote
D3ads
D3ads

Btw do normal maps apply for models too or just geometry?

Reply Good karma Bad karma+1 vote
KarrdeKNR
KarrdeKNR

Geometry. Normal mapped player models look weird.

Reply Good karma Bad karma+1 vote
arniuxx3
arniuxx3

will you make world map? :)
i mean Dragon Ball world

Reply Good karma Bad karma+2 votes
Grega
Grega

No.

That would be dumb for a game thats not a MMO dont you think ^^

Reply Good karma Bad karma0 votes
arniuxx3
arniuxx3

if for reall i think it would be great that you could just fly from one place to other... -_-

Reply Good karma Bad karma+2 votes
Grega
Grega

Youd end up flying 20 minutes for a fight that lasts 5 minutes.

Just so you can fly 20 minutes again.

Map limits in ESFs case are a good thing :p

And with the new animated textures youll no longer be surprised by an invisible wall. Instead youll see the thing ^^

Reply Good karma Bad karma0 votes
weasil
weasil

I got to agree with arniuxx3. would be pretty cool for like a different game mode! :)

Reply Good karma Bad karma+2 votes
arniuxx3
arniuxx3

And with the new animated textures youll no longer be surprised by an invisible wall. Instead youll see the thing ^^

what you mean invisible wall? before i seen where map ends, becouse in the map end it was just picture -_-
WE Were Closed In The Box!

Reply Good karma Bad karma+1 vote
Grega
Grega

Yes but that picture was wrapped round the map completly. The negine handled it like a seperatepart of the map alltogether.

Ever tried playing a map like ROSAT? You had no clue where the map ends.

Same goes for the ceeling. You had no idea how much space was abbove your head before you hit it.

You were trapped in the box. But you couldnt see the box. Now you can tell where the box ends.

Reply Good karma Bad karma+1 vote
arniuxx3
arniuxx3

Rosat You wewe completele in A picture that has Thing in it...

I didn't have clue where ROSAT end's ,but i didn't even clue where it starts -_-

Reply Good karma Bad karma+1 vote
arniuxx3
arniuxx3

other question will you make maps like in Map size comparison?

Reply Good karma Bad karma+1 vote
Grega
Grega

If you mean like planets then no.

That was only cause it looked better like that than if it was flat. Maps are still flat not planet like since the gravity is direction based not point based.

Reply Good karma Bad karma+1 vote
arniuxx3
arniuxx3

No i mean do maps by size like in comparison

Reply Good karma Bad karma+1 vote
Grega
Grega

The person making the map determines its size.

Besides to big maps are a bad thing. Allso do note that while everything in the comparison picture is the map. The player himself can not leave he city area. That is the limit of the playable are set by the creator of the map in that specific picture. For example the ROSAT map is bigger than that though.

Reply Good karma Bad karma+1 vote
arniuxx3
arniuxx3

why do i think with new maps format we going wait longer for the mod? -_-

Reply Good karma Bad karma+1 vote
KarrdeKNR
KarrdeKNR

It's already been in for a few months.

Reply Good karma Bad karma+1 vote
arniuxx3
arniuxx3

Isn't It Beta?

Reply Good karma Bad karma+1 vote
Post a comment

You are not logged in, your comment will be anonymous unless you join the community. Or sign in with your social account:

News
Browse
News
New
Post news
Share
Related Games
Half-Life
Half-Life First Person Shooter
Related Groups
ESF developers
ESF developers Developer & Publisher