Maximum distance for viewing textures?

Avatar
mironos
66 Posts
Posted May 07, 2011
I'm just finishing up my first map, and I'm having a problem I can't figure out.

From the player spawn point, the far wall of my map appears blurred, as if the texture is missing. If I take a few steps forward, the texture appears as it should.

Is there a maximum distance from which a texture/wall can be viewed? My map isn't very big, but if I move toward the wall, or if I edit the map to move the wall closer, everything appears fine.

There are no leaks when I compile, and I've tried several different textures and room geometries, including rebuilding that portion of the map, to no avail.

The spawn point is looking down into a fairly deep pit, so I thought maybe the POV was exceeding some maximum visibility that I wasn't aware of.

Any ideas?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Sidneys1
89 Posts
Posted May 07, 2011
Replied 21 minutes later
Just out of curiosity, what is your Texture Filtering setting? (Settings>Graphics>Advanced)

Have a nice day,
~Sidneys1

Avatar
mironos
66 Posts
Posted May 07, 2011
Replied 7 minutes later
You mean my Filtering Mode in the game itself? Anisotropic 4x
Avatar
Sidneys1
89 Posts
Posted May 07, 2011
Replied 4 minutes later
Try bumping it up to 16x (shouldn't have much of a performance impact) and see what that does for you. It might not do anything (I think FM is more for extreme viewing angles) but it's worth a shot anyways.

I took a look at some cvar lists, and it didn't look like there was much to do with texture draw distance...

Have a nice day,
~Sidneys1

Avatar
mironos
66 Posts
Posted May 07, 2011
Replied 14 minutes later
No luck.

I looked back at my starting point from the far wall, and get the same effect. It's roughly 3000 units where it starts to corrupt the textures, which doesn't seem very far.

I'm running the map from Hammer, in Windowed Mode, if that makes any difference.

Avatar
mironos
66 Posts
Posted May 08, 2011
Replied 13 hours later
Ok, I confirmed that there seems to be a max distance. Somewhere around 3648 units.

I built a single, long room. At 3616, no texture issues. 3648, I got the same texture corruption as I did on my original map.

I don't know if the exact distance varies depending on lighting or which textures you use.

Anyone have any ideas of how to block/occlude a player's view only past a certain distance? :smile: Can't build a wall, because the player eventually needs to go through that area.

Thanks for the help!

Avatar
msleeper
4,136 Posts
Admin
Posted May 08, 2011
Replied 2 hours later
I'm curious why exactly you have an area that is so large, 3000 units is pretty big. If most of this is non-playable area, like it is background much like we see in Portal 2, then you should make it a 3D Skybox. This will probably solve some of the problems you are having.

You can also try messing with the draw distances for the player using env_fog_controller. But I'm curious to see a screenshot of this area to see exactly why you need such a big space.

Avatar
mironos
66 Posts
Posted May 08, 2011
Replied 1 hour later
I tried using the fog controller, and it covered up everything BUT the problem textures :smile: Possible I set it up wrong, though.

The level requires the player to use consecutive portals while they're falling to clear a gap to the exit. I originally made the map smaller, but to get enough momentum, I had to make it both longer and deeper. May be possible to restructure to shorten...but it took a lot of calibration the first time around, so if I can avoid having to do that again, I'd prefer to.

One of the areas I was able to move closer to fix one issue, but the other would be harder, because it's caused by both distance and depth.

Problem is the middle dark section, between the ramp and the door/platform
img

Avatar
msleeper
4,136 Posts
Admin
Posted May 08, 2011
Replied 5 minutes later
What is the full name of the material that keeps disappearing on you.
Avatar
Rderasta
6 Posts
Posted May 08, 2011
Replied 5 hours later
I do not have a straight answer, yet here's more info. Hope it helps.

I've had an issue like this -(the view bug caused the textures to "miss" and I would instead see this kind of bugged skybox, it wasn't blurry, it was like there wasn't any wall, and the view "mirrored" a very previous texture you had in sight. There is a definition for this, can't remember it.)- , tho the 'view bug' was seen only in player straight view, not in depth (roof & floor were ok)..

Fixed it by editing and reducing the distance to equal or less than 2500 units. (I thought this was the cap. I don't really think so now.)
Although, this very same map, with a depth of over 10.000 units works fine, the player even standing in the very top of the map, can make a free fall of 10k units without any 'view bugs'.

I've always been using chamber textures, since I'm just testing.


Actually, now that I think of it. When I "fixed" my problem, I remember to have removed 2 rooms (spawn rooms), the bug was being caused from one side of the map (coming out of the spawn room), to the inside of the other spawn room. Also happened in another (somewhat) room, at the very top of the map, bugging the view when you watched the room in front of it. This last ones weren't removed tho, just getting them closer fixed it.

Avatar
Rderasta
6 Posts
Posted May 08, 2011
Replied 8 minutes later
Ah sorry, I instantly thought of a possible solution :smile:

Try using linked_portal_doors. I've been messing around with this and figured out (as far as i know) that you can change the 'width' and 'height' to a cap of: W=256 - H=512 (this is x2 ingame).. More than that, crashes my client.

You would probably want to look up around for more info about this, rather than having me explaining, trust me ^^

Avatar
p0rtalplayer
1,366 Posts
Posted May 08, 2011
Replied 13 minutes later

Rderasta wrote:
I've had an issue like this -(the view bug caused the textures to "miss" and I would instead see this kind of bugged skybox, it wasn't blurry, it was like there wasn't any wall, and the view "mirrored" a very previous texture you had in sight. There is a definition for this, can't remember it.)- , tho the 'view bug' was seen only in player straight view, not in depth (roof & floor were ok)..

I believe that's called the Hall Of Mirrors (HoM) effect, and it generally appears in 3D engine games when there's nothing to draw, so it draws the pixels immediately next to the open space.

As for the problem, you could have the consecutive portal placement go around a corner, or something of the sort, if it's really important that it be that long.

Avatar
msleeper
4,136 Posts
Admin
Posted May 09, 2011
Replied 2 hours later
I'm kind of curious to see the VMF, honestly. My first guess was he was using a model texture and it was giving the standard "using a model texture on a brush face so you get weird VertexLitGeneric lighting" bug. And I don't think that mironos can explain what he is doing improperly in such a way that we can really help him.
Avatar
mironos
66 Posts
Posted May 10, 2011
Replied 1 day later
Thanks for the responses guys -- haven't been mapping for a couple of days, but now back.

I don't think the issue is texture-specific (though it's possible it's the WAY I'm applying textures -- this is my first map, so any sort of "user error" cause is possible :wink: ). I've tried using different textures, and still get the same effect.

Additionally, I don't think my issue has anything to do w/ room geometry/portaling/doors, as I tried creating just a really long, empty room, w/ only a spawn point, and the same thing happened. I could try putting the spawn point in a different room, since Rderasta mentioned that as a potential cause. I'll give that a shot.

In the meantime, I'm happy to provide my .vmf if folks are curious. Sorry, I'm new to these forums, too...assume I can't just attach it to my post(?) So if anyone wants to take a look, let me know, and I'll find a place to host the file.

Avatar
msleeper
4,136 Posts
Admin
Posted May 10, 2011
Replied 1 minutes later
You can, in fact, just attach it to a post.
Avatar
mironos
66 Posts
Posted May 10, 2011
Replied 6 minutes later
Ah. So I can...

Ok, attached. You should see the issue when looking toward the metal door -- it's the darker space between the door up high and the ramp down low.

Attachments
test4.vmf
0.15 MB 50 downloads
Avatar
mironos
66 Posts
Posted May 10, 2011
Replied 20 minutes later
Ok, so noticed msleeper's post that the Portal2 editing tools were now available while checking this thread. Downloaded, installed, then reopened and recompiled my map...and voila, issue is gone!

Will probably make some changes to the map and compile again to verify, but for now it looks like this is solved! Thanks all!

Avatar
msleeper
4,136 Posts
Admin
Posted May 10, 2011
Replied 2 minutes later
Bizarre. Glad it's working right for you now, though.
Avatar
Hober
1,180 Posts
Posted May 11, 2011
Replied 17 hours later
I would hazard a guess that it was some compiler optimization for the Alien Swarm tools, because Alien Swarm was a different game and they could cut different corners on their maps.
Advertisement
Registered users don’t see ads! Register now!
Avatar
msleeper
4,136 Posts
Admin
Posted May 11, 2011
Replied 1 minute later
Yeah that kind of makes sense actually, but I thought it was the game client that did that and not the compiler.

Also Hober check your damn PMs or get on Steam.