Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Rendering Plugin 'Failed to get env' error when Native Distortion Correction is enabled #41

Closed
sh3rifme opened this issue Jun 26, 2015 · 4 comments

Comments

@sh3rifme
Copy link

With native distortion correction enabled, when running on a galaxy S5, i only see a black screen and logCat outputs hundreds of lines of 'In Native: could not get env' with the RenderingPlugin tag.

I'm running Unity 4.6.6f2 Pro with the v0.4.10 plugin. I only just noticed this issue, i had never previously used native distortion correction until now.

When i open a fresh project, and load the demo scene in, the distortion correction works as expected.

So clearly I have done something to stop it from functioning, but since I've been using this plugin for about 2 months in this app, i'm rather stumped as to what may be causing this.

If anyone knows what might cause the rendering plugin to fail to get the environment, please do tell!

@MiCkSoftware
Copy link

Try to clean your plugin directory and import SDK again.

@sh3rifme
Copy link
Author

Just tried it, no luck. Is it something to do with when the plugin is first called? Or does that not make a difference?

@sh3rifme
Copy link
Author

How is the distortion correction simulated in the editor? Because that works fine, and i guess i could adapt that if push comes to shove.

EDIT
Found the shader and the stuff in the RadialUndistortionEffect class, will try working with that

@sh3rifme
Copy link
Author

sh3rifme commented Jul 7, 2015

It seems an upgrade to v5.0 has fixed this issue.

@sh3rifme sh3rifme closed this as completed Jul 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants