|
Kineme PDF RendererRange for Crop patch dimensions to fit Screen Dimensions?Since the size of the image I'm displaying is a larger texture than what the billboard patch can render, I need to crop it to the section I wish to display. Since I want to pan around the image with mouse, I need to update the crop dimensions as user drags. The crop patch is hard-wired to pixel co-ordinates of the mouse ATM.* I want to put in a hard limit on how far (how much) the image will crop so that when the image is dragged to the edge of Window the cropping ceases to stop the image from shrinking the way it does in my composition. In the given example shrinking starts when Crop X <0 or Crop X >360; or when Crop Y <> 0. But I can hard-code those numbers since a window resize or image zoom changes everything. (There is a Zoom control published to Root which you can change). I'm having trouble discerning what the relationship of the Crop Inputs and the screen edges is. *At moment it just follows the mouse since I haven't written the 'dragging' code to detect mouse-down and update co-ordinates when users drags but that's not relevant to this problem.
(Kineme) PDF rendering on Billboard bug.I've been tracking an bug for months now that I'm going to call a Kineme PDF Renderer bug. There's a chance it is just in the QC pipelines. It seems to be associated with multipage PDFs rather than one page PDFs. Symptoms & things I've learnt about bug:
Why it matters:Wikipedia wrote: Despite such praise, PDFs from the image import defaults to a set resolution. When using bit map (TIFF, whatever) they scale up poorly when viewer size is increased (yuk interpolation). Less obvious is the fact that QC also scales down bitmaps poorly resulting in jaggies compared to an optimised image size. I guess mipmapping is a possible answer to this issue — only just thought of it. Kineme PDF Renderer has dynamic resolution and therefore generally gives a much cleaner edge on line art at any Viewer size, even when just set to a high res output and just left there. I tried a bunch of workarounds like loading single page PDF files into a queue from the Kineme PDF Renderer output but the bug eventually got me there too. In the end I just queued the Kineme PDF Renderer output at a compromise resolution for typical display size. Made sure no bug. Then saved the file to a plist with Structure to File. Would love to see this bug ironed out! It's being wasting me ;-)
|