Skip to content

Environment

PaulLerner edited this page Jun 1, 2018 · 5 revisions

Environment

An environment is used to add characters, objects and animatable objects into a scene. This environment creates a tree of the scene, where characters and objects are leaves containing nodes. Because this tree is compatible with computer graphics standards, we can use this environment in different graphics engine like Ogre3D or Unity3D.

An object have 3 nodes for the direction, the rotation and the scale.

TreeNode :

    /**
    * @param XYZ for the direction, scale, rotation
    */
    public TreeNode(float x, float y, float z,
                    float ox, float oy, float oz, float ow,
                    float sx, float sy, float sz
                    ) {
        this.children = new ArrayList<Node>();
        position = new Vec3f(x, y, z);
        orientation = new Quaternion(ox, oy,  oz, ow);
        scale = new Vec3f(sx, sy , sz);
    }

Class diagram

Class diagram

Getting started with Greta

Greta Architecture

Quick start

Advanced

Functionalities

Core functionality

Auxiliary functionalities

Preview functionality

Nothing to show here

Previous functionality (possibly it still works, but not supported anymore)

Clone this wiki locally