Re: FxTexture size for image well images
Re: FxTexture size for image well images
- Subject: Re: FxTexture size for image well images
- From: Darrin Cardani <email@hidden>
- Date: Thu, 5 Aug 2010 11:04:19 -0700
On Aug 5, 2010, at 11:01 AM, Ben Syverson wrote:
> Hi all,
>
> I have an FxPlug that takes extremely small images as parameters, and I'm having trouble determining the "true" size of the source image. When I pass a 60x10 pixel image in, sometimes the FxTexture reports its width and height as 62x13, but sometimes it reports it as 60x10.
>
> If [fxTexture width] is the wrong way to get the "true" width of the texture, I would love to know the correct way. Is the problem that the image is getting resampled/antialiased before becoming a texture?
>
> Also, it would be great to be able to access the source image at full scale, even if the render is not full scale. In other words, when rendering a thumbnail, I still need all 60x10 pixels of that parameter image. As it is, it's getting downscaled to a useless 6x4 pixels.
>
> I'm now forced to implement a custom UI so I can load images from the file system. It's the only way I can reliably produce an FxTexture exactly the size of the image. I really hate reimplementing the functionality of a built-in parameter type. It's such a hacky workaround.
>
> Any advice would be appreciated!
Ben,
I assume this is in Motion and not FCP, right? Motion will sometimes render anti-aliased edges around objects. I thought we had fixed cases where we passed these to plugins, but it appears not.
If you want to get the full-sized images, you can always use the TemporalAPI. That will always return a full-sized image. You can pass it the current time if you want.
[FxTexture width] is the correct way to get the width of an FxTexture. You can also ask for its texture coords and see what those say.
Let me know if you have any other questions.
Thanks,
Darrin
--
Darrin Cardani
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden