The DisplayPanel user interface component used to display stimuli to the user
Class | Description | Input data in list file on each line | example line |
---|---|---|---|
experiment.examples.ImageDisplayPanel | Display a static image | image name | myimg.png |
experiment.examples.MorphImagePanel | Morph between two images | <image 1 name> <template 1 name> <image 2 name> <template 2 name > | left.jpg left.tem right.jpg right.tem |
experiment.examples.MorphPanel | Transforms a 3D model. | .obj file name | myface.obj |
experiment.examples.ObjectPanel | Displays a 3D model | .obj file name | myface.obj |
experiment.examples.TransformImagePanel | Displays an image transform | <image name><template name> | myimg.jpg myimg.tem |
Several of the above require some additional information for initialisation, this should be specified in the initialiser parameter of the main .properties file. For example the TransformImagePanel requires the name of the start and end image and template defining the transform e.g.:
initialiser="male.jpg male.tem female.jpg female.tem"
The ObjectPanel requires the name of a seperate properties file containing some lighting information i.e.:
initialiser=lighting.properties
where lighting.properties could look like
lightingOn = true lightPosition = 1.0 1.0 0.0 0.0 lightAmbient = 0.25 0.25 0.25 lightDiffuse = 0.6 0.6 0.6 lightSpecular = 0.15 0.15 0.15 materialAmbient = 0.25 0.25 0.25 materialDiffuse = 0.6 0.6 0.6 materialSpecular = 0.15 0.15 0.15 materialEmission = 0 0 0 materialShine = 1
The properties file for MorphPanel is similar, but should also have properties for the source, target and if to morph texture i.e.
source = males.obj target = females.obj morphTexture = true lightingOn = true lightPosition = 1.0 1.0 0.0 0.0 lightAmbient = 0.25 0.25 0.25 lightDiffuse = 0.6 0.6 0.6 lightSpecular = 0.15 0.15 0.15 materialAmbient = 0.25 0.25 0.25 materialDiffuse = 0.6 0.6 0.6 materialSpecular = 0.15 0.15 0.15 materialEmission = 0 0 0 materialShine = 1