Skip to main content

History: Object manipulation with Gizmo

Preview of version: 4

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | 0-9


content here

{WIKIPEDIA()/}

Object manipulation with Gizmo

Overview


This snipped shows how to create an editor manager which holds a Gizmo for object manipulation.

Features

The Gizmo can be changed to the following modes:

  1. Translate-Gizmo
  2. Rotate-Gizmo
  3. Scale-Gizmo


Its possible to translate objects along a given direction depending which gizmo arrow has been pressed. The rotation is done via rings. The use can grab a ring and rotate. The selected object will be rotated and a progress-bar will be shown within the ring. Its also possible to translate/rotate Objects in a grid.
The scale of objects does work but the unite-scale not so far.

Some snippets within the code are orientated at other snippets from the Ogre-site and Ogitor.

Note: The code will not work out of the box. The selection code has been uncommented, because it was part of my NOWA-Engine and not compatible with ogre. But there are other tutorial which are dealing with selection of scene nodes.
In the code snippets there are some notes, in what way the editor manager can be extended.
It may also be, that there are some syntax errors, because this code has part of my Engine and was adapted, so that it could run just with ogre. I apolgize for that.

What was really hard to implement was the Gizmo-ring progress, which is created from any angle and also rotate the the gizmo by the given ring from any perspective.

I hope someone can use the code 😀

History

Information Version
Sun 12 of Mar, 2017 16:12 GMT-0000 Lax 5
Mon 06 of Mar, 2017 20:11 GMT-0000 Lax 4
Mon 06 of Mar, 2017 19:43 GMT-0000 Lax 3
Mon 06 of Mar, 2017 19:38 GMT-0000 Lax 2
Mon 06 of Mar, 2017 19:36 GMT-0000 Lax 1