• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Downres'd Bitmap bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Downres'd Bitmap bug?


  • Subject: Downres'd Bitmap bug?
  • From: Matt Rhodes <email@hidden>
  • Date: Wed, 9 Apr 2008 15:39:22 -0700

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.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Downres'd Bitmap bug?
      • From: Darrin Cardani <email@hidden>
  • Prev by Date: NAB Party Reminder
  • Next by Date: Re: Final Cut Server API/XML interfaces
  • Previous by thread: NAB Party Reminder
  • Next by thread: Re: Downres'd Bitmap bug?
  • Index(es):
    • Date
    • Thread