Object3D.AddShapePicture Method

Creates a flat, rectangular model from a REALbasic picture, with white pixels appearing transparent. The picture is treated as a 16-bit image regardless of the original color depth.

Syntax
Object3D.AddShapePicture image, scale, [insertPos]

Parameters
image | Picture
scale | Double
insertPos | Integer (Optional)

# Notes

A scale of 1.0 means that each pixel of the picture is 1 unit across in the 3D space. The scale value of 0.5 means that each pixel in the original is half a unit wide in the 3D space.

Pictures are padded internally to a power of 2 in both width and height. For example, if the original picture i s 100 x 20 pixels, this will be padded internally to 128 by 256. To make the most of the available texture memory, use pictures that are a power of 2 in both directions.

The optional parameter insertPos specifies the 0-based position at which the new shape should appear in the shape list.