Jump to content

TS: Reborn News Update (19 September 2019)


FRAYDO

Recommended Posts

Apologies for missing a Thursday. Rest assured that development is making strides. Today I want to give you an idea of what the scripts team has been up to. Development is more than mapping and textures. One must remember the intensive coding that goes into it! Below are some examples.

Exhibit A:

void Handle_Node_Rotation_Non_Aligned(NodeClass *n, Matrix3D &m1, Matrix3D &m2)
{
    if (!n->Is_Locked())
    {
        Matrix3D tm = n->Get_Transform();
        Matrix3D tm2;
        m2.Get_Orthogonal_Inverse(tm2);
        Matrix3D tm3;
        Matrix3D::Multiply(tm2, tm, &tm3);
        Matrix3D::Multiply(m2, m1, &tm);
        Matrix3D::Multiply(tm, tm3, &tm);
        if (!tm.Is_Orthogonal())
        {
            tm.Re_Orthogonalize();
        }
        n->Set_Transform(tm);
    }
}

and Exhibit B:

void TerrainNode::Create_Proxy_Objects(DynamicVectorClass<ProxyClass> &vector)
{
    for (int i = 0; i < vector.Count(); i++)
    {
        Matrix3D transform = vector[i].Get_Transform();
        StringClass str = vector[i].Get_Name();
        PresetClass *p = PresetMgrClass::Find_Named_Preset(str);
        if (!p)
        {
            StringClass strx;
            strx.Format("Unable to find preset for placeholder %s.\r\n",str.Peek_Buffer());
            OutputDebugStringA(strx);
            continue;
        }
        NodeClass *n = Create_Node(p, &transform, 0, false);
        if (n)
        {
            n->Set_Align_Rotation_Z(false);
            n->Set_Node_Embedded(true);
            if (n->Get_Phys() || n->Class_ID() == NODE_CLASSID_TERRAIN)
            {
                Matrix3D m1(true);
                Matrix3D m2x(true);
                Handle_Rotation(n, m1, m2x);
                n->Set_Is_Locked(true);

 

Our scripts team looks at this kind of stuff on a daily basis. Without their assistance and expertise, who knows where our games would be. We can't thank them enough for all they do.

We'll have more to show you next update! You should know the above scripts is related to this image here. The keyword is scaling.

Qf5wWA3.png

See you next Thursday!

[blurb]Apologies for missing a Thursday. Rest assured that development is making strides. Today I want to give you an idea of what the scripts team has been up to.[/blurb]

Link to comment
Share on other sites

On 9/27/2019 at 2:09 PM, NodGuy said:

Seeing the Cyborg Reaper look so tiny when compared with the large soldiers makes me giggle. It's like a cyborg replicator. :)

Now that you mention it, they look like the mobile suits from Gundam Wing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...