|
|
Yet again, my message seems to have been beheaded, and the first paragraph
has gone missing. I frankly don't understand what's doing that.. This
computer seems to like giving me troubles when using newsgroups..
Anyway, what I started off by saying was that I'm trying to make a plugin
such that its wireframe representation in Moray gets recalculated whenever
the object is transformed, since its current translation amount is used in
the wireframe calculation. However, I can get it to update this only when
an actual attribute is modified in the "modified" tab. I came up with a
way that I thought would do what I want, but it seems to ignore the
RedrawScene function I'm calling.
"Doug" <dka### [at] stevensedu> wrote:
> Here's the basic code (simplified a bit) for the function I have that I
> thought should handle this:
>
> long WINAPI SceneEvent(long hObjID,int nFlags)
> {
> switch (nFlags)
> {
> case MRY_NTC_OBJ_TRANSFORMED :
> {
> err_log << "TRANSFORMED : "<< hObjID << endl;
>
> g_pSceneFuncs->fnRedrawScene(MRY_SCN_DRW_RECALC &
> MRY_SCN_DRW_REDRAW_IMMEDIATE);
> }
> break;
> }
> return(MRY_SUCCESS);
> }
>
>
>
>
>
> After the object is transformed in any way, the TRANSFORMED message is
> indeed printed, but apparently the function underneith it, set to redraw
> the scene, doesn't seem to have any effect on the scene at all. Am I even
> doing this remotely correctly? Does anyone have any suggestions as to how
> to get this to work, or even an easier way to go about doing it?
>
>
> Doug Kavendek
Post a reply to this message
|
|