Example a/emoter: Animation of a boxfish using the Emoter

This example demonstrates the use of the Emoter, by animating a model fish. If you have mozCmgui, installed in a Mozilla based browser, you can view a demo page for the extension that uses this boxfish model.

Screenshot of example a/emoter


The comfile run by this example is as follows:

# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is CMISS Emoter example.
#
# The Initial Developer of the Original Code is
# Auckland Uniservices Ltd, Auckland, New Zealand.
# Portions created by the Initial Developer are Copyright (C) 2010
# the Initial Developer. All Rights Reserved.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

# Animate a boxfish using the Emoter

#Note: Old versions of cmgui should instead execute load_emoter.com; this is still used by zinc
open comfile $example/load_emoter_new.com exec;

#Do things specific to the standalone cmgui.

  # create window
  gfx create window 1 double_buffer;
  gfx modify window 1 image scene default light_model default;
  gfx modify window 1 image add_light default;
  gfx modify window 1 layout simple ortho_axes z -y eye_spacing 0.25 width 906 height 736;
  gfx modify window 1 set current_pane 1;
  gfx modify window 1 background colour 0 0 0 texture none;
  gfx modify window 1 view parallel eye_point 78.146 101.34 155.166 interest_point -11.8537 -2.83632 -18.8741 up_vector -0.159574 0.881219 -0.444959 view_angle 57.8671 near_clipping_plane 2.21907 far_clipping_plane 793.019 relative_viewport ndc_placement -1 1 2 2 viewport_coordinates 0 0 1 1;
  gfx modify window 1 set transform_tool current_pane 1 std_view_angle 40 perturb_lines no_antialias slow_transparency blend_normal;


Files used by this example are:

Name                                             Modified     Size

example_emoter.com 17-Mar-2014 2.6k COPYRIGHT 17-Mar-2014 504 animate.basis 17-Mar-2014 140k boxfish_texture.jpg 17-Mar-2014 37k boxfish_texture.rgb 17-Mar-2014 687k full.exelem 17-Mar-2014 187k full.exnode 17-Mar-2014 89k full_linear.exnode 17-Mar-2014 14k left_fin.em 17-Mar-2014 408 left_fin.em.curve.com 17-Mar-2014 227 left_fin.em.curve.exelem 17-Mar-2014 4.3k left_fin.em.curve.exnode 17-Mar-2014 2.8k left_fin.em_in_master.em.curve.com 17-Mar-2014 175 left_fin.em_in_master.em.curve.exelem 17-Mar-2014 724 left_fin.em_in_master.em.curve.exnode 17-Mar-2014 416 left_fin.em_in_master.em_timebase.curve.com 17-Mar-2014 194 left_fin.em_in_master.em_timebase.curve.exelem 17-Mar-2014 652 left_fin.em_in_master.em_timebase.curve.exnode 17-Mar-2014 389 left_fin.exelem 17-Mar-2014 4.1k left_fin.exnode 17-Mar-2014 2.0k load_emoter.com 17-Mar-2014 8.6k load_emoter_new.com 17-Mar-2014 8.2k master.em 17-Mar-2014 2.0k right_fin.em 17-Mar-2014 408 right_fin.em.curve.com 17-Mar-2014 229 right_fin.em.curve.exelem 17-Mar-2014 4.3k right_fin.em.curve.exnode 17-Mar-2014 2.8k right_fin.em_in_master.em.curve.com 17-Mar-2014 177 right_fin.em_in_master.em.curve.exelem 17-Mar-2014 725 right_fin.em_in_master.em.curve.exnode 17-Mar-2014 417 right_fin.em_in_master.em_timebase.curve.com 17-Mar-2014 196 right_fin.em_in_master.em_timebase.curve.exelem 17-Mar-2014 653 right_fin.em_in_master.em_timebase.curve.exnode 17-Mar-2014 390 right_fin.exelem 17-Mar-2014 4.1k right_fin.exnode 17-Mar-2014 2.0k tail.em 17-Mar-2014 165 tail.em.curve.com 17-Mar-2014 219 tail.em.curve.exelem 17-Mar-2014 4.2k tail.em.curve.exnode 17-Mar-2014 1.8k tail.em_in_master.em.curve.com 17-Mar-2014 167 tail.em_in_master.em.curve.exelem 17-Mar-2014 720 tail.em_in_master.em.curve.exnode 17-Mar-2014 412 tail.em_in_master.em_timebase.curve.com 17-Mar-2014 186 tail.em_in_master.em_timebase.curve.exelem 17-Mar-2014 648 tail.em_in_master.em_timebase.curve.exnode 17-Mar-2014 385 tail.exelem 17-Mar-2014 4.1k tail.exnode 17-Mar-2014 2.0k texture_coordinates.exelem 17-Mar-2014 46k texture_coordinates.exnode 17-Mar-2014 7.1k top_fin.em 17-Mar-2014 489 top_fin.em.curve.com 17-Mar-2014 225 top_fin.em.curve.exelem 17-Mar-2014 4.3k top_fin.em.curve.exnode 17-Mar-2014 3.2k top_fin.em_in_master.em.curve.com 17-Mar-2014 173 top_fin.em_in_master.em.curve.exelem 17-Mar-2014 723 top_fin.em_in_master.em.curve.exnode 17-Mar-2014 415 top_fin.em_in_master.em_timebase.curve.com 17-Mar-2014 192 top_fin.em_in_master.em_timebase.curve.exelem 17-Mar-2014 651 top_fin.em_in_master.em_timebase.curve.exnode 17-Mar-2014 388 top_fin.exelem 17-Mar-2014 4.1k top_fin.exnode 17-Mar-2014 2.0k turn.em 17-Mar-2014 140 turn.em.curve.com 17-Mar-2014 246 turn.em.curve.exelem 17-Mar-2014 5.4k turn.em.curve.exnode 17-Mar-2014 2.3k turn.em_in_master.em.curve.com 17-Mar-2014 167 turn.em_in_master.em.curve.exelem 17-Mar-2014 720 turn.em_in_master.em.curve.exnode 17-Mar-2014 412 turn.em_in_master.em_timebase.curve.com 17-Mar-2014 186 turn.em_in_master.em_timebase.curve.exelem 17-Mar-2014 648 turn.em_in_master.em_timebase.curve.exnode 17-Mar-2014 385 x.em 17-Mar-2014 137 x.em.curve.com 17-Mar-2014 237 x.em.curve.exelem 17-Mar-2014 5.4k x.em.curve.exnode 17-Mar-2014 2.3k x.em_in_master.em.curve.com 17-Mar-2014 161 x.em_in_master.em.curve.exelem 17-Mar-2014 939 x.em_in_master.em.curve.exnode 17-Mar-2014 610 x.em_in_master.em_timebase.curve.com 17-Mar-2014 180 x.em_in_master.em_timebase.curve.exelem 17-Mar-2014 645 x.em_in_master.em_timebase.curve.exnode 17-Mar-2014 382 z.em 17-Mar-2014 137 z.em.curve.com 17-Mar-2014 237 z.em.curve.exelem 17-Mar-2014 5.4k z.em.curve.exnode 17-Mar-2014 2.3k z.em_in_master.em.curve.com 17-Mar-2014 161 z.em_in_master.em.curve.exelem 17-Mar-2014 939 z.em_in_master.em.curve.exnode 17-Mar-2014 610 z.em_in_master.em_timebase.curve.com 17-Mar-2014 180 z.em_in_master.em_timebase.curve.exelem 17-Mar-2014 645 z.em_in_master.em_timebase.curve.exnode 17-Mar-2014 382

Download the entire example:

Name                      Modified     Size

examples_a_emoter.tar.gz 09-Mar-2016 1.4M

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmgui-wxSuccessSun Mar 6 00:13:14 20163
cmgui-wx-debugSuccessSun Mar 6 00:14:35 20162
cmgui-wx-debug-memorycheckSuccessSun Mar 6 00:14:55 20162
cmgui-wx-debug-valgrindSuccessSun Mar 6 01:17:10 201656
x86_64-linux
cmgui-wxFailureSun Mar 6 00:01:30 20161
last breakWed Jun 3 16:07:00 20150
last successWed Jun 3 00:05:00 20150
cmgui-wx-debugFailureSun Mar 6 00:01:30 20161
last breakWed Jun 3 16:06:00 20150
last successWed Jun 3 00:03:00 20151
cmgui-wx-debug-memorycheckFailureSun Mar 6 00:01:30 20161
last breakWed Jun 3 16:06:00 20150
last successWed Jun 3 00:03:00 20151
cmgui-wx-debug-valgrindFailureSun Mar 6 00:02:53 20169
last breakWed Jun 3 16:24:00 201510
last successWed Jun 3 00:36:00 201542
cmgui-wx-gcc-cad-debug-valgrindSuccessThu Jan 7 00:02:19 20167

Testing status by file:


Html last generated: Wed Mar 9 16:01:50 2016

Input last modified: Wed Mar 9 15:49:43 2016


CMISS Help / Examples / a / emoter