|
|
Sorry, for some reason, the first paragraph there got cut off, so I sound
like a rude bastard starting off my post with "Anyway,"... I originally
started it off with, "Hey, this is my first post here. We'll see how it
goes.. I think I made the mistake of emailing mor### [at] stmuccom about this
problem before I realized I should really just ask it here. Too late,
though..."
"Doug" <dka### [at] stevensedu> wrote:
> Anyway, I'm trying to make a pluging for Moray v3.5, and I want to be able
> to bind other scene objects to it, as if the plugin object were a group, so
> that it would then be the parent of those objects. However, in the Moray
> SDK, in plugin.h, the attribute I'd want is listed as:
>
> #define MRY_ATTR_IS_GROUP (0x00000100) /* not used yet */
>
> I decided to just make sure and included it anyway (in the hopes that the
> comment was old):
>
> DEFINE_STATICS(CPhotonMagnet,"Photon Magnet","PhotonMagnet%03d",
> MRY_ATTR_CAN_BE_GROUPED |
> MRY_ATTR_CAN_BE_CSGD |
> MRY_ATTR_CAN_BE_REFERENCED |
> MRY_ATTR_CAN_BE_TEXTURED |
> MRY_ATTR_CAN_BE_XFORMED |
> MRY_ATTR_CAN_USE_PHOTONS |
> MRY_ATTR_IS_GROUP | // <- usage of this
> attribute
> MRY_ATTR_HAS_OBJ_PARAMS);
>
>
> But of course doing this had no effect, so the comment indeed was speaking
> the truth. I've tried some other methods of setting this manually then, in
> an effort to make the object's nObjectType = MRY_SCN_GROUP, but all this
> has led to has been sporadic crashing of Moray (without it actually doing
> anything useful first, of course).
>
> Is there another way I could do this? I have an idea of how to work around
> this by changing how I'll implement my plugin, but it won't be quite as
> useful.
>
>
> Thanks,
> Doug Kavendek
Post a reply to this message
|
|