The mod you are trying to view has ceased development and consequently been archived. If you are a member of this mod, can demonstrate that it is being actively developed and will be able to keep this profile up to date with the latest news, images, videos and downloads, please contact us with all details and we will consider its re-activation.

Please excuse the storyline, we are currently working on trying to redo everything. This page will self destruct soon...

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Report RSS Shadows On V_Models (view original)
Shadows On V_Models
embed
share
view previous next
Share Image
Share on Facebook Post Email a friend
Embed Image
Post comment Comments
Xylemon
Xylemon - - 2,677 comments

Interesting.

Reply Good karma Bad karma+3 votes
Rukus_
Rukus_ - - 660 comments

Cool!

Reply Good karma Bad karma+1 vote
harrisonbrtn
harrisonbrtn - - 332 comments

you learned how to edit lightmaps?

Reply Good karma Bad karma+1 vote
cdlink14
cdlink14 - - 48 comments

They're dynamic shadows, so they cast onto models automatically.

Reply Good karma Bad karma+1 vote
Gamerman12 Author
Gamerman12 - - 771 comments

No, VALVe left a peice of code in baseviwmodel_shared.h, which askes if viewmodels should have shadows from env_projected textures. It's set to false originaly, but i set it to true.

Reply Good karma0 votes
PhuckKnuckle
PhuckKnuckle - - 45 comments

Cool, man! Thanks for sharing. I was wondering how to do this.

Simple things go a long way, but make sure there isn't any huge reason why they didn't and perhaps make an option to turn things like that off on lower end machines. I'm sure it impacts performance.

Reply Good karma Bad karma+2 votes
Gamerman12 Author
Gamerman12 - - 771 comments

No they turned it off due to the fact that only one env_projectedtexture can cast shadows. I enabled it so that it casts more than one.

Reply Good karma+1 vote
harrisonbrtn
harrisonbrtn - - 332 comments

i have used env_projected texture before but it allways affects my flashlight? do you know how to get around this?

Reply Good karma Bad karma+1 vote
Gamerman12 Author
Gamerman12 - - 771 comments

find bool bTools = CommandLine()->CheckParm( "-tools" ) != NULL;
m_nMaxDepthTextureShadows = bTools ? 4 : 1; // Just one shadow depth texture in games, more in tools in clientshadowmgr.cpp and replace it with m_nMaxDepthTextureShadows = 10

Reply Good karma+1 vote
PhuckKnuckle
PhuckKnuckle - - 45 comments

harrisonbrtn, force r_flashlight_scissor 1 in your mod code or your map to stop it from making flashlight RT the first one it finds. There's a whole list of fixes for the code here: Developer.valvesoftware.com

And Gamerman12, the reason they disabled it is because the fact that render textures are expensive as hell. That is why they turned of use for multiple dynamic shadows, and in turn disabled them casting on view models. :p

Reply Good karma Bad karma+1 vote
cW#Ravenblood - - 6,703 comments

cool

Reply Good karma Bad karma+1 vote
[Night_Stalker]
[Night_Stalker] - - 1,602 comments

Nice.

Reply Good karma Bad karma+1 vote
ZombieX
ZombieX - - 380 comments

Cool!

Reply Good karma Bad karma+1 vote
Croco15
Croco15 - - 1,240 comments

I think its cooler!

Reply Good karma Bad karma+1 vote
Dragondx11
Dragondx11 - - 196 comments

Interesting shadows. How do you find this out? Do you just search the code hours a day for things that can make the mod better?

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,525 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Description

One little tweak and this happened :3