![]() |
Push/Pull effect When you use push or pull a circle appears that deforms the environment as if you were looking at it through a glass of water. Now is there a way you can use that effect in a shader, for example for glass? |
Re: Push/Pull effect Quote:
|
Re: Push/Pull effect I'm pretty sure that's done with coding. I do recall seeing a bunch of code about the push/pull refraction effect. |
Re: Push/Pull effect The force push effect is controlled by a picture (assets1.pk3/gfx/effects/forcepush) and a .efx file which controls the size etc (assets1.pk3/effects/force/pushblur). The only way I can think of making a distorting piece of glass is a custom-made shader. Maybe try taking the forcepush picture from assets1.pk3 and 'applying' it to a glass texture already made, using a similar technique to making a glow shader. I'm no shader expert, but find a skin on jk3files.com with glow and see how the author did it on that to get the basic idea if you're stuck. |
Re: Push/Pull effect Actually, through experimenting with the efx and gfx files I've found that assets1.pk3/gfx/effects/forcepush.tga is actually the blur around characters when they get pushed. Also assets1.pk3/effects/force/pushblur.efx is completely pointless as far as I know, it is not either the pushing effect or the being pushed effect. Sorry mate, as far as I know, there is no easy way to create the zoom effect created in-game. |
Re: Push/Pull effect In the KOTF launcher you can disable the force push/pull effect and the grip effect I wonder how that works ? |
Re: Push/Pull effect Well, grip is simply an image in gfx/effects (black out to make invisible), but it seems the push distortion is more complex to disable. |
Re: Push/Pull effect Quote:
And the effect can be disabled by setting cg_renderToTextureFx to 0. |
Re: Push/Pull effect Quote:
|
Re: Push/Pull effect Actually its a mix of coding and an image, the assets1.pk3/gfx/effects/forcepush.tga file is used, then coding dyes it red. |
| All times are GMT -7. |
Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.