renderMap equivalent in maxsdk

Not applicable
02-08-2021
02:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I am aware that RenderBitmap and RenderTexmap can be used in the SDK
However, as far as I have tested, these functions work with BMM_TRUE_32
Below is my code and it fails when the bitmap is of BMM_TRUE_24 type
BitmapInfo newBmpInfo(bm->GetBitmapInfo());
newBmpInfo.SetWidth(newWidth);
newBmpInfo.SetHeight(newHeight);
Bitmap* newBmp = TheManager->Create(&newBmpInfo);
bmtex->RenderBitmap(GetCOREInterface()->GetTime(), newBmp, 1.0, TRUE); //This will fail if newBmpInfo is of BMM_TRUE_24 type
newBmp->OpenOutput(&newBmpInfo);
newBmp->Write(&newBmpInfo);
nnewBmp->DeleteThis();
I then checked renderMap in maxscript and it seems to work alright for _24 types. Any pointers to achieve similar in C++?