[Tutorial] Skybox Entity

Having a problem with a shader or texture
Post Reply
User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

[Tutorial] Skybox Entity

Post by xandaxs »

[quote=johnnyenglish]Here's a little something I've been meaning to write up for some time, the _skybox entity.

I was taught by Mindriot that the key to high fps is to limit the amount of map that is drawn at any one time.

A lot of mappers when starting out build their map inside a large box, this large box will have been made from structural brushes and perhaps hollowed out using the hollow tool.

I made my first few maps this way - I didn't actually know any better, it's only when you see your beloved map running at 20-40fps with 20 players that you realise the error of your ways and search for a better way.

Nowadays I made my maps in a very strict way, I build them using detail brushes, texture only the faces that will ever be seen in game and then wrap the whole lot very tightly in structural brushes.

Doing this means it's very easy to isolate which sections of the map will be drawn, however - this isn't a tutorial about construction, it's about the skybox.

PLEASE IGNORE MY TEXTURES / I'VE USED TEMPORARY ONES FOR THIS TUT.

Look at my map

Image

If I take off the roof

Image

You can see, most definitely not in a big box, the area you can see is a bridge leaving the main building and (eventually) leading to another building.

The problem is that although it's all nice and wrapped tight in structural caulk brushes - this will not block what you can see.

Watch this video

[youtube]http://www.youtube.com/watch?v=_T_Kgwme4tU[/youtube]

As you can see - I can see through the walls. The only way apparently to fix this would be to build a large textured dummy wall to block OR... use a skybox entity.

I usually construct a small hollow box under my main map, like a teeny map.

Image

Inside this I can build simple shapes which will be drawn onto the sky.

Image

The final result can be seen in this last video.

[youtube]http://www.youtube.com/watch?v=Nw1xpyfIGj8[/youtube]

Hope that helps someone, if you have any questions, feel free to ask.[/quote]
[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

Post Reply