Author Topic: Accessing Corona Bitmap in 3ds max  (Read 3324 times)

2017-09-12, 15:02:00

Nikys

  • Active Users
  • **
  • Posts: 5
    • View Profile
Hello everyone. I've asked people before how to access Corona Material in 3ds max using C++ SDK. Solution was working, but now, when I want to access Corona Bitmap I feel as something is burning down my spine.

I tried to use common approach and look at ClassName of Corona Bitmap. And what I see? Bitmap's class name almost always is the name of the image it uses! The only solution I see right now is getting local name of first (and only) paramblock of the bitmap which is "Corona BitmapTex PB" for now.
Though I already can predict how many pains I'll get when it will be changed or something else.

Is there any "civil" way to recognize that I'm working with Corona Bitmap in 3ds Max C++ SDK?

2017-09-12, 15:10:23
Reply #1

Nikys

  • Active Users
  • **
  • Posts: 5
    • View Profile
(0xabba5784,0x65484244)
Is it valid Class ID for Corona Bitmap that is not going to be changed?

2017-09-13, 16:57:33
Reply #2

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 8907
  • Turning coffee to features since 2009
    • View Profile
classID check will work. Also we fixed it so the classname wont change in latest builds.

generally I would advise on using class IDs from C++ code, they are faster and less likely to change ever
Rendering is magic.
Private scene uploader | How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)