iBicha / ImageEffectGraph

Image effects for post processing stack created with shader graph for Unity
MIT License
168 stars 18 forks source link

2019.1 support ? #11

Open merpheus-dev opened 5 years ago

merpheus-dev commented 5 years ago

Right now, it appears to be tool is not compatible with Unity 2019.1+ due to changes that they've made. I'm getting errors like this:

image

iBicha commented 5 years ago

Thanks for the bug report. Looks like they made a few classes private. Will have to implement a workaround, and test if there are any breaking changes in the shader library (I have a feeling that there is)

McGunn commented 5 years ago

I'm not upgrading to 2019 simply because this is too important for my project. If you submit a bug report or something complaining about the private classes link it here so we can all go complain with you lol. This should honestly be an official Unity feature.

iBicha commented 5 years ago

If you submit a bug report or something complaining about the private classes link it here so we can all go complain with you lol.

I can't really complain since this was created when these graphics packages were marked in preview, which means they are not committed to the current public api and they can make any change to it.

This should honestly be an official Unity feature.

I agree. I would love to see this repo go away in favor of having shader graph do this out of the box.

iBicha commented 5 years ago

Here's my conclusion:

As for now, I will keep this issue open, even if there's not much to be done at the moment. Cheers.

merpheus-dev commented 5 years ago

I'll make this tutorial that I've mentioned a while ago. I'm just not sure what kind of image effect would be nice to show. It is weird that they don't have a support for PostFX. I am open for suggestions on tutorial topic. I'll update here when I do.

gavaga commented 4 years ago

If anyone is interested in a temporary workaround for this, it's possible to expose the internals of a unity package by patching the package with an "install" script in your own package. I don't have time to write a PR for this project, but you just need to create a file in the right place with code to the effect of

using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("ImageEffectGraph.Editor")]

An example of this done in a (still in-dev) project is fluviofx, which has done the same thing for the VFX Graph package.

marioleo commented 4 years ago

With Unity 2019.3b+ now you can use Shadergraph to create post processing effects, using the URP https://github.com/Unity-Technologies/UniversalRenderingExamples I don't know if the method that they are showing in this example will be the final way to do it, but right now it works.

merpheus-dev commented 4 years ago

@marioleo I am afraid this is not conventional post-processing. Instead, it is more like the replacement shaders via custom renderer features. It is possible to effect objects to be renderer, but nothing else. At least, as far as I know.

marioleo commented 4 years ago

Yes I think it's not the definite post processing solution, but I've been testing it, and you can achieve post processing effects manipulating the camera texture with a shadergraph material, roughly in a similar way that iBicha was doing it with this repo, currently is the only way (as far as I know) in order to create post processing effects with shadergraph with Unity 2019.3b and the latest version of URP

merpheus-dev commented 4 years ago

Why? I believe Render Features are also exists in LWRP and 2019.2? They didn't even rename the title texts on gifs :D