Insert Image

From Computing and Software Wiki

(Difference between revisions)
Jump to: navigation, search
(New page: '''Insert Image''' is a script editing tool that allows the editor to basically "upload" a picture by importing it as a texture into the world editor (by following the tutorial found at [[...)
Line 1: Line 1:
-
'''Insert Image''' is a script editing tool that allows the editor to basically "upload" a picture by importing it as a texture into the world editor (by following the tutorial found at [[Importing Textures]]).  By placing the texture in the appropriate folder as indicated in the importing tutorial, the editor can place this picture any where on the head up display.  Inserting an image has many options available to alter the positioning and sizing of the picture however he/she wants.  Firstly, there is a constraint of 20 unique pictures that can be displayed on the head up display.  This should be a sufficient number to provide the editor to create the experiment that he/she desires.  It is possible to just move an existing image instead of creating a new one and that is explained in the [[Move Image]] tutorial.
+
'''Insert Image''' is a script editing tool that allows the editor to basically "upload" a picture by importing it as a texture into the world editor (by following the tutorial found at [[Importing Textures]]).  By placing the texture in the appropriate folder as indicated in the importing tutorial, the editor can place this picture any where on the head up display.  Inserting an image has many options available to alter the positioning and sizing of the picture however he/she wants.  '''Important note:''' there is a constraint of ''20'' unique pictures that can be displayed on the head up display.  This should be a sufficient number to provide the editor to create the experiment that he/she desires.  The editor also has the option to just move an existing image instead of creating a new one and that is explained in the [[Move Image]] tutorial, thus allowing reuse of an image.
 +
 
 +
The '''Insert Image''' has an interface that requires the following to initialize an image: A picture ID that uniquely identifies the picture, the height and width of the picture (this can be adjusted to the liking of the editor and DOES NOT require it to be the same size as the imported texture, however, note that distortion of the original picture may occur when the sizes changes are not in the original ratios), and either an absolute position (x,y in pixels) referenced from the top left corner of the screen as (0,0) or choose a preset value (1-9) describing 1: Top eft, 2: Top Center, 3: Top Right, 4: Left Center, 5: Center, 6: Right Center, 7: Bottom Left, 8: Bottom Center, and 9: Bottom Right.  This allows the advanced user to either specify an exact location for enhanced accuracy, or for pictures that do not require precise positioning to use just the preset locations for easier location computation.
 +
 
 +
For the advanced users, the calculation of the absolute position of the picture takes reference as the top left corner of the picture.  For instance, if the position was chosen to be at (200,200), then the top left corner of the picture will be placed at (200,200).  The preset values will automatically center the picture at one of the preset locations.

Revision as of 13:58, 17 March 2008

Insert Image is a script editing tool that allows the editor to basically "upload" a picture by importing it as a texture into the world editor (by following the tutorial found at Importing Textures). By placing the texture in the appropriate folder as indicated in the importing tutorial, the editor can place this picture any where on the head up display. Inserting an image has many options available to alter the positioning and sizing of the picture however he/she wants. Important note: there is a constraint of 20 unique pictures that can be displayed on the head up display. This should be a sufficient number to provide the editor to create the experiment that he/she desires. The editor also has the option to just move an existing image instead of creating a new one and that is explained in the Move Image tutorial, thus allowing reuse of an image.

The Insert Image has an interface that requires the following to initialize an image: A picture ID that uniquely identifies the picture, the height and width of the picture (this can be adjusted to the liking of the editor and DOES NOT require it to be the same size as the imported texture, however, note that distortion of the original picture may occur when the sizes changes are not in the original ratios), and either an absolute position (x,y in pixels) referenced from the top left corner of the screen as (0,0) or choose a preset value (1-9) describing 1: Top eft, 2: Top Center, 3: Top Right, 4: Left Center, 5: Center, 6: Right Center, 7: Bottom Left, 8: Bottom Center, and 9: Bottom Right. This allows the advanced user to either specify an exact location for enhanced accuracy, or for pictures that do not require precise positioning to use just the preset locations for easier location computation.

For the advanced users, the calculation of the absolute position of the picture takes reference as the top left corner of the picture. For instance, if the position was chosen to be at (200,200), then the top left corner of the picture will be placed at (200,200). The preset values will automatically center the picture at one of the preset locations.

Personal tools