|
Hey everyone, I’m trying to simply create a plane and then set a texture to it from the SDK but for some reason partial alpha’s do not show up at all. It seems if there is any alpha at all, 3Ds Max will just view the pixel as full alpha. Everything else seems to show up correctly.
The strangest thing is that after I create the object and go to the Material Editor, all I have to do is Deselect and Select “Show Standard Map in Viewport” and all the alpha values will show up correctly. Shouldn’t that button be the same as setting the MTL_TEX_DISPLAY_ENABLED flag for the material from the Max SDK?
// Set The Texture
BitmapTex* bitmapTexture = NewDefaultBitmapTex()
bitmapTexture->SetMapName( pictureFile )
bitmapTexture->SetAlphaAsMono( TRUE )
bitmapTexture->SetName( "pictureTexture" )
// Create a material to the node StdMat2* planeMat = NewDefaultStdMat()
planeMat->SetSubTexmap( ID_DI, bitmapTexture )
planeMat->SetSubTexmap( ID_OP, bitmapTexture )
planeMat->SetName( "pictureMaterial" )
planeMat->SetActiveTexmap( bitmapTexture )
// set node node->SetMtl( planeMat )
// Activate the Texture ip->ActivateTexture( bitmapTexture, planeMat )
planeMat->SetMtlFlag( MTL_DISPLAY_ENABLE_FLAGS )
Any ideas would be great
|
|
|