I have several .mov videos with an alpha channel that I want to include in my Unity project.
I use Unity 2018.4LTS plus for this project (it breaks if I upgrade to 2019).
in the unity documentation,
it looks like it's both compatible and given an inspector walk through how to transcode it.
https://docs.unity3d.com/2018.4/Documentation/Manual/VideoSources-FileCompatibility.html
https://docs.unity3d.com/2018.4/Documentation/Manual/VideoTransparency.html
however, as seen in the image below, the video is both not recognized as such and the inspector attributes are not as shown in the documentation
Do you know of an alpha supporting video format that is supported by Unity 2018.4LTS?
thank you all helpers,
WebM format with VP8 has indeed supported transparency and
Unity - make video background transparent - Mobile/PC
Check this link, It's working perfectly: https://styly.cc/tips/tomo-chromakey/#
Credit to the author
Related
We're working with the Hololens 2 and sadly when recording a video, taking an image or going into the live-view, Unity UI elements are not shown in the image/video.
Does anybody know how we can make Unity UI elements appear in video & photo capture in Hololens?
Here is an example where below the title there is text present, but not captured in the image.
The title part uses a TextMeshPro component, while the text part uses a TextMeshProUGUI component (due to the scrolling window of the text.)
We're using Unity 2020.3.6f1, MRTK 2.7.2 with OpenXR backend.
Thanks for any help and recommendations.
For how to create mixed-reality photos and videos, you can use the Start gesture to go to Start, then select the Camera icon, for more information please refer to this link: Create mixed reality photos and videos.
If you want to seamlessly integrate mixed reality capture and insertion into your apps, you need to enable the Windows Mixed Reality Camera Settings provider in your MRTK profile and check Render from PV Camera.
The issue was that our Unity version was not updated, as hinted out in this github issue. Simply updating to the newest Unity version solved the problem.
https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10155
I did some complex 3d animations on blender and I want to play them on flutter. The problem is that when I export the animation into a video and I put it on my flutter app the transparent background is gone. I'm using video_player to play videos on flutter and the video extension I use is .webm because is the only one I know that can be readed on flutter and have a transparent background but the application puts a black background in the video.
The conclusion I get is that video player plugin is not the best idea to do it. So i've been searching about how flutter manage gifs and it's manage alpha channel perfectly because it can manage alpha channel on image. But the next problem is how to control the gif, for that I use gifimage plugin which works really well to reproduce an animation. Finally the last problem is to export from blender to a gif, blender can't export on gif format so you should export into a quicktime format with Qt animation codec and then convert it to gif. If for some reason the first frame of the gif stay as background of the gif you should edit the gif with photoshop for example and change in the timeline the first frame to not disappear to disappear.
Current player plugin uses ExoPlayer on Android. I found this issue on the repo.
For some reason, I can't get SVG images to show up on my phone, only the simulator. Is this bug / feature that is in progress / expected? I can't find any documentation on file formats in the guide.
Don't know if this affects it, but I'm using API.AI's Actions on Google tab to create the carousel.
Thanks in advance!
The phone doesn't support SVG, and that's the expected behavior.
You can use JPG, PNG or even GIF with animations.
I agree that this should be available in the documentation.
How to picker some pictures from the library, and convert them to a gif?
There's ImageMagick for iPhone.Check Using ImageMagick to create animated GIFs on the iPhone.
Or search "ImageMagick for iphone" at Google
Check these Links
According to Apple,
Xcode automatically optimizes your PNG images using the pngcrush
utility shipped with the SDK. (You’ll find the program in the iPhoneOS
platform folders in /Developer. Run it from the command line with the
–iphoneswitch to convert standard PNG files to iPhone- formatted
ones.) For this reason,use PNG images in your iPhone apps where
possible as your preferred image format.
Better prefer to use PNG's for your image requirements
For Picking Image :
http://iphone.zcentric.com/2008/08/28/using-a-uiimagepickercontroller/
http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html#//apple_ref/doc/uid/TP40010406
For Conversion :
http://blog.objectgraph.com/index.php/2010/04/05/download-an-image-and-save-it-as-png-or-jpeg-in-iphone-sdk/
Hope this Helps
You can create a GIF using the ImageIO framework, which is part of the iOS SDK. You don't need ImageMagick or any other third-party library.
Look at this answer for code that uses ImageIO to create an animated GIF. If you don't want an animated GIF, just add a single image instead of a bunch of images.
As for picking images from the library, there are many questions about this already on stackoverflow. Just search for [iphone] pick image from library.
Is there a library or built in graphical player to represent a playing audio file in iOS.
I dont want a full screen player, but a small inline player that can be embedded into a UIView.
Does this exist in iOS?
Apple has a good example of this, avTouch. I have successfully adapted parts of their code to display audio levels in the past.
avTouch