@Shufen. Possession Overlay Problem

This is a discussion for the topic @Shufen. Possession Overlay Problem on the board CS:S ゾンビエスケープ (Zombie Escape).

Author Topic: @Shufen. Possession Overlay Problem  (Read 197 times)

0 Members and 1 Guest are viewing this topic.

Zero

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
  • Gender: Male
on: September 07, 2018, 01:09:09 PM
I had a look at how screenoverlay works since I can't use instructor hint entity to display boss info to individual player.
The reason why the texture is not animated is because there's two problems.

First one is the .vmt (material) configuration.
If you want to use the same special effect as the default ZombieReloaded's overlay, instead of using 'UnlitGeneric', you should use 'Refract' instead.

Like this one
Code: [Select]
File : humans_win_ps_s.vmt

"Refract"
{
"$model" 1
"$refractamount" "0"
"$bluramount" "0"
"$REFRACTTINT" "{50 50 150}"
"$REFRACTTINTtexture" "overlays/zr/humans_win_ps_s"
"$scale" "[1 1]"
}

Second is the transparency, take a look at the screenshots I've attached.
zombiereloaded's overlay when viewed without alpha channel (transparency), the background became all white, while yours become all black.
Being all black means it's going to block player's view.
I'm pretty sure your alpha channel is set to 8-bit due to anime character's outline color being white, so try to do the same thing to the background when you make a new one in the future.

Reference
1. List of Shaders - https://developer.valvesoftware.com/wiki/Category:Shaders
2. Refract Shader - https://developer.valvesoftware.com/wiki/Refract
3. UnlitGeneric - https://developer.valvesoftware.com/wiki/UnlitGeneric
4. AnimatedTexture - https://gamebanana.com/tuts/9544
« Last Edit: September 07, 2018, 03:32:22 PM by Zero »


shufen

  • Administrator
  • Jr. Member
  • *****
  • Posts: 70
  • Karma: +8/-1
  • Gender: Male
  • 常に本気
Reply #1 on: September 08, 2018, 09:05:01 PM
Currently PSE is using "screen particle" for Z:R round end overlay. It is useful for applying various visual effects. However not stable sometimes.
Btw UnlitGeneric texture is okay for all of times. How different the Refract shader?


Zero

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
  • Gender: Male
Reply #2 on: September 09, 2018, 12:07:22 AM
Mind if you give me a link for screen particle shader? I couldn't find it in valve developer.
It would be very helpful since I might need it for mapping.

UnlitGeneric is best to use when you want to apply no special effect to it.

Refract shader gives a distorted effect at the base texture.

Here's an example from valve developer.


shufen

  • Administrator
  • Jr. Member
  • *****
  • Posts: 70
  • Karma: +8/-1
  • Gender: Male
  • 常に本気
Reply #3 on: September 09, 2018, 06:24:04 AM


Zero

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
  • Gender: Male
Reply #4 on: September 09, 2018, 10:03:58 AM
Oh, it's the screen space effect. Yeah that would do the trick. It's very useful for applying particle based effects on overlays. Thank you for teaching me about it.  :)


 

TinyPortal © 2005-2015