[M4IF Technotes] URLs in PROTOS

Christian Weigel christian.weigel epost.de
Mon Oct 28 18:11:54 EST 2002


Hi,
I'm having problems using a url in a PROTO. Assuming that the
objectDescriptor with ID 2 contains a Jpeg the scene below should
display the image. But it doesn't. If i give the OD_id directly in the
PROTOs url field it works. I encoded it with both BIFSENC and mp4tool
from ENST with the same result. Any hints?
Christian
---
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" 
    }
  ]
}
AT 0 {
  UPDATE OD [
      {
        objectDescriptorID  2
        muxScript ....
      }
  ] 
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 09.09.2023


More information about the Mp4-tech mailing list