QuickLook

RSS for tag

Create previews of files to use inside your app or perform simple edits on previews using QuickLook.

QuickLook Documentation

Posts under QuickLook tag

42 Posts
Sort by:
Post not yet marked as solved
1 Replies
97 Views
I'm trying to create a custom Quick Look preview on macOS. I've found the Quick Look Preview Extension target, which is brilliant, and does most of the 'heavy' lifting, but I've run into a few problems. I'm implementing a preview for MIDI files (which has been missing since 2009...) using AVMIDIPlayer. The player keeps playing when the file is no longer selected! What's the mechanism for fixing that? Some sort of check that the view exists..? I notice that the OS preview for audio files has a different interface for the Finder's preview column and for the QuickLook 'pop-up' window. Again, I can't see how you define different views for those two environments. Is there any documentation that's specifically "Mac"? I can only find iOS stuff. (Same for third-party tutorials.)
Posted
by benwiggy.
Last updated
.
Post not yet marked as solved
0 Replies
81 Views
I am trying to configure the materials of a downloaded USDZ file and then save it in the Documents folder as a new USDZ file. Currently, I am using the ModelEntity class but I have two problems: I should modify the materials by using their names, but this class just seems that I can access the list of materials and eventually replace them but without knowing their name; I have no idea how to save it in the local Documents folder as a new USDZ file in order to pass the URL to the AR QuickLook controller to display the modified file in AR. Probably I should change my approach by using other classes. Could anyone give me some advice on how to proceed to achieve my goal? I would really appreciate any help.
Posted
by Protocube.
Last updated
.
Post marked as solved
1 Replies
138 Views
I’m trying to use QuickLook AR to show a 3D ThreeJS model in AR on iOS. Exporting my 3D object to USDZ using the Three USDZ exporter works fine. When opening the USDZ file in XCode everything seems to be fine. Though, when opening the USDZ in QuickLook AR, the 3D model is flying above the ground, on my camera’s Y level. The camera PoV is positioned exactly in the middle of the X and Z axis of the 3D model and at the bottom of the Y level. I have another problem with opening the USDZ in QuickLook AR, which is; When opening the USDZ in QuickLook AR, the model is invisible at first. Then when I scale the model down to < 10%, the model becomes visible, though it does not scale in size at all. Also, the “Model” tab in QuickLook does not even show the 3D model. When switching between the “Model” and “AR” tabs, the model flies by really quick. For reference, I’ve added my USDZ model below. What I’m trying to accomplish is to position the 3D model in front of me, and for the 3D model to acknowledge the world shown by the camera. The 3D model should stick to walls, or at least the floor to begin with. Button click code: newScene.add(sceneRef) const pivot = new THREE.Object3D() newScene.add(pivot) pivot.add(sceneRef) // position the object on the pivot, so that it appears 5 meters // in front of the user. pivot.position.z = -50 const yaxis = new THREE.Vector3(0, 1, 0) const zaxis = new THREE.Vector3(0, 0, 1) const direction = zaxis.clone() // Apply the camera's quaternion onto the unit vector of one of the axes // of our desired rotation plane (the z axis of the xz plane, in this case). direction.applyQuaternion(cameraRef.quaternion) // Project the direction vector onto the y axis to get the y component // of the direction. const ycomponent = yaxis .clone() .multiplyScalar(direction.dot(yaxis)) // Subtract the y component from the direction vector so that we are // left with the x and z components. direction.sub(ycomponent) // Normalize the direction into a unit vector again. direction.normalize() // Set the pivot's quaternion to the rotation required to get from the z axis // to the xz component of the camera's direction. pivot.quaternion.setFromUnitVectors(zaxis, direction) // Finally, set the pivot's position as well, so that it follows the camera. newScene.getWorldPosition(cameraRef.position) newScene.updateMatrixWorld(true) iosExporter.parse(newScene).then((result) => { saveUSDZString(result, 'scene.usdz') }) saveUSDZString function: function saveString(text: any, filename: any) { save(new Blob([text], { type: 'application/json' }), filename) } save function: function save(blob: any, filename: any) { link.href = URL.createObjectURL(blob) link.download = filename link.rel = 'ar' let img = document.createElement('img') img.alt = 'hi' img.src = 'https://google.com/img' link.appendChild(img) link.click() } USDZ Model: https://wetransfer.com/downloads/2d2d2e840f9f964e036cd6077094c33220220630095321/a7f94b9f2bc730fead9107bf133e175220220630095338/193b81?utm_campaign=WT_email_tracking&utm_content=general&utm_medium=download_button&utm_source=notify_recipient_email
Posted
by ruben_vdv.
Last updated
.
Post not yet marked as solved
5 Replies
782 Views
Has the problem of the black background when taking a picture with the AR Quick look function in iOS 15 been resolved? I think it's a rather serious bug. On an iOS 15 device, go to the Quick Look page below and display any of the multiple 3D models in AR Quick Look; the background will be black when you take a picture with the AR Quick Look shooting function. https://developer.apple.com/augmented-reality/quick-look/ There are similar events below, but they do not seem to be addressed at all. https://developer.apple.com/forums/thread/691784
Posted Last updated
.
Post not yet marked as solved
3 Replies
2.7k Views
Hello, (sorry for long log attached within) There has been concern (long story) that my secondary apple ID, phone was somehow linked or registered within an app developer or anything other then default and looking for clarification. This log is directly from the phone/apple ID and the log was generated with a credible source. The apple ID/phone should not be associated with anything and no APP dev account should be associated within the log. Additionally my phone/apple ID that this log is associated with I am wondering if someone can tell me if there is anything to support or speculate that the phone is being shared or bundled in some fashion of any kind to share data, location, apps, or if there is anything such as coding of any kind that is anything other then what your standard phone would look like right out of the box with default settings. It's my suspicion that the apple id/phone log would support the issues that's been present of many issues that can be explained later. Any help would be greatly [appreciated.]( Log of Apple ID/phone in question - https://developer.apple.com/forums/content/attachment/7c971c69-4a7c-43a4-b5e4-42e9e180d161 )
Posted
by Yoshi007.
Last updated
.
Post not yet marked as solved
0 Replies
112 Views
Hi, I looked through whole internet searching for some way to compress USDZ files for AR (Quick Look). I see there is some old blog post about Draco compression for USD - https://opensource.googleblog.com/2019/11/google-and-pixar-add-draco-compression.html . Does anyone know if Quick Look supports USDZ files with Draco compression? I haven't found any mention of it in the official documentations :/ Or maybe there is some other way?
Posted
by pawlox.
Last updated
.
Post not yet marked as solved
0 Replies
106 Views
I want to add a small banner to my AR model when viewed in QuickLook in my app. I haven't been able to find much information on this however I found this resource where it explains how to add it when you have a model on a website. My model is locally stored on the device so how would I add this?
Posted Last updated
.
Post not yet marked as solved
0 Replies
119 Views
How do I overlay an annotation/detail popup to AR Models in QuickLook? This was done with the WWDC Trading Cards AR Model. I haven't been able to find any other info on this. Here is an article which has an image of what I am referring to https://vrscout.com/news/apple-shows-off-ar-trading-cards-ahead-of-wwdc-2022/
Posted Last updated
.
Post not yet marked as solved
1 Replies
387 Views
I'd like to add a QuickLook Preview Extension to my Mac app (AppKit), however I don't see a template for the extension in Xcode 13 under macOS (though there is a templete for iOS). This seems to be a change as there was an extension template for Mac offered in Xcode 12. Is this simply an oversight, or are Quick Look Preview Extensions no longer a thing on the Mac?
Posted
by applezac.
Last updated
.
Post not yet marked as solved
0 Replies
131 Views
The WWDC '17 session for core spotlight said QLSupportsSearchableItems is only for "shoebox" apps and explicitly said it's not for document-based apps, but when trying to upload my UIDocumentBrowserViewController-based MacCatalyst app with a quicklook extension (the view-controller-based quicklook preview works great) to App Store connect, it prevents me from uploading without a QLSupportsSearchableItems keys in my quicklook extension's info.plist, and it prevents me from uploading it if the value is false (0). Is the app store validator correct, and I must have this key and it must be true? Do I have to implement func preparePreviewOfSearchableItem(identifier, and if so, can I just have it always fail? If it can't fail, how would I get a sandbox url for the document from a searchable item identifier? Also, Xcode won't find anything when I search for QLSupportsSearchableItems, which is not so much ironic as it is face-palmy.
Posted Last updated
.
Post not yet marked as solved
1 Replies
1k Views
It seems that on iOS 13 &amp; 14 environment probes are notably too dark, and never reach an acceptable brightness that matches the surrounding environment. Is there any way to get "reasonable" IBL lighting in QuickLook that is not like 50% gray all the time, without resorting to hacks such as using emissive colors/textures? Clearly there must be something wrong with the IBL estimation, as the same scene in Google SceneViewer is very bright and nice under the same circumstances. The issue reproduces for example with the QuickLook gallery; the ceramics piece there is nearly 100% white as per the USD file but renders dull and gray next to a physical ceramics piece. Video of the issue: drive.google.com/file/d/14mVQFTNe6pO_4tYNIvpZa9eAS2YzoVPO/view?usp=sharing More pictures: drive.google.com/drive/folders/1ej6g-gpBAu53z2Zn08eQFNZAkTmDA_XJ?usp=sharing Note that in those pictures, all spheres in that grid are purely white, with varying degrees of metallic and roughness being the only difference. My expectation would be that the diffuse ones would appear "white" and not dark grey; seems impossible to get a "realistic" picture. Happens here as well: https://developer.apple.com/augmented-reality/quick-look/models/cupandsaucer/cup_saucer_set.usdz
Posted
by herbst.
Last updated
.
Post not yet marked as solved
0 Replies
121 Views
How to initiate the quicklook in object mode directly (but you can still switch the slider to AR if you like)? func previewController(_ controller: QLPreviewController, previewItemAt index: Int) -> QLPreviewItem { let url = Bundle.main.url(forResource: modelsName[selectedModelIndex], withExtension: "usdz")! return url as QLPreviewItem
Posted
by Almo1389.
Last updated
.
Post not yet marked as solved
0 Replies
214 Views
Hi Community, I am using Googles Model Viewer (https://modelviewer.dev/) to display 3D-models in the webbrowser. It also enables the user to open the 3D-models in AR-Applications. On iOS, Quick Look will be opened. It all works fine and well, except when the web space directory is protected by HTTP Basic Auth (protection of the usdz-model-files is a requirement of my client). As I understand it, Quick Look looses (or does not have any access to) the HTTP session, and therefore is not authenticated when trying to access the usdz-file on the protected web space directory. The error message in Quick Look is: "Object requires a newer version of iOS". Is there any way to open an usdz-file that is on a protected web space directory with Quick Look?
Posted Last updated
.
Post not yet marked as solved
3 Replies
425 Views
I've got an app with a quicklook generator bundled within it. The app opens port 42222 for localhost queries. The quicklook generator fails to connect to the socket. The log shows these 2 sandbox errors: Sandbox: 1 duplicate report for java deny(1) file-read-data /private/etc/hosts Sandbox: ExternalQuickLoo(1253) deny(1) network-outbound*:42222 ... which is weird because the app isn't sandboxed: % codesign -d --entitlements :- /Applications/Test.app                                                          Executable=/Applications/Test.app/Contents/MacOS/Test The same code functions correctly when executed from a separate app running on the same machine (rather than from the generator). Any idea why the quicklook generator isn't able to connect to a localhost socket? ... or why sandbox rules are being applied to a non-sandbox app?
Posted
by bamwu.
Last updated
.
Post not yet marked as solved
0 Replies
203 Views
Somehow my QuickLookUIService Preview Sierra 10.12 has stopped working and cannot preview audio files neither with video files ... I have tried to Force Quit in activity Monitor but the file QuickLookUIService doesn´t appear to be in the system so it is not in the Library Folder Quick Look. Any solution for this? Thanks!
Posted Last updated
.
Post not yet marked as solved
2 Replies
303 Views
Hi, When using FileProvider, files visualised in Finder does not trigger a download to visualise or audition the file when hitting space (for quicklook) Can this be configured somehow?
Posted
by jomentino.
Last updated
.