AreaPortals

[FT] Andy

L1: Registered
Jul 9, 2008
38
0
I've stared work on my first map and i'm currently working on optimization after reading many guides. 2 areas of the map are seperated by a wide doorway and so i have placed an area portal there. However, the other side of the doorway still renders when standing in certain positions:
working:
cp_defcon_rocket0000.jpg

not working after taking a few steps back:
cp_defcon_rocket0001.jpg

cp_defcon_rocket0002.jpg
 

Zephyr

L1: Registered
Aug 24, 2008
27
2
Looks perfectly normal to me, it renders the full object if you can see any part of it, don't worry about it, it's working properly and will help it run smoothly even if you don't notice it.
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Possibly, you are rendering the other side from above (through the skybox), a bug in your visleaf set up.

You also have a very perculiar triangle placement on your textures. It doesn't look like you're using any hint brushes; are you?
 

[FT] Andy

L1: Registered
Jul 9, 2008
38
0
i havent placed any hint brushes as of yet. What should the wireframe look like on the textures?
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Well it's pretty hard to see how you've actually constructed your geometry but it's very messy. Plus a lot of your textures are misalligned.

Is your skybox just a flat brush over the top of your map or is it like a square bubble?
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Ah, i see now. here, this is why your areaportal doesn't "seem" to work.

skyb.jpg


I suggest adding a hint brush across the plane i illustrated in green. It is a good idea to have several at different heights due to people being thrown in the air by explosions etc.

edit: I updated the image (with better wording). You might want to refresh the page.
 
Last edited:

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
it would cut up your leaf nodes more if it was standard brush work. You could tie it to func_detail but for the most part it would only reduce compile time, i believe; and not even by that much.

Check out the command mat_leafvis 1 and mat_leafvis 3 to view your leafnodes.

I'm not sure what else to add i'm afraid, other than maybe the area is being rendered through those side corridors, from your main area.

edit: could you upload the vmf? That way i could take a look for myself at what's happening.

edit2: Are those areaportal windows in those corridor exits/entrances? if they are, when you walk out into the main area, you will be opening those areaportals (if you are within the fade distance required to deactivate their effects). Effectively opening the other area up despite the closed door.
 
Last edited:

[FT] Andy

L1: Registered
Jul 9, 2008
38
0
dont't worry too much, i'll see what i can do, i may redesign the doorways and corridors joining the two. Cheers for the advice
 

[FT] Andy

L1: Registered
Jul 9, 2008
38
0
i've got it working, it was due to the side exit on the right, i've re-made that route now with a door/areaportal.
 

MrTwoVideoCards

L1: Registered
Aug 27, 2008
46
2
Also an areaportal should always be set to open. An areaportal acts much like a viewcone only rendering whats behind it based on your view against the brush face.