Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

Does anyone know how to render a pointsprite in Mascot3? I've set the texture and call the drawPrimitive function as below. But all i get is "HI_FALSE". :mad:

hi_sint32 psprite[] = {8192,8192,0,0,0,256,256,M3DPSF_LOCAL_SIZE | M3DPSF_PERSPECTIVE};
IntArray ps;

ps.num = 1;
ps.array = psprite;

if(!IMICRO3D_Render_drawPrimitive(mMicro3D, &mRender,
M3DP_POINT_SPRITES | M3D_COLORKEY | (1 << 16),
NULL,NULL,
&ps,
NULL))
{
DBGPRINTF("Prim Error");

Note: mMicro3D and mRender are valid as the rest of the "World" is rendering okay.

TIA,

hai Skavenger,
Plz help me out how to use Micro3d in BREW. I created the innstance but it gets the value as NULL pointer. Code is given below
if (ISHELL_CreateInstance(game->pIShell, AEECLSID_IM3D_E31, (void **)&game->mpMicro3D))
return FALSE;
Here in my code mpMicro3D is getting null pointer.
Plz help me as soon as possible
Thnx
ami

hai Skavenger,
Plz help me out how to use Micro3d in BREW. I created the innstance but it gets the value as NULL pointer. Code is given below
if (ISHELL_CreateInstance(game->pIShell, AEECLSID_IM3D_E31, (void **)&game->mpMicro3D))
return FALSE;
Here in my code mpMicro3D is getting null pointer.
Plz help me as soon as possible
Thnx
ami