|
From: Dair G. <da...@re...> - 2004-10-05 22:41:01
|
Roger Holmes wrote:
>>> If it does, shouldn't Q3Transform_GetMatrix work on it? At present
>>> it gives an assertion error.
>>
>> It should work (i.e., not fail), although it won't return anything
>> sensible. It should call down to e3transform_camera_rasterize_matrix,
>> which will return an identity matrix for want of anything else.
>>
>> Where do you get the assert from?
>
>It asserts that the object is of type transform, but this fails.
I.e., the assert that's firing is the first one inside
Q3Transform_GetMatrix in QD3DTransform.c?
I don't see that fire here (current cvs) - I'm using the following as a
test:
{ TQ3TransformObject theTransform;
TQ3Matrix4x4 theMatrix;
=20
theTransform =3D Q3RasterizeCameraTransform_New();
Q3Transform_GetMatrix(theTransform, &theMatrix);
}
If I step into that assertion, the transform object has type 'rast' and
its immediate parent is 'xfrm' which is what the assert verifies.
-dair
___________________________________________________
mailto:dair+refnum.com http://www.refnum.com/
|