Transform Editor

Explanation

Once you selected/picked an object, you can move/rotate/scale it in the scene. There are currently two ways to do it. The first one is to enter values in the corresponding textfields and the other one by interacting with a gizmo, as in most of the 3D softwares.

 

TextFields interaction

Simply enter the direct value in the corresponding text field. The object's transformation is done in real time. If the entered text is not a valid number, the textfield is displayed in red to highlight the error.

 

Gizmo interactions

Transforming object using gizmos is a more interactive way to achieve your goal (but less precise).

If the transform Editor is beeing displayed, a gizmo is  linked to the selected object and can be manipulated with the mouse.

Important Note: Gizmos are not always centered on objects. There are always on the pivot point of it. This pivot is often on the top left of the playfield, so check there if you can't find it.

There are three gizmo types, one for each transforming operation: Translation/Rotation/Scaling. You can switch between interaction modes by clicking on the corresponding buttons in the transform editor:

 

 

 

 

 

Translation

To translate in an axis direction, simply left click the corresponding axis arrow and drag it with the mouse (the axis is highlighted when the mouse is hovering it, here z axis).

  

You can also translate in two direction at the sametime by left clicking/dragging the corresponding yellow squares (here, x-y axes).

   

Rotation

To rotate the object around a given axis, left click the corresponding circle and drag it with the mouse (the circle is highlighted when the mouse is hovering it, here x- axis circle).

  

You can also rotate around an axis by left clicking/dragging the corresponding axis arrow (here x-axis).

  

 

 

Scaling

To scale the object along a given axis, left click the corresponding axis arrow and drag it with the mouse (the axis is highlighted when the mouse is hovering it, here z-axis).

  

To do an homogenous scale (the same in all directions), left click and drag the yellow half cube on the gizmo's center.

  

Furthermore, you can also scale in two directions only by left clicking/dragging the corresponding yellow stripe (here y-z axes).

  

 

Saving

To save the transform modifications you made, click on the "Save modification Transform" button.
This will create/overwrite a modified_trafos.xml next to the table file.

  

The modified transforms objects number is displayed next to the "Transform Editor" title..

 
 

Todo

  • Reference gizmo: move the current object relative to another gizmo
  • Bug correction: Ensure gizmo's constant size
  • Better gizmo interaction (corresponding to mouse movment)
  • Two axes rotation
  • Saving success/fail message box