Hey Team .
I'm using FxPlug SDK 1.2.2 - running Motion 3.0.2.
During the -renderOutput call, I grab the pixels from a Bitmap from an image well and apply it as a texture to a 3D object (we create the 3D object and render it).
I'm finding that if I put a Group into the image well, the pixels I retrieve aren't quite what I'd expect. Some pixels seem to be missing.
If I put in a child of the Group, the resulting image looks correct.
The only thing different code-wise is what's put into the image well.
Here's an image describing what I'm seeing:
Note the missing pixels around the Quarter-res render with the Group in the image well. As I change the downsizing of the resolution (half/third/quarter), more and more pixels become missing.
I'm accessing the Bitmap with:
[inParmsApi getBitmap: &map
layerOffsetX: (double *) NULL
layerOffsetY: (double *) NULL
requestInfo: inRenderInfo
fromParm: paramIndex
atTime: inFrame] ;
The width/height are what I'd expect. The inRenderInfo is from the -renderOutput call. I tried setting scaleX/Y to 1, but it didn't help.
I'm extracting the pixels from the input Bitmap with:
unsigned char *pix = (unsigned char *) [inBitmap dataPtrForPositionX:inX
Y:inY] ;
Has anyone seen this problem?
Am I simply not accessing the pixels properly?
And why would it not work when applying the Group, but work fine when applying the contents of the Group?
Thanks.
Matt Rhodes
Zaxwerks, Inc.