ImageEffectGraph icon indicating copy to clipboard operation
ImageEffectGraph copied to clipboard

2019.1 support ?

Open mert-dev-acc opened this issue 6 years ago • 10 comments

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

mert-dev-acc avatar May 11 '19 05:05 mert-dev-acc

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)

iBicha avatar May 13 '19 02:05 iBicha

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.

McGunn avatar May 17 '19 05:05 McGunn

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 avatar May 18 '19 13:05 iBicha

Here's my conclusion:

  • Unity made most of classes needed for a custom master node internal in version 5 of shadergraph.
  • I don't see this change anywhere in their change log
  • I don't see any simple nor clean way to support 2019.x, so for now ImageEffectGraph doesn't support it (added this information on the README)
  • If there's a way to support 2019.x that I missed, please do share and/or create a pull request.
  • If you need this feature with 2019.x, ask Unity to open up the API, and make needed stuff public (or better yet, ask them for effects with shadergraph, maybe if there's enough demand, they will listen and implement such feature)

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

iBicha avatar May 26 '19 15:05 iBicha

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.

mert-dev-acc avatar May 26 '19 16:05 mert-dev-acc

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.

gavaga avatar Nov 01 '19 14:11 gavaga

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.

marioleo avatar Nov 26 '19 16:11 marioleo

@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.

mert-dev-acc avatar Nov 26 '19 18:11 mert-dev-acc

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

marioleo avatar Nov 26 '19 18:11 marioleo

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

mert-dev-acc avatar Nov 27 '19 00:11 mert-dev-acc