Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to add custom mesh display in viewport for my SimpleObject2 plugin. As I understood for this case, the plugin class should also be derived from IObjectDisplay2, like:
#include <Graphics/IObjectDisplay2.h>
class maxProject24 : public SimpleObject2, public MaxSDK::Graphics::IObjectDisplay2
{...
protected:
virtual bool PrepareDisplay(
const UpdateDisplayContext& prepareDisplayContext);
virtual bool UpdatePerNodeItems(
const UpdateDisplayContext& updateDisplayContext,
UpdateNodeContext& nodeContext,
IRenderItemContainer& targetRenderItemContainer);
};
But when I try to do this, I get the error "object of abstract class type "maxProject24" is not allowed"
Also, when I trying to use just a class name without a MaxSDK::Graphics namespace, VS underlines it in red and says that "'IObjectDisplay2': base class undefined", although it opens IObjectDisplay2.h without any problem when contextually selected ("Go To Definition").
Please help me figure out what I'm doing wrong, and what could be the problem? Thx!
Solved! Go to Solution.