Re: A few tech questions about shared ObjectRef Variables

Wataru KAMEYAMA (wak@gctech.co.jp)
Fri, 21 Mar 1997 19:51:48 +0900

Hello,

First of all, section 51 of MHEG-5 would help you. But, I'll try to
answer you. Other members, please correct me if I'm wrong.

Emmanuel wrote:
> Let me take an example :
>
> I have 1 application group and 2 scenes.
>
> In the application group, I define the ObjectRef variable :
> {:ObjectRefVar 1
> :OrigValue :ObjectRef 1
> }
>
> In scene 1 and scene 2, I have a visible with object identifier 1
> {:Bitmap 1
> ... // all needed attributes
> }
>
>
> * Q1 *
> At the beginning, if I use the objectRefVar within the scene 1, which
> object will it refer to ? The internal object 1 of the application (the var
> itself) or the internal object 1 of the scene (the bitmap 1 of scene 1) ?

According to the rule II A in section 51, the first reference shall be
("application" 1).

> * Q2 *
> In scene 1, I make an action ":SetVariable (("application" 1)
> :GObjectRef 1)".
> After this action, same question as 1, which object will it refer to ? The
> internal object 1 of the application (the var itself considered as answer
> A1 in the following) or the internal object 1 of the scene (the bitmap 1 of
> scene 1 considered as answer A2) ?

Because the action is included in scene 1 and because of the rule I A,
:GObjectRef 1 shall be regarded as ("scene 1" 1).

> * Q3 *
> If Q2A2,
> I now make a transition to scene 2. Within scene 2, does the ObjectRef var
> point to bitmap 1 of scene 1, or to bitmap 1 of scene 2 ? What is the
> effect of using it as target of say a SetPosition action ?

Now the ObjectRefVar is actually referring ("scene 1" 1). You cannot
use it in scene 2 context.

In any case, you may encode GroupIdentifier to avoid confusion. It
will not hurt so much the encoded object size.

I hope it helps you.

Regards,

** Wataru KAMEYAMA, Graphics Communication Laboratories, JAPAN
** TEL: +81 3 5351 0181
** FAX: +81 3 5351 0185
** wak@gctech.co.jp ($B55;3!!>D!w#G#C#L(B in KANJI)