Path: chuka.playstation.co.uk!news From: Bruce McNeish Newsgroups: scee.yaroze.programming.3d_graphics,scea.yaroze.programming.3d_graphics Subject: Local->Parent->World Coords calculations- HELP!!! Date: Wed, 25 Aug 1999 02:20:07 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 80 Message-ID: <37C344C7.4D97924D@mcneish.freeserve.co.uk> NNTP-Posting-Host: tnt-10-202.easynet.co.uk Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------865E3BD8A359A4F35688AE15" X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en X-Priority: 1 (Highest) Xref: chuka.playstation.co.uk scee.yaroze.programming.3d_graphics:1392 scea.yaroze.programming.3d_graphics:380 --------------865E3BD8A359A4F35688AE15 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello All, I have been working on the AI for my game and have come to a bit of a dead-end. I have a player that has several child coordinate systems attached to it, ie their parent system is that of the player, and I am trying to get the world coordinates of these points. After browsing this group I read that I should be using GsGetLw followed by ApplyMatrix but how???? It is probably a straight forward process but I am missing something simple but what??? I also read the Matrix and Vector tutorial and it included the following function psuedo code LocalToWorldMatrix(X) { if super == WORLD return X.matrix; else return X.matrix * LocalToWorldMatrix(X.super); } What does that mean? This is the corner stone of my AI design and I would appreciate some help as this could lead to a job. Bruce ------------------------------------------------ | CoolFusion Developments | | http://www.netyaroze-europe.com/~bmcneish| ------------------------------------------------ --------------865E3BD8A359A4F35688AE15 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello All,

I have been working on the AI for my game and have come to a bit of a dead-end.

I have a player that has several child coordinate systems attached to it, ie their parent system is that of the player, and I am trying to get the world coordinates of these points.

After browsing this group I read that I should be using GsGetLw followed by ApplyMatrix but how????

It is probably a straight forward process but I am missing something simple but what???

I also read the Matrix and Vector tutorial and it included the following function psuedo code

LocalToWorldMatrix(X) {
        if super == WORLD
            return X.matrix;
        else
            return X.matrix * LocalToWorldMatrix(X.super);
}

What does that mean?

This is the corner stone of my AI design and I would appreciate some help as this could lead to a job.

Bruce

------------------------------------------------
| CoolFusion Developments                             |
| http://www.netyaroze-europe.com/~bmcneish|
------------------------------------------------ --------------865E3BD8A359A4F35688AE15--