You are basically the god of retro dreams.
lol / thank you / i hope ill finish another plugin some day which emulates old video cards
haha!
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
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
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.
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.