Open Newton715 opened 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.
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.
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.
Here is one of the projects where this functionality has already been implemented. https://github.com/zaggo/Pleasant3D
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
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.