|
|
Wild Magic's 3ds max plugin(??D?出???)
我用Wild Magic's 3ds max plugin?出一??Box(有一????D)
?绦?impleView.exe的?r候,?s出?ASSERT,???是D3DXCreateTextureFromFileInMemoryEx失?∷?
我的Box的??D是max?冉ǖ?ommon 5-512.bmp
max是8.0,有灌service pack3
我??ox的??D移除後,?绦惺钦??
???一下用Wild Magic's 3ds max plugin?出max的模型?r,??D的?n名或是?格有何?定??
ms_hResult = D3DXCreateTextureFromFileInMemoryEx(
m_pqDevice,
aucFileInMemory,
iFileBytes,
0, // take width from file
0, // take height from file
0, // create full mip chain
0,
(D3DFORMAT)ms_adwTexFormat[pkImage->GetFormat()],
D3DPOOL_MANAGED,
D3DX_DEFAULT, // D3DX_FILTER_TRIANGLE | D3DX_FILTER_DITHER
D3DX_DEFAULT, // D3DX_FILTER_BOX
0x00000000, // disable opaque colorkey
0, // D3DXIMAGE_INFO
0, // no PALETTEENTRY
&pqTexture
);
assert( SUCCEEDED(ms_hResult) ); |
|