Need little help

Arokhantos

L1: Registered
Jul 14, 2014
25
9
Bassicly i wanna add something to my map but i only want it to be visible from camera.

So i put anything inside invisible box outside nodraw inside invisible, then put object in it + camera pointed at it.

There only one problem it does't work unless i nodraw both sides of walls.

Is there a way to make this work ?
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
So, you want a particular thing to show up in a particular spot in the map, but only when you're viewing it in spectate mode? I'm pretty sure that's not possible. Also, that's not what the invisible brush is for; it's literally just a brush that is, itself, invisible. Like a transparent texture that's completely blank, only it's got INVISIBLEs all over it when you view it in Hammer so you don't lose track of it.
 

Sergis

L666: ])oo]v[
aa
Jul 22, 2009
1,874
1,257
take a screenshot from that camera, then make a camera somewhere else and use screenshot as background :D

fake it till you make it

or assuming the camera is outside of playable space make whatever you want to add onesided

some hint manipulation or an areaportal could make a nodraw box work too probably
 

Arokhantos

L1: Registered
Jul 14, 2014
25
9
take a screenshot from that camera, then make a camera somewhere else and use screenshot as background :D

fake it till you make it

or assuming the camera is outside of playable space make whatever you want to add onesided

some hint manipulation or an areaportal could make a nodraw box work too probably

No experience yet with that, i did experiment with area portal but the outside of the area portal has the areaportal texture somehow when compiled, it did work however i don't like a box in the air saying area portal.
 

henke37

aa
Sep 23, 2011
2,075
515
That would be a failure to link the brush to an entity. The areaportal material isn't special at all:
Code:
"LightmappedGeneric"
{
	// Original shader: BaseTimesLightmapAlphaBlend
	"$translucent" 1
	"$basetexture" "Tools/toolsareaportal"
	"%compileNoLight" 1
	"%keywords" "airexchange,borealis,c17downtown,c17industrial,c17sewers,c17skyscraper,c17trainstation,combine,kraken,wasteland"
}

They didn't even bother setting the correct keywords.
 

Arokhantos

L1: Registered
Jul 14, 2014
25
9
I think it only works when i don't tie to entity and use areaportal texture, but then i see the texture instead although i think it may not work even when texture becomes invisible.