Reference

Table of Contents  ▸  List of Commands  ▸  Image Drawing  ▸  object3d◀  newton_fractal    |    pack_sprites  ▶

object3d

Built-in command

Arguments:

Description:

Draw specified 3D object on selected images.

(equivalent to shortcut command j3d).


rendering_mode can be { 0=dots | 1=wireframe | 2=flat | 3=flat-shaded | 4=gouraud-shaded | 5=phong-shaded }.

Default values:

x=y=z=0, opacity=1 and is_zbuffer=1. All other arguments take their default values

from the 3D environment variables.

Example of use:

$ gmic image.jpg torus3d 100,10 cone3d 30,-120 add3d[-2,-1] rotate3d. 1,1,0,60 object3d[0] [-1],50%,50% keep[0]
Command: image.jpg torus3d 100,10 cone3d 30,-120 add3d[-2,-1] rotate3d. 1,1,0,60 object3d[0] [-1],50%,50% keep[0]