repetier / Repetier-Host-Mac

Host programm for RepRap like 3d printer.
69 stars 35 forks source link

Feature Requst: Quick Look #34

Open Newton715 opened 11 years ago

Newton715 commented 11 years ago

It would be great if Repetier would use the Quick look feature to allow previewing of an stl file quickly, and an even further extension of that to see the G-Code generated 3d image. A feature like this would be similar to previewing a collada file (.dae) format that is built into OSX, and allow for quickly viewing the object from finder, as well as rotating the object. A few projects already provide this function, but if it was added to repetier, and utilized the libraries that are already there, then this would be a cleaner implementation. This feature would also provide a way of creating a thumbnail of the object to replace the default icon.

repetier commented 11 years ago

Looks like a complicated feature, but I like it. When I get the time I will see how this is done in mac os and if I can do it.

Newton715 commented 11 years ago

I think most of the difficult parts you have already implemented into repetier. I'm still spending some time reading repetier's code, but I might see if I can implement it.

repetier commented 11 years ago

The big thing missing is capturing an openGL view as image. I can imagine that the os function for the previews need a image as return value so the host would need to render into an invisible openGL view and return it as image. And of course to figure out how to add such hooks to mac os.

Newton715 commented 11 years ago

Here is one of the projects where this functionality has already been implemented. https://github.com/zaggo/Pleasant3D

repetier commented 11 years ago

Good project to learn. Unfortunately the wrong licence to include/copy code. Bur from that I got the framework name needed to implement the functionality.

A reference can be found here: https://developer.apple.com/library/mac/documentation/userExperience/Reference/Quicklook_Framework_Reference/Quicklook_Framework_Reference.pdf