Probably you're overwriting your memory at some place during loading... Any
chance you might be stomping on some of SL's pointers?
Wessam Bahnassi
Microsoft DirectX MVP,
Programmer
Electronic Arts
--
In|Structurez Arabic Gamedev Community
www.instructurez.com
> -----Original Message-----
> From: owner-3dgames(at)Softimage.COM [mailto:owner-3dgames(at)Softimage.COM] On
> Behalf Of Andi "Debug" Ireland
> Sent: Thursday, August 31, 2006 8:52 AM
> To: 3dgames(at)Softimage.COM
> Subject: Shape()
>
> I keep getting an issue with the shape object when i grab the CSLBaseShape
> from
> a CSLMesh the shape always has a pointer value of NULL or 0x0000001
>
> the mesh object has everything else i can look at the triangle lists
> without a problem but no shape object?
>
> i simplified the code into a few lines ( no error checking etc ) to show
> my flow
>
>
>
> CSLScene dotXSI;
>
> dotXSI.Open( mb_scene_file ); // Succeeds
> dotXSI.Read() // Succeeds
>
> CSLModel * root = dotXSI.Root();
>
> xsi_model is obtained just by recursing through root and its children
>
> if( xsi_model->GetPrimitiveType() == CSLModel::SI_MESH )
> {
> CSLMesh * xsi_mesh (CSLMesh*)xsi_model->Primitive()
> CSLBaseShape * shape = xsi_mesh->Shape(); // shape == NULL PTR
>
>
>
>
> i tested using Wessam's dotxsi file from his 3rd tutorial on In|frames
> and any of my friends or my own dotxsi files all with the same result.
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe 3dgames
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe 3dgames