-
Notifications
You must be signed in to change notification settings - Fork 513
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
Transparent Background #23
Comments
The TurbulenzEngine creates a WebGL context without an alpha channel, so changing the alpha value when calling clear is not going to help. |
Thanks for the quick response. I'm trying to blend only the pixels with an alpha value lower than one, so that I can have a 3D object with no background that blends in with whatever page it's on. Could an override be added to the engine code that would allow that, or is that something the developers are against? |
It maybe easier just to change the engine code. The variable setting alpha to false is hidden inside an internal function not available to the outside world, you would need to to overload the browser function canvas.getContext to ignore the alpha value. I will change our code to support passing an alpha property on the creation parameters to TurbulenzEngine.createGraphicsDevice. In general we prefer if you contact us with your needs on our Google Group for engine users so we can fix the problem or explain a safe workaround (which could be an override), but if you are in hurry and you need to ship your application then do whatever you need to, just be ready for things breaking :-) |
Thanks for the help! Sorry, I'm still really new to Turbulenz so I wasn't aware there was a Google Group. I'm not in a huge hurry so I can probably wait for the official change in the engine code. Would you happen to know when the next SDK release is scheduled for? |
The next SDK will be released soon but I cannot guarantee that this change will be on it, we do have a QA process that may delay some changes until they are properly tested. |
OK, thanks for the info. I'll keep an eye on the release notes for the next few releases. Will the SDK notify me when a new version is available for download? |
If you use our local development server you will be notified when a new SDK is available. |
+1 that feature would be very handy :) |
This feature is already supported in the latest version: |
Is it possible to have a transparent background in Turbulenz? I tried setting the alpha value in graphicsDevice.clear(), but the background always seems to be black rather than whatever color is behind the window.
The text was updated successfully, but these errors were encountered: