Post not yet marked as solved
So I wanted to render video from .mov file in MTKView.
Short algorithm:
Read CMSampleBuffer from .mov using AVAssetReader and AVAssetReaderTrackOutput.
Convert CMSampleBuffer from step 1 to MTLTexture and pass it to renderer
I did those 2 steps and got the picture with twitches and I don’t know why.
Link to .mov https://www.dropbox.com/s/gmzxd8j94pjhc1q/2.MOV?dl=0.
Link to result https://www.dropbox.com/s/exgf1tk7oqvon25/result.mov?dl=0.
The code.
ViewController.swift
VideoReader.swift
SampleConverter.swift
TextureModel.swift
Renderer.swift
MyMetal.metal
Post not yet marked as solved
Hello forum I've built app for macOS that shows user notifications when MacBook battery reached certain capacity. App perfectly works on my MacBook Pro but iTunesConnect reviewer tells me that he got no user notifications at all during app review. So I can't figure what ever could be wrong and why this simple app works as expected on my laptop and not working on reviewers laptop. To send notification I use this code:func showNotification() {
let notification = NSUserNotification()
notification.title = "Some title with info about battery capacity"
notification.informativeText = "Some informative text telling what to do"
NSUserNotificationCenter.default.deliver(notification)
}
func userNotificationCenter(_ center: NSUserNotificationCenter, shouldPresent notification: NSUserNotification) -> Bool {
return true
}Did anyone get same issue during app review?
Post not yet marked as solved
Hello everyone )Does enybody know how to create water material like in badger example?There is a "geotherm_01" object in "scene.scn" and this object got materials "_1_terrasses_orange_water" and "_1_terrasses_eau" which creates water with slow animation that looks realistic. I've tried to repeat same materials in my testing project but can't get the same result.