POV-Ray : Newsgroups : moray.win : Defining plugin as a group : Defining plugin as a group Server Time
25 May 2024 22:30:50 EDT (-0400)
  Defining plugin as a group  
From: Doug
Date: 15 Jun 2004 13:05:00
Message: <web.40cf2b199d58a590ded0eafc0@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.