-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syphon plugin interaction with certain skydomes blacks out the skytexture #23
Comments
This could be a premultiplied vs un premultiplied alpha issue? I'd experiment with that. |
where do i set these values? |
This has to do with the blending in Unity and the construction of the image you send to it via Syphon. I have no idea, you're in control :) |
So I checked all blend-modes in the skyshaders without having luck. I then looked customRenderTexture = new RenderTexture(renderWidth, renderHeight, 0, RenderTextureFormat.RGB565); Now the alphachannels are fine, but the color resolution is bad. Do you have a workaround for that? |
Thats likely not going to fix it. Your issue is either your client is expecting color in the form of premultiplied: vec4 RGB = vec4(color.r * color.a, color.b * color.a, color.g * color.a, color.a) or straight / unpremultiplied vec4 RGB = vec4 (color.r, color.g, color.b, color.a) Note the difference in color channels. I forget what unity skyboxes expect do behind the scenes because I don't do a lot of Unity dev (cc @brianchasalow ?) but the you might be able to fix this on the Syphon server client side by unpremultiplying , or pre-multiplying depending on the blending in your Syphon client. |
you can force unpremultiplied from a premultiplied by dividing each color component by the alpha btw. Typically you want to have a pipeline that chooses one approach. Syphon does not and never will adjust the alpha / color channels, its agnostic to premultiplied or unpremultiplied. This is good, but can cause confusion when you mix approaches like above. |
Can't you just stick a SyphonServerAlphaOne*.cs *image effect on the camera On Wed, May 4, 2016 at 11:10 AM, vade [email protected] wrote:
|
Yeah, sticking a SyphonServerAlphaOne*.cs *image effect on the camera helped! Thanks brianchasalow and vade! |
There is a great Unity implementation of Syphon here... |
Yes, it's nice, but only syphon-server, no client yet. |
the images speak for themselves. as soon as SyphonServerTextureCustomResolution script is activated the textured skydome gets lost and is blacked out in the syphon output. does anybody know how to fix that?
The text was updated successfully, but these errors were encountered: