magicien / GLTFQuickLook

macOS QuickLook plugin for glTF files
MIT License
236 stars 9 forks source link

issue installing on MacOS Sierra #3

Closed jmlg10 closed 6 years ago

jmlg10 commented 6 years ago

Hello,

I've tried installing glTFQuicklook.qlgenerator on my mac, but it don't run.

trying debugging launching qlmanage by hand, I get this:

#################

magicien commented 6 years ago

Sorry, this plugin is available for macOS 10.13 (High Sierra) or later. I will add the system requirement to README.md.

donmccurdy commented 6 years ago

It's working in Sierra (10.12.6) for me actually

jmlg10 commented 6 years ago

Good news, but how did you install it?

regarding the log I get from my "terminal" what's wrong in my installation?

donmccurdy commented 6 years ago

The normal instructions just worked for me; not sure why sorry. 😐

jmlg10 commented 6 years ago

Not for me.. May be for security reason in my corporate environment...(antivirus or something like that)

I should have to try on a more opened system at home...

magicien commented 6 years ago

SCNNode.worldPosition is defined at macOS 10.13 SceneKit. I used it for centering a model on a thumbnail, but I don't think it affects previews. The problem is that SceneKit changed behavior at macOS 10.13, and I optimized the code to High Sierra, so it might cause problems in Sierra.

The dyld warning is about GLTFSceneKit (Runpath Search Paths value). I think I can fix it, but this log doesn't affect this plugin. I'm not sure about bootstrap_register errors... It might need sandboxing to stop the errors.

jmlg10 commented 6 years ago

hello,

I've upgraded my Mac with High Sierra (10.13.1) and get the same issues...

May be it's because some security issues? how can I check ?

jmlg10 commented 6 years ago

Ok, Done I get 2 files in the /path/outputDir a Preview and PreviewProperties.plist but no windows with the scene open. I get still an warning message in the terminal about LC_RPATH @executable_path...

jmlg10 commented 6 years ago

How Am I suppose to open the Preview.scn file? A Double click on it give no result. An "Open with" "Apercu"(Preview app in French) don't give better results...

On the other hand the command: qlmanage -o /outputdir/ -p file.glb Give a "Preview" file but without ".scn" as extension.

jmlg10 commented 6 years ago

when I select your "Preview.scn" file and hit spacebar I get a window like this: screen shot 2017-11-27 at 09 06 54

magicien commented 6 years ago

I guess Verto Studio 3D tried to show the thumbnail and preview instead of SceneKit.qlgenerator.

What GLTFQuickLook does is to convert gltf data into SceneKit data (.scn format) and pass the data to QuickLook service. By default, SceneKit data is handled by SceneKit.qlpreview, but it seems that Verto Studio 3D handles scn data on your mac.

I think you can see a preview with this command: qlmanage -g /System/Library/QuickLook/SceneKit.qlgenerator -c com.apple.scenekit.scene -p Preview.scn

And you can check which QLGenerator is used for scn files with this command: qlmanage -d 1 -p Preview.scn

By default, the command log looks like (SceneKit.qlgenerator is used):

[DEBUG] Previewing file:///path/to/Preview.scn. Content type UTI: com.apple.scenekit.scene. Generator used: <QLGenerator /System/Library/QuickLook/SceneKit.qlgenerator>

jmlg10 commented 6 years ago

I've installed Xcode, so I get the /Include folder but all is not clear, I get the preview only via command line. Do I have to disable System Integrity Protection too? The worst is that even if all this manips can be made on my computer, I can't imagine doing this on all the Mac of the company...(and the IT dept neither)... Have you a way to make installation "lighter" ?

magicien commented 6 years ago

It's weird that you had to install Xcode. I don't have /usr/include directory either. I guess qlmanage command itself outputted 'Permission denied' logs. Whenever I use qlmanage command, I get 'Permission denied' logs even if it's a text file or an image file.

Could you please try v0.2.1? I changed some options for QuickLook API. I hope it changes something.

And can you get qlmanage -m command log? I would like to see the QL plugin list.

jmlg10 commented 6 years ago

Sorry, But if we consider this issue closed Is it possible to delete this feed? Thanks

magicien commented 6 years ago

Thank you for your cooperation!

If I get the preview with Quicklook feature activated, is it normal I don't get the preview in "Cover Flow mode" ?

I'm not sure if it's normal, but it could happen.

Do you mean that you want to delete this issue? I can't delete your first comment, but I can make it empty and delete all other comments in this issue if you want.

jmlg10 commented 6 years ago

Yes, that's the idea, I shall remove all unwanted informations in my first comment. Thanks Jmlg

magicien commented 6 years ago

Ok. Are you ready to delete?

jmlg10 commented 6 years ago

Yes, on the other hand, I've got another issue after uninstalling the gltf-viewer of Bwasty (https://github.com/bwasty/gltf-viewer) I lose the PBR rendering in your quicklook viewer. I don't know why, and what the installation of his app modifye the system. can you have a look? Many Thanks

magicien commented 6 years ago

I have deleted some comments which have logs.

I don't think gltf-viewer affects QuickLook, because it is a stand-alone binary file. I guess applications or other QuickLook plugins do something.

Can you get qlmanage -m command log? Please make sure the log doesn't contain information which you don't want to send.

jmlg10 commented 6 years ago

I understand, for me also it's quite strange. But on my system it happens. After installing/desinstallng glTF-viewer, your quicklook plug-in don't shows PBR rendering anymore. I don't know how to recover it.