Is there any way to get the player shadow in portal, or will i end up coding everything?
Source sdk player shadow
Is there any way to get the player shadow in portal, or will i end up coding everything?
UsCobra11 wrote:
You can make shadows with light. Try using an env_projected_texture. This light entity can create nice looking shadows. You can also mess around with a shadow_control entity.
I thought the players couldn't see their shadows whatsoever unless they were in thirdperson view.
ChickenMobile wrote:
UsCobra11 wrote:You can make shadows with light. Try using an env_projected_texture. This light entity can create nice looking shadows. You can also mess around with a shadow_control entity.
I thought the players couldn't see their shadows whatsoever unless they were in thirdperson view.
nor can players see their own reflections in first person.
First: sometimes I see real shadows on my portalgun from an env_projectedtexture like it does in CS:GO. I don't why this happens, but it does sometimes.
Second: You could turn on the thirdpersonview and move the camera to a first-person view (should be possible somehow). Or you could use a point_viewproxy (the same entity was used in the container scene at the beginning of the game). I don't know if you see yourself while using it, but it's worth a try.


There's a workaround to have the player shadow in firstperson. Just attach chell model to info_player_start and in logic_auto set OnMapSpawn >> chell >> SetParent >> !player. In model properties set minimum fade out distance. This way env_projected_texture will cast model's shadow. Though the shadow has no portalgun.