[M4IF Technotes] URLs in PROTOS
Cyril Concolato
Cyril.Concolato enst.fr
Tue Oct 29 08:59:15 EST 2002
Hi Christian,
Since the proto field is an MFString you need to use a particular syntax
to signal to then encoder that the string will actually be an odid. Use
the following syntax "od:2" instead of "2" and it will work, at least
with mp4tool.
> PROTO testURL [
> exposedField MFString theURL []
> ]
> {
> Shape {
> geometry Bitmap {}
> appearance Appearance {
> texture ImageTexture {
> url IS theURL
> }
> }
> }
> }
> OrderedGroup {
> children [
> DEF testInstance testURL {
> url ["2"] # alternatively I tried: "url 2" and "url "2"
And of course the proto field name is not 'url' but 'theURL'.
> }
> ]
> }
Regards,
Cyril Concolato
--
Ecole Nationale Supérieure des Télécommunications, Paris
Dept. Comelec
46, rue Barrault 75013 Paris
Tel: +33145817991 Fax: +33145804036
More information about the Mp4-tech
mailing list