Experiment generator how to guide: DisplayPanel

The DisplayPanel user interface component used to display stimuli to the user

ClassDescriptionInput data in list file on each lineexample line
experiment.examples.ImageDisplayPanelDisplay a static imageimage namemyimg.png
experiment.examples.MorphImagePanelMorph 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.MorphPanelTransforms a 3D model..obj file namemyface.obj
experiment.examples.ObjectPanelDisplays a 3D model.obj file namemyface.obj
experiment.examples.TransformImagePanelDisplays 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