[RELEASED] VHS Pro - Analog video signal and CRT screen emulation

You are basically the god of retro dreams.

lol / thank you / i hope ill finish another plugin some day which emulates old video cards

1 Like

working on new fisheye mode

haha!

1 Like

Hi,

This is a great shader, and works fine in the IDE but when i try it in a build i get the magenta screen of death :frowning:
and the error

WARNING: Shader Unsupported: ‘Hidden/postVHSPro_Second’ - Pass ‘’ has no fragment shader
WARNING: Shader Unsupported: ‘Hidden/postVHSPro_Second’ - Setting to default shader.

any ideas what this could mean? does the shader require a specific pipeline to be enabled in builds or something?

I also get this error when trying to make build with just the default VHSPro demo scene

Shader error in ‘Hidden/postVHSPro_Second’: unable to unroll loop, loop does not appear to terminate in a timely manner (690 iterations) or unrolled loop is too large, use the [unroll(n)] attribute to force an exact higher number at line 197 (on d3d9)

hmm just to follow this up, i think its a problem with directx9, we had our project in dx9 mode for the build (and dx11 in the editor), So maybe the shaders aren’t compatible with dx9 :frowning:

i had similar error before. i should check. its usually under windows on some machines. i hope i know what is the problem.
also i’m gonna make the building process faster in the next update.

front page! hooray!

to fix this you can go to the file and replace the line 197
to this one

for (int ii = 0; ii < taps % 1023; ii++){

I’m gonna submit update in the very end of January / very beginning of February.
It will make building process much faster and reduce the build file size.
I just have to polish everything.

Can someone please outline how they’re able to get this to work on mobile (iOS specifically)?

I saw some posts about it previously, but haven’t been able to deduce from those how to properly get this to work for mobile yet. Thanks!

i guess the most important part - you have to remove the part with the MovieTexture because unity doesn’t support it on mobile. and the rest should work… i hope)

I made another thread for my 2nd plugin - retro graphic card emulation

Horz - I commented out all mentions of MovieTexture in “postVHSPro.cs” but the effect still doesn’t work when the build target is iOS. Can you think of anything else I should do or identify the steps to make it work? Your support here would be a huge help as I purchased this to use with an iOS game.

i didnt make mobile optimization yet. I never wrote that iOS is supported. but some people wrote that it works and usually MovieTexture is a problem. I still can’t test my shader with a mobile device but I’m planning to make mobile support in the future.
Do you have any errors in console?
Especially on shader files?
I guess when you click on shader file in the editor they write the errors there.
It’s very hard to guess things without seeing the errors.

This warning shows up in the console:
“Tiled GPU perf. warning: RenderTexture color surface (376x668) was not cleared/discarded, doing
UnityEngine.Graphics:Blit(Texture, RenderTexture, Material)
postVHSPro:OnRenderImage(RenderTexture, RenderTexture) (at /Users/user/test/Assets/VHS Pro/postVHSPro.cs:408)”

@proskub which version of unity are you using and system?

Unity 5.3.1 on OS X El Capitan 10.11.3.

i’m using the same/ it should work. when is it happening ?
when u just put it into the project?
or while working with it?

  • then i’d recommend to remove the component and try to add it again. and also restart unity.
    or
    when you making a build?
    or when you are making a build for mobile?
  • try to make a build for just osx - just for testing coz i dont have mobile atm. maybe the problem is with something else, i hope.