140
static GimpParamDef args[] =
142
static const GimpParamDef args[] =
142
{ GIMP_PDB_INT32, "run_mode", "Interactive (0), non-interactive (1)" },
144
{ GIMP_PDB_INT32, "run-mode", "Interactive (0), non-interactive (1)" },
143
145
{ GIMP_PDB_IMAGE, "image", "Input image" },
144
146
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable" },
145
147
{ GIMP_PDB_INT32, "maptype", "Type of mapping (0=plane,1=sphere,2=box,3=cylinder)" },
146
{ GIMP_PDB_FLOAT, "viewpoint_x", "Position of viewpoint (x,y,z)" },
147
{ GIMP_PDB_FLOAT, "viewpoint_y", "Position of viewpoint (x,y,z)" },
148
{ GIMP_PDB_FLOAT, "viewpoint_z", "Position of viewpoint (x,y,z)" },
149
{ GIMP_PDB_FLOAT, "position_x", "Object position (x,y,z)" },
150
{ GIMP_PDB_FLOAT, "position_y", "Object position (x,y,z)" },
151
{ GIMP_PDB_FLOAT, "position_z", "Object position (x,y,z)" },
152
{ GIMP_PDB_FLOAT, "firstaxis_x", "First axis of object [x,y,z]" },
153
{ GIMP_PDB_FLOAT, "firstaxis_y", "First axis of object [x,y,z]" },
154
{ GIMP_PDB_FLOAT, "firstaxis_z", "First axis of object [x,y,z]" },
155
{ GIMP_PDB_FLOAT, "secondaxis_x", "Second axis of object [x,y,z]" },
156
{ GIMP_PDB_FLOAT, "secondaxis_y", "Second axis of object [x,y,z]" },
157
{ GIMP_PDB_FLOAT, "secondaxis_z", "Second axis of object [x,y,z]" },
158
{ GIMP_PDB_FLOAT, "rotationangle_x", "Rotation about X axis in degrees" },
159
{ GIMP_PDB_FLOAT, "rotationangle_y", "Rotation about Y axis in degrees" },
160
{ GIMP_PDB_FLOAT, "rotationangle_z", "Rotation about Z axis in degrees" },
148
{ GIMP_PDB_FLOAT, "viewpoint-x", "Position of viewpoint (x,y,z)" },
149
{ GIMP_PDB_FLOAT, "viewpoint-y", "Position of viewpoint (x,y,z)" },
150
{ GIMP_PDB_FLOAT, "viewpoint-z", "Position of viewpoint (x,y,z)" },
151
{ GIMP_PDB_FLOAT, "position-x", "Object position (x,y,z)" },
152
{ GIMP_PDB_FLOAT, "position-y", "Object position (x,y,z)" },
153
{ GIMP_PDB_FLOAT, "position-z", "Object position (x,y,z)" },
154
{ GIMP_PDB_FLOAT, "firstaxis-x", "First axis of object [x,y,z]" },
155
{ GIMP_PDB_FLOAT, "firstaxis-y", "First axis of object [x,y,z]" },
156
{ GIMP_PDB_FLOAT, "firstaxis-z", "First axis of object [x,y,z]" },
157
{ GIMP_PDB_FLOAT, "secondaxis-x", "Second axis of object [x,y,z]" },
158
{ GIMP_PDB_FLOAT, "secondaxis-y", "Second axis of object [x,y,z]" },
159
{ GIMP_PDB_FLOAT, "secondaxis-z", "Second axis of object [x,y,z]" },
160
{ GIMP_PDB_FLOAT, "rotationangle-x", "Rotation about X axis in degrees" },
161
{ GIMP_PDB_FLOAT, "rotationangle-y", "Rotation about Y axis in degrees" },
162
{ GIMP_PDB_FLOAT, "rotationangle-z", "Rotation about Z axis in degrees" },
161
163
{ GIMP_PDB_INT32, "lighttype", "Type of lightsource (0=point,1=directional,3=none)" },
162
164
{ GIMP_PDB_COLOR, "lightcolor", "Lightsource color (r,g,b)" },
163
{ GIMP_PDB_FLOAT, "lightposition_x", "Lightsource position (x,y,z)" },
164
{ GIMP_PDB_FLOAT, "lightposition_y", "Lightsource position (x,y,z)" },
165
{ GIMP_PDB_FLOAT, "lightposition_z", "Lightsource position (x,y,z)" },
166
{ GIMP_PDB_FLOAT, "lightdirection_x", "Lightsource direction [x,y,z]" },
167
{ GIMP_PDB_FLOAT, "lightdirection_y", "Lightsource direction [x,y,z]" },
168
{ GIMP_PDB_FLOAT, "lightdirection_z", "Lightsource direction [x,y,z]" },
165
{ GIMP_PDB_FLOAT, "lightposition-x", "Lightsource position (x,y,z)" },
166
{ GIMP_PDB_FLOAT, "lightposition-y", "Lightsource position (x,y,z)" },
167
{ GIMP_PDB_FLOAT, "lightposition-z", "Lightsource position (x,y,z)" },
168
{ GIMP_PDB_FLOAT, "lightdirection-x", "Lightsource direction [x,y,z]" },
169
{ GIMP_PDB_FLOAT, "lightdirection-y", "Lightsource direction [x,y,z]" },
170
{ GIMP_PDB_FLOAT, "lightdirection-z", "Lightsource direction [x,y,z]" },
169
171
{ GIMP_PDB_FLOAT, "ambient_intensity", "Material ambient intensity (0..1)" },
170
172
{ GIMP_PDB_FLOAT, "diffuse_intensity", "Material diffuse intensity (0..1)" },
171
173
{ GIMP_PDB_FLOAT, "diffuse_reflectivity", "Material diffuse reflectivity (0..1)" },
176
178
{ GIMP_PDB_INT32, "newimage", "Create a new image (TRUE/FALSE)" },
177
179
{ GIMP_PDB_INT32, "transparentbackground", "Make background transparent (TRUE/FALSE)" },
178
180
{ GIMP_PDB_FLOAT, "radius", "Sphere/cylinder radius (only used when maptype=1 or 3)" },
179
{ GIMP_PDB_FLOAT, "x_scale", "Box x size (0..->)" },
180
{ GIMP_PDB_FLOAT, "y_scale", "Box y size (0..->)" },
181
{ GIMP_PDB_FLOAT, "z_scale", "Box z size (0..->)"},
182
{ GIMP_PDB_FLOAT, "cylinder_length", "Cylinder length (0..->)"},
183
{ GIMP_PDB_DRAWABLE, "box_front_drawable", "Box front face (set these to -1 if not used)" },
184
{ GIMP_PDB_DRAWABLE, "box_back_drawable", "Box back face" },
185
{ GIMP_PDB_DRAWABLE, "box_top_drawable", "Box top face" },
186
{ GIMP_PDB_DRAWABLE, "box_bottom_drawable", "Box bottom face" },
187
{ GIMP_PDB_DRAWABLE, "box_left_drawable", "Box left face" },
188
{ GIMP_PDB_DRAWABLE, "box_right_drawable", "Box right face" },
189
{ GIMP_PDB_DRAWABLE, "cyl_top_drawable", "Cylinder top face (set these to -1 if not used)" },
190
{ GIMP_PDB_DRAWABLE, "cyl_bottom_drawable", "Cylinder bottom face" }
181
{ GIMP_PDB_FLOAT, "x-scale", "Box x size (0..->)" },
182
{ GIMP_PDB_FLOAT, "y-scale", "Box y size (0..->)" },
183
{ GIMP_PDB_FLOAT, "z-scale", "Box z size (0..->)"},
184
{ GIMP_PDB_FLOAT, "cylinder-length", "Cylinder length (0..->)"},
185
{ GIMP_PDB_DRAWABLE, "box-front-drawable", "Box front face (set these to -1 if not used)" },
186
{ GIMP_PDB_DRAWABLE, "box-back-drawable", "Box back face" },
187
{ GIMP_PDB_DRAWABLE, "box-top-drawable", "Box top face" },
188
{ GIMP_PDB_DRAWABLE, "box-bottom-drawable", "Box bottom face" },
189
{ GIMP_PDB_DRAWABLE, "box-left-drawable", "Box left face" },
190
{ GIMP_PDB_DRAWABLE, "box-right-drawable", "Box right face" },
191
{ GIMP_PDB_DRAWABLE, "cyl-top-drawable", "Cylinder top face (set these to -1 if not used)" },
192
{ GIMP_PDB_DRAWABLE, "cyl-bottom-drawable", "Cylinder bottom face" }
193
gimp_install_procedure ("plug_in_map_object",
194
"Maps a picture to a object (plane, sphere, box or cylinder)",
195
gimp_install_procedure (PLUG_IN_PROC,
196
N_("Map the image to an object (plane, sphere, box or cylinder)"),
196
198
"Tom Bech & Federico Mena Quintero",
197
199
"Tom Bech & Federico Mena Quintero",