HomefieldOfView | SPi-V dev

Legend

  • required
  • not yet implemented

Navigation

user

<image>

Description

The image node is a container for one or more layers. It is referenced by either a panoelement or a uielement.

Syntax

<tour>
  <scene>
    <image id="imageID" width="256" height="256">
      <layer ... />
      ...
    </image>
    ...
  </scene>
</tour>

Attributes

  • id
    Unique id to reference the image by.
  • width
    Width of the image. Visual layers are stretched to this width. If no width is specified, all visual layers are scaled to the height of the first layer specified.
  • height
    Height of the image. Visual layers are stretched to this height. If no height is specified, all visual layers are scaled to the height of the first layer specified.

Children

History

  • 12-Feb-05: Fixed typo
  • 20-Apr-04: Initial version

the sample says id="behaviorI

the sample says id="behaviorID". I think it must be "imageID" (of course it is a custom name).
** ADMIN: fixed **

Re: <image>

I use the "Syntax Browser" often to browse/search for its syntax/use, however, from image I can't go back to one of its parents: uielement (neither pano*, nor the *groups).
This is true for many nodes, however, I think the ramp node has a complete browser, but then from behavior, I cant get back to ramp.

Not a big problem, it would be easier though...

EDIT: panoelement is nice too.

Re: <image>

The problem with this is that image nodes (like behavior nodes) can be children of many different nodes (panoelements, uielements, panogroup, uigroups, scenes, etc).