11 November 2004, 08:47 PM
Well as it turns out I was using "unsigned int" when I should have been using "int".
I was using MGlobal::executeCommand in order to get the value of an int optionVar. Unfortunately for me, I was passing the the executeCommand an unsigned int, eventhought executeCommand will only accept the standard "int". Because of this, my "x3dTextureWidth" and "x3dTextureHeight" values were still null. So when I attempted to put those values in to the MImage::resize procedure, the MImage object didn't get resized.
Unfortunately, the resize procedure was returning an "MStatus::KSuccess" value, instead of a kFailure value so it was more difficult for me to track down.
So long story short - making x3dTextureWidth and x3dTextureHeight "int" instead of "unsigned int" did the trick.
01 January 2006, 12:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.