CGTalk > Software Specific Forums > Autodesk 3ds max > 3dsMax SDK and MaxScript
To minimize the ads you see on this page create a CGTalk account and log in HERE
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-20-2012, 03:00 PM   #1
lo
the frequentest!
portfolio
Rotem Shiffman
Tel Aviv, Israel
 
Join Date: Jul 2005
Posts: 2,822
[SDK] What do these undocumented methods do?

Code:
void* Bitmap::GetVFBData ( ) void Bitmap::SetVFBData ( void * vfb ) DWORD Bitmap::GetModifyID ( ) void Bitmap::SetModifyID ( DWORD m ) BMMExport void Bitmap::IncrModifyID ( )


Seeing how it's been about 17 years since the Bitmap class was written I thought the documentation would be completed at some point...
Does anyone have any idea what any of these methods do or what is the data they return?
 
Old 03-20-2012, 04:30 PM   #2
spacefrog
Frog of the posts
 
spacefrog's Avatar
Josef Wienerroither
Freelance
Vienna, Austria
 
Join Date: Sep 2002
Posts: 2,362
Not knowing, just guesswork

From Bitmap.h
Code:
private: .... DWORD modifyID; // changes when bitmap changes: used in render effects void *vfbData;

Code:
public: inline void *GetVFBData( ) { return vfbData; } inline void SetVFBData(void *vfb ) { vfbData = vfb; } .... DWORD GetModifyID() { return modifyID; } void SetModifyID(DWORD m) { modifyID = m; } BMMExport void IncrModifyID();


After browsing through bitmap.h, they are simple accessor functions to some private members of the Bitmap Class ( private void *vfbData and private DWORD modifyID respectively)

i bet the void *vfbData simply is used to store some arbitrary, max internal data with the bitmap to implement some of the VFB functionality, it's already there in Max 7 SDK (do not have access to older versions), so it was'nt introduced with it's extended VFB render controls in Max 2009 ...

The modifyID on the other hand is, - according to Bitmap.h - used when dealing with effects rendering ( as they are bitmap based) , again i only guess that they are used to allow effects being rendered in the correct sequence
__________________

PowerPreview: High Quality Nitrous Previews for 3ds Max 2012|2013|2014

[ Free Download (ScriptSpot) ]

Home of The Frogs | Online Portfolio

Last edited by spacefrog : 03-20-2012 at 04:36 PM.
 
Old 03-20-2012, 04:46 PM   #3
lo
the frequentest!
portfolio
Rotem Shiffman
Tel Aviv, Israel
 
Join Date: Jul 2005
Posts: 2,822
Quote:
Originally Posted by spacefrog
After browsing through bitmap.h, they are simple accessor functions to some private members of the Bitmap Class ( private void *vfbData and private DWORD modifyID respectively)

i bet the void *vfbData simply is used to store some arbitrary, max internal data with the bitmap to implement some of the VFB functionality, it's already there in Max 7 SDK (do not have access to older versions), so it was'nt introduced with it's extended VFB render controls in Max 2009 ...

The modifyID on the other hand is, - according to Bitmap.h - used when dealing with effects rendering ( as they are bitmap based) , again i only guess that they are used to allow effects being rendered in the correct sequence


Thanks, I saw those private members but missed the part about modifyID being related to effects.
void* vfbData does contain some non-null pointer but it's not castable to IImageViewer* or IMaxBitmapViewer*, it's not clear what it's pointing to.
 
Old 03-20-2012, 04:46 PM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:36 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.